From b0ac66f8b424b3968886efa3455cff515474c9e5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 12 May 2023 09:20:06 -0300 Subject: Allow users to disable password masking --- game/core.rpy | 2 ++ game/screens.rpy | 8 ++++++++ game/vault.rpy | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-60-g2f50