of one of the Scratch blocks that has an icon + separator. The
is a custom field type, but it's a simple field and easy to copy.
Blockly.Blocks['extension_wedo_motor'] = {
/**
* @this Blockly.Block
*/
init: function() {
this.jsonInit({
"message0": "%1 %2 turn a motor %3",
"args0": [
{
"type": "field_image",
"src": Blockly.mainWorkspace.options.pathToMedia + "extensions/wedo2-block-icon.svg",
"width": 40,
"height": 40
},
{
"type": "field_vertical_separator"
},
{
"type": "field_image",
"src": Blockly.mainWorkspace.options.pathToMedia + "rotate-right.svg",
"width": 24,
"height": 24
}
],
"category": Blockly.Categories.more,
"extensions": ["colours_more", "shape_statement", "scratch_extension"]
});
}
};