microsoft / pxt-robotis

Microsoft MakeCode for ROBOTIS
https://5d8c71b7-aa36-4a68-a9cb-288b989efb08.pxt.io/
MIT License
3 stars 7 forks source link

Hide some blocks in Loops, Logic category #6

Closed kigateG closed 4 years ago

kigateG commented 4 years ago

HI,

How can I hide some blocks in predefined(?) category?

for example, do not show "repeat (4) times" and "pause until " blocks. show others.

Thank you.

pelikhan commented 4 years ago

If you have something like in javascript

for(let i = 0; i < 4l ++i) {}

the javascript -> blocks decompiler will convert it into a repeat loop

pelikhan commented 4 years ago

we can easily hide pauseUtil in pxtarget.json

pelikhan commented 4 years ago

Delete this line pauseUntilBlock: {} in pxtarget.json

pelikhan commented 4 years ago

https://github.com/microsoft/pxt-robotis/blob/master/pxtarget.json#L92