challenge-editor/scene/new_scene/select_button.gd
2024-12-02 21:42:43 +08:00

26 lines
642 B
GDScript

extends TextureButton
@onready var label: Label = $Label
var normalcolor:Color=Color("FAFAFA")
var pressedcolor: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",pressedcolor)
pass # Replace with function body.
func _on_focus_exited() -> void:
label.add_theme_color_override("font_color",normalcolor)
pass # Replace with function body.