mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-22 08:04:21 +00:00
9 lines
271 B
GDScript3
9 lines
271 B
GDScript3
|
extends Label
|
||
|
class_name PlayerScoreLabel
|
||
|
|
||
|
|
||
|
func from_score(strokes: int, playernode: PlayerNode) -> void:
|
||
|
text = "%s - %d" % [playernode.player_name, strokes]
|
||
|
modulate = playernode.player_color
|
||
|
modulate.a = 0.3 if playernode.get_multiplayer_authority() == 1 else 1.0
|