Merge pull request #1787 from gnarf/unique-toolbox-ids
Use unique ids for the toolbox elements that change per sprite
This commit is contained in:
1 file changed
+4
-4
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user