diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-05-12 09:20:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-05-12 09:20:06 -0300 |
commit | b0ac66f8b424b3968886efa3455cff515474c9e5 (patch) | |
tree | 5d34ee9eef7d5b63b3be54da582cb12c7ed9f3ca | |
parent | 24df2de5e60adef3efe432d5e63536c7826b54c8 (diff) | |
download | renpy-b0ac66f8b424b3968886efa3455cff515474c9e5.tar.gz renpy-b0ac66f8b424b3968886efa3455cff515474c9e5.tar.bz2 renpy-b0ac66f8b424b3968886efa3455cff515474c9e5.tar.xz renpy-b0ac66f8b424b3968886efa3455cff515474c9e5.zip |
Allow users to disable password masking
-rw-r--r-- | game/core.rpy | 2 | ||||
-rw-r--r-- | game/screens.rpy | 8 | ||||
-rw-r--r-- | game/vault.rpy | 2 |
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 |