1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-24 17:14:19 +00:00
algodist-steffo-nanogolf/scenes/player_label.gd

9 lines
256 B
GDScript3
Raw Normal View History

2024-02-28 05:30:45 +00:00
extends Label
class_name PlayerLabel
func update_from_tracker(tracker: SinglePlayerTracker):
text = tracker.player_name
add_theme_color_override("font_color", tracker.player_color)
2024-03-07 04:06:37 +00:00
modulate.a = 1.0 if tracker.get_multiplayer_authority() != 1 else 0.3