diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-07-28 21:13:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-07-28 21:13:21 -0300 |
commit | 825fb34ca52610d1ff0f4db965d2fadc3859be74 (patch) | |
tree | e1d8c40c4d12d4fcfe51224b10ea971e14a27eb4 | |
parent | 8f26c893824f66eb1ee9baef40f4cebd7744e634 (diff) | |
download | client-825fb34ca52610d1ff0f4db965d2fadc3859be74.tar.gz client-825fb34ca52610d1ff0f4db965d2fadc3859be74.tar.bz2 client-825fb34ca52610d1ff0f4db965d2fadc3859be74.tar.xz client-825fb34ca52610d1ff0f4db965d2fadc3859be74.zip |
Allow players to see their passwords as well.
-rw-r--r-- | game/screens.rpy | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/game/screens.rpy b/game/screens.rpy index 270c8bf..bd848ca 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -661,6 +661,20 @@ screen about(): text _("Made with {a=https://www.renpy.org/}Ren'Py{/a} [renpy.version_only].\n\n[renpy.license!t]") + ## TODO: Obfuscate (e.g. click here to show password) + if persistent.password: + null height 60 + text "-------------------------------------" + label _("Recovery password") + null height 10 + if len(persistent.password) == 16: + text "%s %s %s %s" % (persistent.password[0:4], persistent.password[4:8], persistent.password[8:12], persistent.password[12:16]) + elif len(persistent.password) == 12: + text "%s %s %s" % (persistent.password[0:4], persistent.password[4:8], persistent.password[8:12]) + else: + text "%s" % persistent.password + null height 30 + text _("This password allows anyone to login as you.\nKeep it safe!") ## This is redefined in options.rpy to add text to the about screen. define gui.about = "" |