Fix block tests by removing arrow, reverting block string (#158)

This commit is contained in:
Richard Knoll 2022-03-23 13:23:00 -07:00 committed by GitHub
parent 4ad5c2d4a0
commit d4214c65f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 693 deletions

View File

@ -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",

View File

@ -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>

View File

@ -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

View File

@ -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);

View File

@ -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;