From 84365b6f901a9c0251a9f724a8d9f81a3787e97d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 3 Nov 2024 14:10:07 +0100 Subject: next commit --- UI/lobby.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'UI/lobby.gd') 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)) -- cgit v1.2.3