Skip to content
Snippets Groups Projects
Commit 94915a9a authored by Eric Rosenbaum's avatar Eric Rosenbaum
Browse files

Add when touching hat

parent b4d4e25b
Branches
Tags
Loading
......@@ -185,6 +185,14 @@ export default function (vm) {
this.jsonInit(json);
};
ScratchBlocks.Blocks.event_touchingobjectmenu.init = function () {
const json = jsonForMenuBlock('TOUCHINGOBJECTMENU', spriteMenu, eventColors, [
['mouse-pointer', '_mouse_'],
['edge', '_edge_']
]);
this.jsonInit(json);
};
ScratchBlocks.Blocks.control_create_clone_of_menu.init = function () {
const json = jsonForMenuBlock('CLONE_OPTION', cloneMenu, controlColors, []);
this.jsonInit(json);
......
......@@ -321,6 +321,13 @@ const events = function (isStage) {
` : `
<block type="event_whenthisspriteclicked"/>
`}
${isStage ? '' : `
<block type="event_whentouchingobject">
<value name="TOUCHINGOBJECTMENU">
<shadow type="event_touchingobjectmenu"/>
</value>
</block>
`}
<block type="event_whenbackdropswitchesto">
</block>
${blockSeparator}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment