feat: Implement the "Stop N Go" arena with new assets, scenes, and associated game logic and UI.
This commit is contained in:
@@ -37,8 +37,10 @@ func initialize(player_node):
|
||||
if not playerboard_ui:
|
||||
playerboard_ui = player_node.get_node_or_null("PlayerboardUI")
|
||||
|
||||
# Connect PlayerName label (Level/XP/Name UI)
|
||||
player_name_label = player_node.get_node_or_null("PlayerName")
|
||||
# Connect PlayerName label — now lives under PlayerBoardUI
|
||||
player_name_label = player_node.get_node_or_null("PlayerBoardUI/PlayerName")
|
||||
if not player_name_label:
|
||||
player_name_label = player_node.get_node_or_null("PlayerName")
|
||||
|
||||
|
||||
func set_local_player(player):
|
||||
@@ -380,10 +382,13 @@ func setup_timer_labels(main_node):
|
||||
suffix_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
|
||||
|
||||
func setup_playerboard_label(main_node):
|
||||
var lbl = main_node.get_node_or_null("PlayerBoardLabel")
|
||||
# PlayerBoardLabel now lives under PlayerBoardUI
|
||||
var lbl = main_node.get_node_or_null("PlayerBoardUI/PlayerBoardLabel")
|
||||
if not lbl:
|
||||
lbl = main_node.get_node_or_null("PlayerBoardLabel")
|
||||
if lbl:
|
||||
playerboard_label = lbl
|
||||
playerboard_label.text = "x0" # Start at x0
|
||||
playerboard_label.text = "x0"
|
||||
print("[UIManager] Found PlayerBoardLabel")
|
||||
else:
|
||||
print("[UIManager] PlayerBoardLabel not found")
|
||||
|
||||
Reference in New Issue
Block a user