scratchfoundation / scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
https://scratch.mit.edu/developers
Apache License 2.0
2.6k stars 1.39k forks source link

Feature request - change order of parameters of custom block #2990

Open ggenije opened 1 year ago

ggenije commented 1 year ago

Imagine you have next case of blocks, a custom block which renders specific sprite at specific coordinates with specific color effect DrawEntity1

You decided that it would make more sense that position input should entered before color input. Currently your only options is delete that input and then add it at the end. Two problems occurs:

The values of previous inputs gets deleted (or if there are blocks in argument inputs they get popped out)

DrawEntity2

And the second problem is if you want to for example to move type between position and color, so the position is first and then type and then color, you will have to delete type, then delete color, then add type, and add color. This will get as problematic as you have more parameters. The main problem is that your current arguments inputs get "invalued" as described before.

So my suggestion is: When selecting any parameter (or text) inside custom block edit menu, draw two arrows (left and right) below that (similarly as trash bin is upwards, arrows should be downwards). So when you press left arrow parameter or text gets left and vice versa for right. That will solve this problem.