aboutsummaryrefslogtreecommitdiff
path: root/client/menu/setup.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-17 21:44:51 +0200
committertpart <tpart120@proton.me>2024-07-17 21:45:28 +0200
commit315864c63650c7b5d7dbb6efb53dea47c4610881 (patch)
tree85850d5e74ee165257f724817fe83fce0a8359ad /client/menu/setup.gd
parent547c7ce18391d69677b495ede8f73c5277ac017c (diff)
downloadhurrycurry-315864c63650c7b5d7dbb6efb53dea47c4610881.tar
hurrycurry-315864c63650c7b5d7dbb6efb53dea47c4610881.tar.bz2
hurrycurry-315864c63650c7b5d7dbb6efb53dea47c4610881.tar.zst
Add custom warning popup for setup menu and potential future use
Diffstat (limited to 'client/menu/setup.gd')
-rw-r--r--client/menu/setup.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/menu/setup.gd b/client/menu/setup.gd
index 7a56a14d..9ed6bb64 100644
--- a/client/menu/setup.gd
+++ b/client/menu/setup.gd
@@ -51,8 +51,9 @@ func _process(delta):
scroll.set_deferred("scroll_vertical", scroll.scroll_vertical + s * delta * SCROLL_SPEED)
func _on_sign_pressed():
- if username.text == "": OS.alert("Name field cannot be empty."); return
- if character == -1: OS.alert("Hairstyle needs to be selected."); return
+ if username.text == "" or character == -1:
+ await submenu("res://menu/warning_popup.tscn")
+ return
sign_button.disabled = true