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

15 lines
269 B
GDScript

extends Label
class_name PlayerLabel
func set_player_name(value: String):
text = value
func set_player_color(value: Color):
add_theme_color_override("font_color", value)
func set_possessed(value: int):
if value == 1:
modulate.a = 0.3
else:
modulate.a = 1.0