Scratch-gui: How can I add spacers in custom extensions?

Created on 23 Dec 2018  路  2Comments  路  Source: LLK/scratch-gui

Expected Behavior

I would like to obtain the same "appereance" with spacer between similar blocks also for the custom extensions
image

I tried to search the wiki available but without success. Is this possible?

Actual Behavior

image

help wanted question

All 2 comments

Scratch 3.0 actually already supports separators in extensions - just specify '---' in place of two blocks, for example like this:

blocks: [
    {opcode: 'clear' ...},
    '---',
    {opcode: 'stamp' ...}
]

This results in a separator:

The blocks "erase all", "stamp", "pen down"; there is a larger space between erase-all and stamp.

Thanks, @towerofnix!
While more thorough extension documentation should be coming later this year, I've added this to the documentation that we have now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericrosenbaum picture ericrosenbaum  路  4Comments

TaiAurori picture TaiAurori  路  3Comments

fsih picture fsih  路  3Comments

chrisgarrity picture chrisgarrity  路  4Comments

kyleplo picture kyleplo  路  4Comments