13 lines
193 B
GDScript3
13 lines
193 B
GDScript3
|
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
|