From c19a83ca9c6d4b42b9ca1d725b34ac4721213c3d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 May 2021 20:17:41 -0300 Subject: Prepare Vault-Based AUTH --- game/renpy.rpy | 8 ++++++++ game/screens.rpy | 2 +- game/update.rpy | 16 +++++++++++++--- 3 files changed, 22 insertions(+), 4 deletions(-) (limited to 'game') diff --git a/game/renpy.rpy b/game/renpy.rpy index b6e5b86..0c7347b 100644 --- a/game/renpy.rpy +++ b/game/renpy.rpy @@ -59,6 +59,14 @@ label start: if not responsive: jump die + # Do we have a Vault ID? + if not vaultId: + call register + + # If we still don't have a Vault ID - something went wrong D: + if not vaultId: + jump die + $ stdout("Connection established!") # Open game diff --git a/game/screens.rpy b/game/screens.rpy index 386ef92..f5fe9da 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -755,7 +755,7 @@ screen preferences(): button: action Return() add Frame("gui/button/choice_hover_background.png", 0, 0) - text _("Start!"): + text _("All Set!"): color "#FFF" xalign 0.5 yalign 0.5 diff --git a/game/update.rpy b/game/update.rpy index 8074d04..97cabba 100644 --- a/game/update.rpy +++ b/game/update.rpy @@ -233,9 +233,9 @@ init python: # Must return and let a prompt for username & password # (Or Email, in the case of the modern Vault) # If vaultId is zero - status_update("{color=#F00}VaultError: Not yet implemented{/color}") - responsive = False - return + #status_update("{color=#F00}VaultError: Not yet implemented{/color}") + #responsive = False + #return ####### TODO FIXME ######################################### @@ -243,3 +243,13 @@ init python: status_update("Complete!", 100) return + +label register: + menu: + "Select desired authetication method" + "E-mail Auth": + pass + "2FA Authentication": + pass + return + -- cgit v1.2.3-70-g09d2