summaryrefslogtreecommitdiff
path: root/scripts/gui/input.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-24 23:00:59 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-24 23:00:59 -0400
commit7abeb4a35a0105b94e599de9970404c98790b4d9 (patch)
tree0cbd81329df21fcdbc5a896a0711657fc60958a1 /scripts/gui/input.js
parent50a1c6f8432b541d84a1326ae8515589440a3804 (diff)
Clean up game element
Diffstat (limited to 'scripts/gui/input.js')
-rw-r--r--scripts/gui/input.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/gui/input.js b/scripts/gui/input.js
index 0e0c7ba..032d168 100644
--- a/scripts/gui/input.js
+++ b/scripts/gui/input.js
@@ -48,6 +48,14 @@ class MakeInput {
return el;
}
+ static passwordInput (value, placeholder)
+ {
+ let el = MakeInput.createInput("password");
+ el.setAttribute("placeholder", placeholder);
+ el.value = value;
+ return el;
+ }
+
static numberInput (value)
{
let el = MakeInput.createInput("number");