Skip to content

Commit 7c4b126

Browse files
committed
Use isInitialSetup everywhere
1 parent ac0467d commit 7c4b126

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/lib/make-toolbox-xml.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ const categorySeparator = '<sep gap="36"/>';
44

55
const blockSeparator = '<sep gap="36"/>'; // At default scale, about 28px
66

7-
const motion = function (_, isStage, targetId) {
7+
/* eslint-disable no-unused-vars */
8+
const motion = function (isInitialSetup, isStage, targetId) {
89
const stageSelected = ScratchBlocks.ScratchMsgs.translate(
910
'MOTION_STAGE_SELECTED',
1011
'Stage selected: no motion blocks'
@@ -150,7 +151,7 @@ const xmlEscape = function (unsafe) {
150151
});
151152
};
152153

153-
const looks = function (_, isStage, targetId, costumeName, backdropName) {
154+
const looks = function (isInitialSetup, isStage, targetId, costumeName, backdropName) {
154155
const hello = ScratchBlocks.ScratchMsgs.translate('LOOKS_HELLO', 'Hello!');
155156
const hmm = ScratchBlocks.ScratchMsgs.translate('LOOKS_HMM', 'Hmm...');
156157
return `
@@ -287,7 +288,7 @@ const looks = function (_, isStage, targetId, costumeName, backdropName) {
287288
`;
288289
};
289290

290-
const sound = function (_, isStage, targetId, soundName) {
291+
const sound = function (isInitialSetup, isStage, targetId, soundName) {
291292
return `
292293
<category name="%{BKY_CATEGORY_SOUND}" id="sound" colour="#D65CD6" secondaryColour="#BD42BD">
293294
<block id="${targetId}_sound_playuntildone" type="sound_playuntildone">
@@ -342,7 +343,7 @@ const sound = function (_, isStage, targetId, soundName) {
342343
`;
343344
};
344345

345-
const events = function (_, isStage) {
346+
const events = function (isInitialSetup, isStage) {
346347
return `
347348
<category name="%{BKY_CATEGORY_EVENTS}" id="events" colour="#FFD500" secondaryColour="#CC9900">
348349
<block type="event_whenflagclicked"/>
@@ -381,7 +382,7 @@ const events = function (_, isStage) {
381382
`;
382383
};
383384

384-
const control = function (_, isStage) {
385+
const control = function (isInitialSetup, isStage) {
385386
return `
386387
<category name="%{BKY_CATEGORY_CONTROL}" id="control" colour="#FFAB19" secondaryColour="#CF8B17">
387388
<block type="control_wait">
@@ -713,6 +714,7 @@ const myBlocks = function () {
713714
</category>
714715
`;
715716
};
717+
/* eslint-enable no-unused-vars */
716718

717719
const xmlOpen = '<xml style="display: none">';
718720
const xmlClose = '</xml>';

0 commit comments

Comments
 (0)