aboutsummaryrefslogtreecommitdiff
path: root/client/menu/main.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-12 00:49:30 +0200
committertpart <tpart120@proton.me>2024-07-12 00:49:42 +0200
commit6173d3e9a45f17dc92318d11786c5631143808e5 (patch)
tree156571ba92601545bfe8f543f0192ecb4bc55d8b /client/menu/main.gd
parentbcb1105f8103e20e716e9a3cfb9c0d5cb11db765 (diff)
downloadhurrycurry-6173d3e9a45f17dc92318d11786c5631143808e5.tar
hurrycurry-6173d3e9a45f17dc92318d11786c5631143808e5.tar.bz2
hurrycurry-6173d3e9a45f17dc92318d11786c5631143808e5.tar.zst
Add hint system
Diffstat (limited to 'client/menu/main.gd')
-rw-r--r--client/menu/main.gd5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/menu/main.gd b/client/menu/main.gd
index 9fe026fe..a0ad2ee5 100644
--- a/client/menu/main.gd
+++ b/client/menu/main.gd
@@ -26,7 +26,7 @@ func _ready():
if OS.has_feature("web"):
quit_button.hide()
server.hide()
- connect_uri.text = Global.profile["last_server_url"]
+ connect_uri.text = Global.get_profile("last_server_url")
func menu_anim_cover(covered):
$side.visible = not covered
@@ -39,8 +39,7 @@ func _on_credits_pressed():
func _on_connect_pressed():
var url = connect_uri.text
- Global.profile["last_server_url"] = url
- Global.save_profile()
+ Global.set_profile("last_server_url", url)
connect_to(url)
func _on_quick_connect_pressed():