summaryrefslogtreecommitdiff
path: root/UI/lobby.gd
diff options
context:
space:
mode:
Diffstat (limited to 'UI/lobby.gd')
-rw-r--r--UI/lobby.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/UI/lobby.gd b/UI/lobby.gd
index 1cb4d5c..26a7b97 100644
--- a/UI/lobby.gd
+++ b/UI/lobby.gd
@@ -3,7 +3,7 @@ extends Control
signal joined
-var current_map_idx := 2
+var current_map_idx := 0
@onready var list: VBoxContainer = %PlayersList
@@ -23,7 +23,6 @@ func _ready() -> void:
)
for idx in %Maps.get_child_count():
%Maps.get_child(idx).pressed.connect(func():
- current_map_idx = idx
set_map.rpc(idx)
)
if not multiplayer.is_server():
@@ -84,6 +83,8 @@ func start():
@rpc("authority", "call_local")
func set_map(index: int):
+ current_map_idx = index
+
for node: Button in %Maps.get_children():
node.add_theme_color_override("font_color", Color(1.0, 1.0, 1.0, 0.5))