feat: Implement the main game scene, orchestrating manager initialization, UI setup, network integration, and in-game message bar.
This commit is contained in:
@@ -1368,6 +1368,12 @@ func sync_leaderboard_data(player_data: Array):
|
|||||||
score_label.text = str(data.score)
|
score_label.text = str(data.score)
|
||||||
|
|
||||||
entry.visible = true
|
entry.visible = true
|
||||||
|
|
||||||
|
# Highlight check
|
||||||
|
if data.peer_id == multiplayer.get_unique_id():
|
||||||
|
entry.modulate = Color(1.0, 1.0, 0.0) # Yellow
|
||||||
|
else:
|
||||||
|
entry.modulate = Color.WHITE
|
||||||
else:
|
else:
|
||||||
entry.visible = false
|
entry.visible = false
|
||||||
|
|
||||||
@@ -1417,6 +1423,12 @@ func _update_leaderboard_display():
|
|||||||
score_label.text = str(data.score)
|
score_label.text = str(data.score)
|
||||||
|
|
||||||
entry.visible = true
|
entry.visible = true
|
||||||
|
|
||||||
|
# Highlight check
|
||||||
|
if data.peer_id == multiplayer.get_unique_id():
|
||||||
|
entry.modulate = Color(1.0, 1.0, 0.0) # Yellow
|
||||||
|
else:
|
||||||
|
entry.modulate = Color.WHITE
|
||||||
else:
|
else:
|
||||||
entry.visible = false
|
entry.visible = false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user