challenge-editor/scene/bag_tab_button.gd
2024-09-28 18:46:15 +08:00

11 lines
203 B
GDScript

extends TextureRect
@export var num:int=1
signal pressed(n:int)
func _ready() -> void:
$Label.text=str(num)
func _on_button_pressed() -> void:
pressed.emit(num)
pass # Replace with function body.