diff --git a/blocks_vertical/looks.js b/blocks_vertical/looks.js index 66482f0ef3..1173fa3a33 100644 --- a/blocks_vertical/looks.js +++ b/blocks_vertical/looks.js @@ -124,6 +124,14 @@ Blockly.Blocks['looks_show'] = { init: function() { this.jsonInit({ "message0": Blockly.Msg.LOOKS_SHOW, + "args0": [ + { + "type": "field_image", + "src": Blockly.mainWorkspace.options.pathToMedia + "show.svg", + "width": 28, + "height": 28 + }, + ], "category": Blockly.Categories.looks, "extensions": ["colours_looks", "shape_statement"] }); @@ -138,6 +146,14 @@ Blockly.Blocks['looks_hide'] = { init: function() { this.jsonInit({ "message0": Blockly.Msg.LOOKS_HIDE, + "args0": [ + { + "type": "field_image", + "src": Blockly.mainWorkspace.options.pathToMedia + "hide.svg", + "width": 28, + "height": 28 + }, + ], "category": Blockly.Categories.looks, "extensions": ["colours_looks", "shape_statement"] }); diff --git a/media/hide.svg b/media/hide.svg new file mode 100644 index 0000000000..6db8978433 --- /dev/null +++ b/media/hide.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/media/show.svg b/media/show.svg new file mode 100644 index 0000000000..8a729de9d3 --- /dev/null +++ b/media/show.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/msg/messages.js b/msg/messages.js index c7c1e613fe..332f1b8b6b 100644 --- a/msg/messages.js +++ b/msg/messages.js @@ -103,8 +103,8 @@ Blockly.Msg.LOOKS_HELLO = 'Hello!'; Blockly.Msg.LOOKS_THINKFORSECS = 'think %1 for %2 seconds'; Blockly.Msg.LOOKS_THINK = 'think %1'; Blockly.Msg.LOOKS_HMM = 'Hmm...'; -Blockly.Msg.LOOKS_SHOW = 'show'; -Blockly.Msg.LOOKS_HIDE = 'hide'; +Blockly.Msg.LOOKS_SHOW = '%1 show'; +Blockly.Msg.LOOKS_HIDE = '%1 hide'; Blockly.Msg.LOOKS_HIDEALLSPRITES = 'hide all sprites'; Blockly.Msg.LOOKS_EFFECT_COLOR = 'color'; Blockly.Msg.LOOKS_EFFECT_FISHEYE = 'fisheye';