Flopsy/scenes/menu/button.gd

13 lines
193 B
GDScript3
Raw Normal View History

2022-07-21 19:21:29 +02:00
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