From b0145cf3789c21167728b684c220d439e5fd5dff Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Tue, 8 Aug 2017 11:41:31 +0200 Subject: [PATCH] Fix test.ts so it compiles --- libs/core/test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/core/test.ts b/libs/core/test.ts index 08710916..7d1281d8 100644 --- a/libs/core/test.ts +++ b/libs/core/test.ts @@ -1,10 +1,10 @@ screen.clear() -screen.drawText(10, 30, "PXT!", Draw.Quad) +screen.drawText("PXT!", 10, 30, Draw.Quad) screen.drawRect(40, 40, 20, 10, Draw.Fill) output.setLights(LightsPattern.Orange) -screen.drawIcon(100, 50, screen.doubleIcon(screen.heart), Draw.Double|Draw.Transparent) +screen.drawIcon(100, 50, screen.doubleIcon(screen.heart), Draw.Double | Draw.Transparent) input.buttonEnter.onEvent(ButtonEvent.Click, () => { screen.clear() @@ -17,32 +17,32 @@ input.buttonLeft.onEvent(ButtonEvent.Click, () => { }) input.buttonRight.onEvent(ButtonEvent.Click, () => { - screen.drawText(10, 60, "Right!") + screen.drawText("Right!", 10, 60) }) input.buttonDown.onEvent(ButtonEvent.Click, () => { - screen.drawText(10, 60, "Down! ") + screen.drawText("Down! ", 10, 60) }) input.buttonUp.onEvent(ButtonEvent.Click, () => { - screen.drawText(10, 60, "Up! ") + screen.drawText("Up! ", 10, 60) }) let num = 0 input.touchSensor.onEvent(ButtonEvent.Click, () => { - screen.drawText(10, 60, "Click! " + num) + screen.drawText("Click! " + num, 10, 60) num++ }) input.remoteTopLeft.onEvent(ButtonEvent.Click, () => { - screen.drawText(10, 60, "TOPLEFT " + num) + screen.drawText("TOPLEFT " + num, 10, 60) num++ }) input.remoteTopRight.onEvent(ButtonEvent.Down, () => { - screen.drawText(10, 60, "TOPRIGH " + num) + screen.drawText("TOPRIGH " + num, 10, 60) num++ })