From 81ea30fd4989e5a0f7d8722978bff684846c8f27 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Sat, 22 Mar 2025 09:43:09 -0400 Subject: [PATCH] Using select_next_item() and select_previous_item() --- scenes/ui/quick_slots.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/ui/quick_slots.gd b/scenes/ui/quick_slots.gd index 58e5412..81f003a 100644 --- a/scenes/ui/quick_slots.gd +++ b/scenes/ui/quick_slots.gd @@ -48,9 +48,9 @@ func _unhandled_input(event: InputEvent) -> void: elif event.is_action_pressed("quickslot10"): select_quick_slot(9) elif event.is_action_pressed("quickslot_next"): - select_quick_slot((_selected_item + 1)) + select_next_item() elif event.is_action_pressed("quickslot_previous"): - select_quick_slot((_selected_item - 1)) + select_previous_item() func get_quickslot_index() -> int: