feat: overhaul the nakama user management, leaderboard, prep for 2.1

This commit is contained in:
2026-04-03 04:50:18 +08:00
parent 47f88d31dc
commit e1a3ef8e85
318 changed files with 1933 additions and 1099 deletions
+9 -1
View File
@@ -216,10 +216,13 @@ func _setup_server_config_ui() -> void:
server_option.add_item("Nakama - Localhost (Testing)")
server_option.add_item("Nakama - Remote Server (Host IP)")
server_option.add_item("LAN Direct (No Server)")
server_option.add_item("Nakama - Tekton Dash EU")
# Set initial state based on NakamaManager
if NakamaManager.nakama_host == "localhost":
server_option.selected = 0
elif NakamaManager.nakama_host == "tektondash.vps.webdock.cloud":
server_option.selected = 3
else:
server_option.selected = 1
@@ -298,10 +301,15 @@ func _on_server_option_selected(index: int) -> void:
server_ip_input.visible = true
if lan_section: lan_section.visible = false
NakamaManager.set_server(server_ip_input.text)
else:
elif index == 2:
# LAN Direct
server_ip_input.visible = false
if lan_section: lan_section.visible = true
elif index == 3:
# Tekton Dash EU
server_ip_input.visible = false
if lan_section: lan_section.visible = false
NakamaManager.set_server("tektondash.vps.webdock.cloud")
func _on_server_ip_submitted(new_text: String) -> void:
if server_option and server_option.selected == 1: