diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-11-03 14:10:07 +0100 |
commit | 84365b6f901a9c0251a9f724a8d9f81a3787e97d (patch) | |
tree | 401e2bf99e6573d1d069f5044e7448067cdfb384 /UI/lobby.gd | |
parent | a43499efa6c228cea3633f9661f3ff09127bd82d (diff) |
next commit
Diffstat (limited to 'UI/lobby.gd')
-rw-r--r-- | UI/lobby.gd | 5 |
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)) |