12 lines
193 B
GDScript
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
|