|
@ -18,9 +18,9 @@ var _selected_item: int = 0 : |
|
|
_selected_item = new_item_index |
|
|
_selected_item = new_item_index |
|
|
|
|
|
|
|
|
func _init() -> void: |
|
|
func _init() -> void: |
|
|
InventoryManager.next_quick_slot.connect(select_next_item.bind()) |
|
|
|
|
|
InventoryManager.previous_quick_slot.connect(select_previous_item.bind()) |
|
|
|
|
|
InventoryManager.select_quick_slot.connect(select_quick_slot.bind()) |
|
|
|
|
|
|
|
|
InventoryManager.next_quick_slot.connect(select_next_item) |
|
|
|
|
|
InventoryManager.previous_quick_slot.connect(select_previous_item) |
|
|
|
|
|
InventoryManager.select_quick_slot.connect(select_quick_slot) |
|
|
|
|
|
|
|
|
func _ready() -> void: |
|
|
func _ready() -> void: |
|
|
var current_slot: Panel = slots_container.get_child(_selected_item) |
|
|
var current_slot: Panel = slots_container.get_child(_selected_item) |
|
|