Use unique ids for the toolbox elements that change per sprite

This commit is contained in:
Corey Frang committed 2018-04-13 14:06:23 -04:00
1 parent 7f116786f4
commit befcbb2945
1 file changed
+4 -4
+4 -4
View File
@@ -189,7 +189,7 @@ const looks = function (isStage, targetId) {
</block>
<block type="looks_nextbackdrop"/>
` : `
<block type="looks_switchcostumeto">
<block id="${targetId}_switchcostumeto" type="looks_switchcostumeto">
<value name="COSTUME">
<shadow type="looks_costume"/>
</value>
@@ -259,15 +259,15 @@ const looks = function (isStage, targetId) {
`;
};
const sound = function () {
const sound = function (isStage, targetId) {
return `
<category name="Sound" colour="#D65CD6" secondaryColour="#BD42BD">
<block type="sound_play">
<block id="${targetId}_sound_play" type="sound_play">
<value name="SOUND_MENU">
<shadow type="sound_sounds_menu"/>
</value>
</block>
<block type="sound_playuntildone">
<block id="${targetId}_sound_playuntildone" type="sound_playuntildone">
<value name="SOUND_MENU">
<shadow type="sound_sounds_menu"/>
</value>