use new shadow to support time picker on pause (#1346)
This commit is contained in:
parent
981a879ef4
commit
ad6c8ce271
@ -98,6 +98,7 @@ namespace basic {
|
|||||||
//% help=basic/pause weight=54
|
//% help=basic/pause weight=54
|
||||||
//% async block="pause (ms) %pause" blockGap=16
|
//% async block="pause (ms) %pause" blockGap=16
|
||||||
//% blockId=device_pause icon="\uf110"
|
//% blockId=device_pause icon="\uf110"
|
||||||
|
//% pause.shadow=timePicker
|
||||||
void pause(int ms) {
|
void pause(int ms) {
|
||||||
fiber_sleep(ms);
|
fiber_sleep(ms);
|
||||||
}
|
}
|
||||||
|
3
libs/core/shims.d.ts
vendored
3
libs/core/shims.d.ts
vendored
@ -197,7 +197,8 @@ declare namespace basic {
|
|||||||
*/
|
*/
|
||||||
//% help=basic/pause weight=54
|
//% help=basic/pause weight=54
|
||||||
//% async block="pause (ms) %pause" blockGap=16
|
//% async block="pause (ms) %pause" blockGap=16
|
||||||
//% blockId=device_pause icon="\uf110" shim=basic::pause
|
//% blockId=device_pause icon="\uf110"
|
||||||
|
//% pause.shadow=timePicker shim=basic::pause
|
||||||
function pause(ms: int32): void;
|
function pause(ms: int32): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,6 +42,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.23.57",
|
"pxt-common-packages": "0.23.57",
|
||||||
"pxt-core": "4.1.13"
|
"pxt-core": "4.1.15"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user