summaryrefslogtreecommitdiff
path: root/scripts/gui/input.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-28 22:27:39 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-28 22:27:39 -0400
commit03b7e2d4cb001cef990efef61d9ce499c8e4f878 (patch)
tree3e3d2d179c2b95703dda940546d00ac914b33bd8 /scripts/gui/input.js
parent81b562233188569b66fc2fb2a7ff952bdae0a4ec (diff)
Fix button input, add rotation and scale to decks
Diffstat (limited to 'scripts/gui/input.js')
-rw-r--r--scripts/gui/input.js8
1 files changed, 5 insertions, 3 deletions
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;
}