mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-22 08:04:21 +00:00
8 lines
256 B
GDScript
8 lines
256 B
GDScript
extends Label
|
|
class_name PlayerLabel
|
|
|
|
|
|
func update_from_tracker(tracker: SinglePlayerTracker):
|
|
text = tracker.player_name
|
|
add_theme_color_override("font_color", tracker.player_color)
|
|
modulate.a = 1.0 if tracker.get_multiplayer_authority() != 1 else 0.3
|