challenge-editor/scene/equipment.gd
2024-10-09 20:34:18 +08:00

17 lines
365 B
GDScript

extends Label
signal item_selected(index:int)
@export var index:int=0
func _can_drop_data(at_position: Vector2, data: Variant) -> bool:
return true
func _drop_data(at_position: Vector2, data: Variant) -> void:
#Global.replace_equip_with_data(page,index,data)
#Global.decrease_item_num_index(data["ind"])
index=data["ind"]
item_selected.emit(index)
pass