Browse Source

Using select_next_item() and select_previous_item()

pull/10/head
Ryan Reed 1 month ago
parent
commit
81ea30fd49
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scenes/ui/quick_slots.gd

+ 2
- 2
scenes/ui/quick_slots.gd View File

@ -48,9 +48,9 @@ func _unhandled_input(event: InputEvent) -> void:
elif event.is_action_pressed("quickslot10"): elif event.is_action_pressed("quickslot10"):
select_quick_slot(9) select_quick_slot(9)
elif event.is_action_pressed("quickslot_next"): elif event.is_action_pressed("quickslot_next"):
select_quick_slot((_selected_item + 1))
select_next_item()
elif event.is_action_pressed("quickslot_previous"): elif event.is_action_pressed("quickslot_previous"):
select_quick_slot((_selected_item - 1))
select_previous_item()
func get_quickslot_index() -> int: func get_quickslot_index() -> int:


Loading…
Cancel
Save