Add SFX
This commit is contained in:
+12
-2
@@ -238,19 +238,29 @@ func _on_server_option_selected(index: int) -> void:
|
||||
if server_ip_input: server_ip_input.visible = false
|
||||
NakamaManager.set_server("localhost")
|
||||
LobbyManager.is_lan_mode = false
|
||||
connection_status.text = "Mode: Local Testing (Nakama)"
|
||||
elif index == 1:
|
||||
# Nakama Remote
|
||||
if server_ip_input: server_ip_input.visible = true
|
||||
if server_ip_input:
|
||||
server_ip_input.visible = true
|
||||
server_ip_input.placeholder_text = "IP (100.x) or Tailscale Funnel URL..."
|
||||
if server_ip_input: NakamaManager.set_server(server_ip_input.text)
|
||||
LobbyManager.is_lan_mode = false
|
||||
connection_status.text = "Mode: Online (Nakama Remote)"
|
||||
else:
|
||||
# LAN Direct
|
||||
if server_ip_input: server_ip_input.visible = false
|
||||
LobbyManager.is_lan_mode = true
|
||||
connection_status.text = "Mode: LAN Direct (No Server)"
|
||||
|
||||
func _on_server_ip_submitted(new_text: String) -> void:
|
||||
if server_option and server_option.selected == 1:
|
||||
NakamaManager.set_server(new_text.strip_edges())
|
||||
var host = new_text.strip_edges()
|
||||
NakamaManager.set_server(host)
|
||||
if host.ends_with(".ts.net"):
|
||||
connection_status.text = "Using Tailscale Funnel: " + host
|
||||
else:
|
||||
connection_status.text = "Server IP updated: " + host
|
||||
|
||||
func _setup_game_modes() -> void:
|
||||
if not game_mode_option: return
|
||||
|
||||
Reference in New Issue
Block a user