@@ -4,7 +4,8 @@ const categorySeparator = '<sep gap="36"/>';
4
4
5
5
const blockSeparator = '<sep gap="36"/>' ; // At default scale, about 28px
6
6
7
- const motion = function ( _ , isStage , targetId ) {
7
+ /* eslint-disable no-unused-vars */
8
+ const motion = function ( isInitialSetup , isStage , targetId ) {
8
9
const stageSelected = ScratchBlocks . ScratchMsgs . translate (
9
10
'MOTION_STAGE_SELECTED' ,
10
11
'Stage selected: no motion blocks'
@@ -150,7 +151,7 @@ const xmlEscape = function (unsafe) {
150
151
} ) ;
151
152
} ;
152
153
153
- const looks = function ( _ , isStage , targetId , costumeName , backdropName ) {
154
+ const looks = function ( isInitialSetup , isStage , targetId , costumeName , backdropName ) {
154
155
const hello = ScratchBlocks . ScratchMsgs . translate ( 'LOOKS_HELLO' , 'Hello!' ) ;
155
156
const hmm = ScratchBlocks . ScratchMsgs . translate ( 'LOOKS_HMM' , 'Hmm...' ) ;
156
157
return `
@@ -287,7 +288,7 @@ const looks = function (_, isStage, targetId, costumeName, backdropName) {
287
288
` ;
288
289
} ;
289
290
290
- const sound = function ( _ , isStage , targetId , soundName ) {
291
+ const sound = function ( isInitialSetup , isStage , targetId , soundName ) {
291
292
return `
292
293
<category name="%{BKY_CATEGORY_SOUND}" id="sound" colour="#D65CD6" secondaryColour="#BD42BD">
293
294
<block id="${ targetId } _sound_playuntildone" type="sound_playuntildone">
@@ -342,7 +343,7 @@ const sound = function (_, isStage, targetId, soundName) {
342
343
` ;
343
344
} ;
344
345
345
- const events = function ( _ , isStage ) {
346
+ const events = function ( isInitialSetup , isStage ) {
346
347
return `
347
348
<category name="%{BKY_CATEGORY_EVENTS}" id="events" colour="#FFD500" secondaryColour="#CC9900">
348
349
<block type="event_whenflagclicked"/>
@@ -381,7 +382,7 @@ const events = function (_, isStage) {
381
382
` ;
382
383
} ;
383
384
384
- const control = function ( _ , isStage ) {
385
+ const control = function ( isInitialSetup , isStage ) {
385
386
return `
386
387
<category name="%{BKY_CATEGORY_CONTROL}" id="control" colour="#FFAB19" secondaryColour="#CF8B17">
387
388
<block type="control_wait">
@@ -713,6 +714,7 @@ const myBlocks = function () {
713
714
</category>
714
715
` ;
715
716
} ;
717
+ /* eslint-enable no-unused-vars */
716
718
717
719
const xmlOpen = '<xml style="display: none">' ;
718
720
const xmlClose = '</xml>' ;
0 commit comments