LargeScreen/Modules/terminal_search_button.gd
2024-12-19 19:13:12 +08:00

22 lines
337 B
GDScript

extends TextureButton
@export var TextureNormal:Texture2D
@export var TextureDown:Texture2D
func _ready() -> void:
self.focus_mode=Control.FOCUS_NONE
button_down.connect(_button_down)
button_up.connect(_button_up)
func _button_down():
$TextureRect.texture=TextureDown
func _button_up():
$TextureRect.texture=TextureNormal