challenge-editor/scene/bag_tab_button.gd

11 lines
203 B
GDScript3
Raw Normal View History

2024-09-12 11:50:27 +08:00
extends TextureRect
2024-09-28 18:46:15 +08:00
@export var num:int=1
2024-09-12 11:50:27 +08:00
signal pressed(n:int)
2024-09-28 18:46:15 +08:00
func _ready() -> void:
$Label.text=str(num)
2024-09-12 11:50:27 +08:00
func _on_button_pressed() -> void:
pressed.emit(num)
pass # Replace with function body.