1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-21 23:54:21 +00:00
algodist-steffo-nanogolf/scenes/player_label.gd

16 lines
269 B
GDScript3
Raw Normal View History

2024-02-28 05:30:45 +00:00
extends Label
class_name PlayerLabel
2024-03-10 04:51:36 +00:00
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