summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/core.rpy2
-rw-r--r--game/screens.rpy8
-rw-r--r--game/vault.rpy2
3 files changed, 11 insertions, 1 deletions
diff --git a/game/core.rpy b/game/core.rpy
index a9ed013..6856024 100644
--- a/game/core.rpy
+++ b/game/core.rpy
@@ -156,6 +156,8 @@ init -3 python:
persistent.iconify = ifte(renpy.windows, False, True)
if (persistent.autologin is None):
persistent.autologin = True
+ if (persistent.maskpass is None):
+ persistent.maskpass = True
#############################################################################
## Conditional imports
diff --git a/game/screens.rpy b/game/screens.rpy
index b514637..f287432 100644
--- a/game/screens.rpy
+++ b/game/screens.rpy
@@ -692,6 +692,14 @@ screen preferences():
textbutton _("Built-In"):
action SetVariable("persistent.evol2cli", "builtin")
+ null height 10
+ label _("Mask password")
+ textbutton ifte(persistent.maskpass,
+ _("Enabled"),
+ _("Disabled")):
+ action ToggleVariable("persistent.maskpass")
+ null height 10
+
vbox:
style_prefix "check"
diff --git a/game/vault.rpy b/game/vault.rpy
index de0d468..0dc1596 100644
--- a/game/vault.rpy
+++ b/game/vault.rpy
@@ -118,7 +118,7 @@ screen register_vault():
copypaste=True,
allow="qwertyuiopasdfghjklçzxcvbnm QWERTYUIOPASDFGHJKLÇZXCVBNM1234567890-+=!(),.:;@*^_",
length=52,
- mask="*")
+ mask=ifte(persistent.maskpass, "*", None))
button:
#key_events True
action input.enable