challenge-editor/scene/new_scene/select_character_button.gd
2024-12-03 18:58:53 +08:00

24 lines
612 B
GDScript

extends TextureButton
var normal_color:Color=Color("FBFBFB")
var focused_color:Color=Color("4A2206")
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_focus_entered() -> void:
$Label.add_theme_color_override("font_color",focused_color)
pass # Replace with function body.
func _on_focus_exited() -> void:
$Label.add_theme_color_override("font_color",normal_color)
pass # Replace with function body.