aboutsummaryrefslogtreecommitdiff
path: root/client/gui/menus/main
diff options
context:
space:
mode:
Diffstat (limited to 'client/gui/menus/main')
-rw-r--r--client/gui/menus/main/play.gd10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/gui/menus/main/play.gd b/client/gui/menus/main/play.gd
index d2e231e1..87b0b5bf 100644
--- a/client/gui/menus/main/play.gd
+++ b/client/gui/menus/main/play.gd
@@ -45,18 +45,18 @@ func _ready():
super()
if not Global.get_profile("registry_asked"):
var popup_data := MenuPopup.Data.new()
- popup_data.text = tr("c.menu.play.allow_query_registry").format([Global.get_setting("online.registry_url")])
+ popup_data.text = tr("c.menu.play.allow_query_registry").format([Settings.read("online.registry_url")])
var allow_button := Button.new()
allow_button.text = tr("c.menu.accept")
var deny_button := Button.new()
deny_button.text = tr("c.menu.deny")
- allow_button.pressed.connect(func(): Global.set_setting("online.use_registry", true))
- deny_button.pressed.connect(func(): Global.set_setting("online.use_registry", false))
+ allow_button.pressed.connect(func(): Settings.write("online.use_registry", true))
+ deny_button.pressed.connect(func(): Settings.write("online.use_registry", false))
popup_data.buttons = [allow_button, deny_button]
await submenu("res://gui/menus/popup.tscn", popup_data)
Global.set_profile("registry_asked", true)
- Global.save_settings()
Global.save_profile()
+ Settings.save()
ServerList.start()
@@ -141,7 +141,7 @@ func _on_editor_control_pressed():
Service.State.FAILED: Editor.start()
func _on_server_connect_pressed():
- connect_to("ws://%s:%d" % [ServerService.connect_address(), Global.get_setting("server.bind_port")])
+ connect_to("ws://%s:%d" % [ServerService.connect_address(), Settings.read("server.bind_port")])
func _on_editor_connect_pressed():
connect_to("ws://[::1]:27032/")