From 825fb34ca52610d1ff0f4db965d2fadc3859be74 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 28 Jul 2022 21:13:21 -0300 Subject: Allow players to see their passwords as well. --- game/screens.rpy | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 = "" -- cgit v1.2.3-60-g2f50