challenge-editor/scene/bag_tab_button.gd
2024-09-12 11:50:27 +08:00

11 lines
190 B
GDScript

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