From ad6c8ce2710edd96e6d66c2b3e7ab91bec1e70c7 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 4 Oct 2018 09:22:45 -0700 Subject: [PATCH] use new shadow to support time picker on pause (#1346) --- libs/core/basic.cpp | 1 + libs/core/shims.d.ts | 3 ++- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/core/basic.cpp b/libs/core/basic.cpp index ef7f7783..5cf0b1ee 100644 --- a/libs/core/basic.cpp +++ b/libs/core/basic.cpp @@ -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); } diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 90849f07..6cd16da1 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -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; } diff --git a/package.json b/package.json index 92f2b678..05ee05cb 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ }, "dependencies": { "pxt-common-packages": "0.23.57", - "pxt-core": "4.1.13" + "pxt-core": "4.1.15" } }