GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Use toolboxitemid instead of id as the identifier attribute for … · scratchfoundation/scratch-gui@077415b

This repository was archived by the owner on Jun 10, 2026. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/lib
    • make-toolbox-xml.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/lib/make-toolbox-xml.js‎

Copy file name to clipboardExpand all lines: src/lib/make-toolbox-xml.js
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const motion = function (isInitialSetup, isStage, targetId, colors) {
1313
);
1414
// Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color.
1515
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}">
1717
${isStage ? `
1818
<label text="${stageSelected}"></label>
1919
` : `
@@ -158,7 +158,7 @@ const looks = function (isInitialSetup, isStage, targetId, costumeName, backdrop
158158
const hmm = ScratchBlocks.ScratchMsgs.translate('LOOKS_HMM', 'Hmm...');
159159
// Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color.
160160
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}">
162162
${isStage ? '' : `
163163
<block type="looks_sayforsecs">
164164
<value name="MESSAGE">
@@ -294,7 +294,7 @@ const looks = function (isInitialSetup, isStage, targetId, costumeName, backdrop
294294
const sound = function (isInitialSetup, isStage, targetId, soundName, colors) {
295295
// Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color.
296296
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}">
298298
<block id="${targetId}_sound_playuntildone" type="sound_playuntildone">
299299
<value name="SOUND_MENU">
300300
<shadow type="sound_sounds_menu">
@@ -350,7 +350,7 @@ const sound = function (isInitialSetup, isStage, targetId, soundName, colors) {
350350
const events = function (isInitialSetup, isStage, targetId, colors) {
351351
// Note: the category's secondaryColour matches up with the blocks' tertiary color, both used for border color.
352352
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}">
354354
<block type="event_whenflagclicked"/>
355355
<block type="event_whenkeypressed">
356356
</block>
@@ -392,7 +392,7 @@ const control = function (isInitialSetup, isStage, targetId, colors) {
392392
return `
393393
<category
394394
name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_CONTROL', 'Control')}"
395-
id="control"
395+
toolboxitemid="control"
396396
colour="${colors.primary}"
397397
secondaryColour="${colors.tertiary}">
398398
<block type="control_wait">
@@ -445,7 +445,7 @@ const sensing = function (isInitialSetup, isStage, targetId, colors) {
445445
return `
446446
<category
447447
name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_SENSING', 'Sensing')}"
448-
id="sensing"
448+
toolboxitemid="sensing"
449449
colour="${colors.primary}"
450450
secondaryColour="${colors.tertiary}">
451451
${isStage ? '' : `
@@ -527,7 +527,7 @@ const operators = function (isInitialSetup, isStage, targetId, colors) {
527527
return `
528528
<category
529529
name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_OPERATORS', 'Operators')}"
530-
id="operators"
530+
toolboxitemid="operators"
531531
colour="${colors.primary}"
532532
secondaryColour="${colors.tertiary}">
533533
<block type="operator_add">
@@ -716,7 +716,7 @@ const variables = function (isInitialSetup, isStage, targetId, colors) {
716716
return `
717717
<category
718718
name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_VARIABLES', 'Variables')}"
719-
id="variables"
719+
toolboxitemid="variables"
720720
colour="${colors.primary}"
721721
secondaryColour="${colors.tertiary}"
722722
custom="VARIABLE">
@@ -729,7 +729,7 @@ const myBlocks = function (isInitialSetup, isStage, targetId, colors) {
729729
return `
730730
<category
731731
name="${ScratchBlocks.ScratchMsgs.translate('CATEGORY_MYBLOCKS', 'My Blocks')}"
732-
id="myBlocks"
732+
toolboxitemid="myBlocks"
733733
colour="${colors.primary}"
734734
secondaryColour="${colors.tertiary}"
735735
custom="PROCEDURE">

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.