From 03b7e2d4cb001cef990efef61d9ce499c8e4f878 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 28 Jul 2022 22:27:39 -0400 Subject: Fix button input, add rotation and scale to decks --- scripts/gui/input.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts/gui') diff --git a/scripts/gui/input.js b/scripts/gui/input.js index 24450f0..45f145f 100644 --- a/scripts/gui/input.js +++ b/scripts/gui/input.js @@ -51,7 +51,7 @@ class MakeInput { static buttonInput (text) { let el = MakeInput.createInput("button", false, false); - el.textContent = text; + el.value = text; return el; } @@ -333,8 +333,10 @@ class Settings extends EventTarget { { let out = {}; - for(let key in this.settings) - out[key] = this.settings[key].el.getValue(); + for(let key in this.settings) { + if (this.settings[key].el.getAttribute("type") != "button") + out[key] = this.settings[key].el.getValue(); + } return out; } -- cgit v1.2.3