pxt-common-packages 10.3.23 → 10.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3256,16 +3256,16 @@ var pxsim;
3256
3256
  sequencers.push(res);
3257
3257
  await res.sequencer.initAsync();
3258
3258
  res.sequencer.addEventListener("stop", () => {
3259
- pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, this.id);
3259
+ pxsim.board().bus.queue(music.SEQUENCER_STOP_MESSAGE, res.id);
3260
3260
  });
3261
3261
  res.sequencer.addEventListener("state-change", () => {
3262
- pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
3262
+ pxsim.board().bus.queue(music.SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
3263
3263
  });
3264
3264
  res.sequencer.addEventListener("looped", () => {
3265
- pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, this.id);
3265
+ pxsim.board().bus.queue(music.SEQUENCER_LOOPED_MESSAGE, res.id);
3266
3266
  });
3267
3267
  res.sequencer.addEventListener("tick", () => {
3268
- pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, this.id);
3268
+ pxsim.board().bus.queue(music.SEQUENCER_TICK_MESSAGE, res.id);
3269
3269
  });
3270
3270
  return res.id;
3271
3271
  }
@@ -54,16 +54,16 @@ namespace pxsim.music {
54
54
 
55
55
  await res.sequencer.initAsync();
56
56
  res.sequencer.addEventListener("stop", () => {
57
- board().bus.queue(SEQUENCER_STOP_MESSAGE, this.id);
57
+ board().bus.queue(SEQUENCER_STOP_MESSAGE, res.id);
58
58
  });
59
59
  res.sequencer.addEventListener("state-change", () => {
60
- board().bus.queue(SEQUENCER_STATE_CHANGE_MESSAGE, this.id);
60
+ board().bus.queue(SEQUENCER_STATE_CHANGE_MESSAGE, res.id);
61
61
  });
62
62
  res.sequencer.addEventListener("looped", () => {
63
- board().bus.queue(SEQUENCER_LOOPED_MESSAGE, this.id);
63
+ board().bus.queue(SEQUENCER_LOOPED_MESSAGE, res.id);
64
64
  });
65
65
  res.sequencer.addEventListener("tick", () => {
66
- board().bus.queue(SEQUENCER_TICK_MESSAGE, this.id);
66
+ board().bus.queue(SEQUENCER_TICK_MESSAGE, res.id);
67
67
  });
68
68
 
69
69
 
@@ -14,7 +14,7 @@
14
14
  "image.create|block": "create image width %width height %height",
15
15
  "image.screenImage|block": "screen",
16
16
  "images._dialogImage|block": "%img",
17
- "images._image|block": "%image",
17
+ "images._image|block": "$image",
18
18
  "images._screenImage|block": "%img",
19
19
  "images._spriteImage|block": "%img",
20
20
  "images._tileImage|block": "%img",
@@ -83,10 +83,11 @@ namespace images {
83
83
  * An image
84
84
  * @param image the image
85
85
  */
86
- //% blockId=image_picker block="%image" shim=TD_ID
87
- //% image.fieldEditor="images"
88
- //% image.fieldOptions.columns=6
89
- //% image.fieldOptions.width=600
86
+ //% blockId=image_picker block="$image" shim=TD_ID
87
+ //% image.fieldEditor="sprite"
88
+ //% image.fieldOptions.taggedTemplate="img"
89
+ //% image.fieldOptions.decompileIndirectFixedInstances="true"
90
+ //% image.fieldOptions.decompileArgumentAsString="true"
90
91
  //% weight=0 group="Create"
91
92
  export function _image(image: Image): Image {
92
93
  return image;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pxt-common-packages",
3
- "version": "10.3.23",
3
+ "version": "10.3.25",
4
4
  "description": "Microsoft MakeCode (PXT) common packages",
5
5
  "keywords": [
6
6
  "MakeCode",