@@ -13,7 +13,7 @@ const motion = function (isInitialSetup, isStage, targetId, colors) { |
13 | 13 | ); |
14 | 14 | // Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color. |
15 | 15 | return ` |
16 | | - <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_MOTION', 'Motion')}" id="motion" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
| 16 | + <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_MOTION', 'Motion')}" toolboxitemid="motion" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
17 | 17 | ${isStage ? ` |
18 | 18 | <label text="${stageSelected}"></label> |
19 | 19 | ` : ` |
@@ -158,7 +158,7 @@ const looks = function (isInitialSetup, isStage, targetId, costumeName, backdrop |
158 | 158 | const hmm = ScratchBlocks.ScratchMsgs.translate('LOOKS_HMM', 'Hmm...'); |
159 | 159 | // Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color. |
160 | 160 | return ` |
161 | | - <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_LOOKS', 'Looks')}" id="looks" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
| 161 | + <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_LOOKS', 'Looks')}" toolboxitemid="looks" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
162 | 162 | ${isStage ? '' : ` |
163 | 163 | <block type="looks_sayforsecs"> |
164 | 164 | <value name="MESSAGE"> |
@@ -294,7 +294,7 @@ const looks = function (isInitialSetup, isStage, targetId, costumeName, backdrop |
294 | 294 | const sound = function (isInitialSetup, isStage, targetId, soundName, colors) { |
295 | 295 | // Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color. |
296 | 296 | return ` |
297 | | - <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_SOUND', 'Sound')}" id="sound" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
| 297 | + <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_SOUND', 'Sound')}" toolboxitemid="sound" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
298 | 298 | <block id="${targetId}_sound_playuntildone" type="sound_playuntildone"> |
299 | 299 | <value name="SOUND_MENU"> |
300 | 300 | <shadow type="sound_sounds_menu"> |
@@ -350,7 +350,7 @@ const sound = function (isInitialSetup, isStage, targetId, soundName, colors) { |
350 | 350 | const events = function (isInitialSetup, isStage, targetId, colors) { |
351 | 351 | // Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color. |
352 | 352 | return ` |
353 | | - <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_EVENTS', 'Events')}" id="events" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
| 353 | + <category name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_EVENTS', 'Events')}" toolboxitemid="events" colour="${colors.primary}" secondaryColour="${colors.tertiary}"> |
354 | 354 | <block type="event_whenflagclicked"/> |
355 | 355 | <block type="event_whenkeypressed"> |
356 | 356 | </block> |
@@ -392,7 +392,7 @@ const control = function (isInitialSetup, isStage, targetId, colors) { |
392 | 392 | return ` |
393 | 393 | <category |
394 | 394 | name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_CONTROL', 'Control')}" |
395 | | - id="control" |
| 395 | + toolboxitemid="control" |
396 | 396 | colour="${colors.primary}" |
397 | 397 | secondaryColour="${colors.tertiary}"> |
398 | 398 | <block type="control_wait"> |
@@ -445,7 +445,7 @@ const sensing = function (isInitialSetup, isStage, targetId, colors) { |
445 | 445 | return ` |
446 | 446 | <category |
447 | 447 | name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_SENSING', 'Sensing')}" |
448 | | - id="sensing" |
| 448 | + toolboxitemid="sensing" |
449 | 449 | colour="${colors.primary}" |
450 | 450 | secondaryColour="${colors.tertiary}"> |
451 | 451 | ${isStage ? '' : ` |
@@ -527,7 +527,7 @@ const operators = function (isInitialSetup, isStage, targetId, colors) { |
527 | 527 | return ` |
528 | 528 | <category |
529 | 529 | name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_OPERATORS', 'Operators')}" |
530 | | - id="operators" |
| 530 | + toolboxitemid="operators" |
531 | 531 | colour="${colors.primary}" |
532 | 532 | secondaryColour="${colors.tertiary}"> |
533 | 533 | <block type="operator_add"> |
@@ -716,7 +716,7 @@ const variables = function (isInitialSetup, isStage, targetId, colors) { |
716 | 716 | return ` |
717 | 717 | <category |
718 | 718 | name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_VARIABLES', 'Variables')}" |
719 | | - id="variables" |
| 719 | + toolboxitemid="variables" |
720 | 720 | colour="${colors.primary}" |
721 | 721 | secondaryColour="${colors.tertiary}" |
722 | 722 | custom="VARIABLE"> |
@@ -729,7 +729,7 @@ const myBlocks = function (isInitialSetup, isStage, targetId, colors) { |
729 | 729 | return ` |
730 | 730 | <category |
731 | 731 | name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_MYBLOCKS', 'My Blocks')}" |
732 | | - id="myBlocks" |
| 732 | + toolboxitemid="myBlocks" |
733 | 733 | colour="${colors.primary}" |
734 | 734 | secondaryColour="${colors.tertiary}" |
735 | 735 | custom="PROCEDURE"> |
|