mirror of
https://github.com/Steffo99/nanogolf.git
synced 2024-11-24 09:04:19 +00:00
15 lines
269 B
GDScript
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
|