From d821e4ef8561215a8505ec24c011a63a44a9dd24 Mon Sep 17 00:00:00 2001 From: KierPalin <45743174+KierPalin@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:17:55 +0000 Subject: [PATCH] liveDataViewer: updated tickerYValue not shown distance, sensorSelect: got rid of title, added bumped all buttons up a bit. --- liveDataViewer.ts | 2 +- sensorSelect.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/liveDataViewer.ts b/liveDataViewer.ts index 3982e7e..617c658 100644 --- a/liveDataViewer.ts +++ b/liveDataViewer.ts @@ -375,7 +375,7 @@ namespace microcode { const y = Math.round(Screen.HEIGHT - ((((reading - sensor.getMinimum()) / range) * (BUFFERED_SCREEN_HEIGHT - fromY)))) - fromY // Make sure the ticker won't be cut-off by other UI elements - if (!tickerYValues.some(v => Math.abs(v - y) <= 5) && (y < sensor.getMaximum() - 5 && y > sensor.getMinimum() + 5)) { + if (!tickerYValues.some(v => Math.abs(v - y) <= 4) && (y < sensor.getMaximum() - 5 && y > sensor.getMinimum() + 5)) { screen().print( sensor.getNthReading(sensor.getBufferLength() - 1).toString().slice(0, 5), this.windowLeftBuffer + sensor.getBufferLength() + 4, diff --git a/sensorSelect.ts b/sensorSelect.ts index 214915d..40022c9 100644 --- a/sensorSelect.ts +++ b/sensorSelect.ts @@ -51,7 +51,7 @@ namespace microcode { //----------------------------------------------------- let x: number = -60; - let y: number = Screen.HEIGHT * -0.3125 // y = -40 on an Arcade Shield of height 128 pixels + let y: number = -41 for (let i = 0; i < icons.length; i++) { this.btns.push(new Button({ parent: null, @@ -173,8 +173,6 @@ namespace microcode { 0xc ) - screen().printCenter("Sensor Selection", 2) - for (let i = 0; i < this.btns.length; i++) this.btns[i].draw()