7 lines
147 B
GDScript3
7 lines
147 B
GDScript3
|
extends TextureRect
|
||
|
|
||
|
func set_text(str:String):
|
||
|
$Label.text=str
|
||
|
func set_color(color:Color):
|
||
|
$Label.add_theme_color_override("font_color",color)
|