Fix block tests by removing arrow, reverting block string (#158)
This commit is contained in:
parent
4ad5c2d4a0
commit
d4214c65f2
@ -120,7 +120,7 @@
|
||||
"IconNames.SmallHeart|block": "small heart",
|
||||
"IconNames.Surprised|block": "surprised",
|
||||
"IconNames.Yes|block": "yes",
|
||||
"Image.scrollImage|block": "scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %interval",
|
||||
"Image.scrollImage|block": "scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %delay",
|
||||
"Image.showImage|block": "show image %sprite(myImage)|at offset %offset ||and interval (ms) %interval",
|
||||
"JSON|block": "JSON",
|
||||
"LedSpriteProperty.Blink|block": "blink",
|
||||
|
@ -30,10 +30,10 @@
|
||||
<next>
|
||||
<block type="device_clear_display">
|
||||
<next>
|
||||
<block type="basic_show_arrow">
|
||||
<value name="i">
|
||||
<shadow type="device_arrow">
|
||||
<field name="arrow">ArrowNames.South</field>
|
||||
<block type="device_pause">
|
||||
<value name="pause">
|
||||
<shadow type="math_number">
|
||||
<field name="NUM">100</field>
|
||||
</shadow>
|
||||
</value>
|
||||
</block>
|
||||
|
@ -14,17 +14,9 @@
|
||||
<shadow type="math_number" id="KX(1%=^vQUd=Q`UHhD*n">
|
||||
<field name="NUM">0</field>
|
||||
</shadow>
|
||||
<block type="device_arrow">
|
||||
<field name="arrow">ArrowNames.South</field>
|
||||
</block>
|
||||
</value>
|
||||
<next>
|
||||
<block type="device_scroll_image">
|
||||
<value name="sprite">
|
||||
<block type="builtin_arrow_image">
|
||||
<field name="i">ArrowNames.SouthWest</field>
|
||||
</block>
|
||||
</value>
|
||||
<value name="frameoffset">
|
||||
<shadow type="math_number">
|
||||
<field name="NUM">1</field>
|
||||
|
File diff suppressed because one or more lines are too long
@ -111,7 +111,7 @@ void plotFrame(Image i, int xOffset) {
|
||||
*/
|
||||
//% help=images/scroll-image weight=79 async blockNamespace=images
|
||||
//% blockId=device_scroll_image
|
||||
//% block="scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %interval"
|
||||
//% block="scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %delay"
|
||||
//% blockGap=8 parts="ledmatrix"
|
||||
void scrollImage(Image id, int frameOffset, int interval) {
|
||||
MicroBitImage i(id->img);
|
||||
|
2
libs/core/shims.d.ts
vendored
2
libs/core/shims.d.ts
vendored
@ -60,7 +60,7 @@ declare interface Image {
|
||||
*/
|
||||
//% help=images/scroll-image weight=79 async blockNamespace=images
|
||||
//% blockId=device_scroll_image
|
||||
//% block="scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %interval"
|
||||
//% block="scroll image %sprite(myImage)|with offset %frameoffset|and interval (ms) %delay"
|
||||
//% blockGap=8 parts="ledmatrix" shim=ImageMethods::scrollImage
|
||||
scrollImage(frameOffset: int32, interval: int32): void;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user