diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-17 15:38:34 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-17 15:38:34 -0300 |
commit | 55574bdf66cf0e93f3089e0702423dd74bb59715 (patch) | |
tree | a7476cdc9b97eb8da61748b89fcd4ec7acbd4e3a | |
parent | 0f8983e7e6920ee210772664d2330a0943332fb2 (diff) | |
download | client-55574bdf66cf0e93f3089e0702423dd74bb59715.tar.gz client-55574bdf66cf0e93f3089e0702423dd74bb59715.tar.bz2 client-55574bdf66cf0e93f3089e0702423dd74bb59715.tar.xz client-55574bdf66cf0e93f3089e0702423dd74bb59715.zip |
Improve registration screen
-rw-r--r-- | game/register.rpy | 5 | ||||
-rw-r--r-- | game/screens.rpy | 18 | ||||
-rw-r--r-- | game/script.rpy | 8 |
3 files changed, 21 insertions, 10 deletions
diff --git a/game/register.rpy b/game/register.rpy index f5cd6f9..d7dd45d 100644 --- a/game/register.rpy +++ b/game/register.rpy @@ -78,7 +78,7 @@ label register_email: email = "" # Ask player for their email while email == "": - email=renpy.call_screen("input_box", "Welcome to %s!\nPlease insert your email to register an account: \n{size=24}Your account password will be emailed to you. This is the only way to recover a lost account. You can use an {a=https://www.tempmailaddress.com/}Temporary email{/a} if you wish.{/size}" % (config.name)) + email=renpy.call_screen("input_box", "Please insert your {a=about_email}email{/a} to register an account: \n", "Welcome to %s!" % (config.name)) if not re.search(regex, email): email="" renpy.call_screen("msgbox", @@ -119,4 +119,7 @@ label register_password: password="" jump login +label about_email: + $ renpy.call_screen("msgbox", "Your account password will be emailed to you. This is the only way to recover a lost account. You can use an {a=https://www.tempmailaddress.com/}Temporary email{/a} if you wish.", False) + return diff --git a/game/screens.rpy b/game/screens.rpy index 98cc665..b466473 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -1192,7 +1192,7 @@ transform msgbox_emp: yalign 0.50 linear 0.1 -screen msgbox(message): +screen msgbox(message, anim=True): ## Ensure other screens do not get input while this screen is displayed. modal True @@ -1201,7 +1201,8 @@ screen msgbox(message): style_prefix "confirm" frame: - at msgbox_emp + if anim: + at msgbox_emp vbox: xalign 0.5 @@ -1688,10 +1689,10 @@ style slider_pref_slider: variant "small" xsize 600 -screen input_box(ib_message=_("Please write it down here: ")): +screen input_box(ib_message=_("Please write it down here: "), baloney=""): window: background Frame("gui/frame.png", 5, 5) - yalign 0.5 + yalign 0.25 xalign 0.5 ypadding 30 xpadding 30 @@ -1699,11 +1700,18 @@ screen input_box(ib_message=_("Please write it down here: ")): xminimum 512 yminimum 95 vbox: - text (ib_message) color "#3e3e3e" yalign 0.0 size 28 + text (ib_message) color "#3ee33e" yalign 0.0 size 28 input: id "msgmsg" color ((128, 128, 128, 220)) italic True size 26 copypaste True + fixed: + label (baloney): + style "pref_label" + yalign 0.02 + xalign 0.50 + text_size 54 + text_outlines [ (1, "#000", 0, 0) ] diff --git a/game/script.rpy b/game/script.rpy index da20c6f..e910d89 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -68,11 +68,11 @@ label start: menu: "tr_load is [tr_load]\ntr_busy is [tr_busy]" "Send ping": - $ send_packet_now('PING') - "Send formatted packet": - $ send_packet_now('TOKEN;PACKET;') + $ send_packet('PING') + "Send malformatted packet": + $ send_packet('TOKEN;PACKET;') "Send invalid packet": - $ send_packet_now('INVALID PACKET') + $ send_packet('INVALID PACKET') # Check if we need to register if persistent.password is None: |