use new shadow to support time picker on pause (#1346)

This commit is contained in:
Peli de Halleux 2018-10-04 09:22:45 -07:00 committed by GitHub
parent 981a879ef4
commit ad6c8ce271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -98,6 +98,7 @@ namespace basic {
//% help=basic/pause weight=54
//% async block="pause (ms) %pause" blockGap=16
//% blockId=device_pause icon="\uf110"
//% pause.shadow=timePicker
void pause(int ms) {
fiber_sleep(ms);
}

View File

@ -197,7 +197,8 @@ declare namespace basic {
*/
//% help=basic/pause weight=54
//% 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;
}

View File

@ -42,6 +42,6 @@
},
"dependencies": {
"pxt-common-packages": "0.23.57",
"pxt-core": "4.1.13"
"pxt-core": "4.1.15"
}
}