Flopsy/scenes/menu/button.gd
2022-07-21 19:21:29 +02:00

12 lines
193 B
GDScript

extends TextureButton
export(String) var text = ""
func _ready():
$Label.text = text
func _on_button_down():
$Label.rect_position.y = 3
func _on_button_up():
$Label.rect_position.y = -1