Add inventory system #1

Merged
notid merged 24 commits from sugary-panda into master 2026-04-28 22:05:12 -07:00
Showing only changes of commit 291d911a50 - Show all commits

View File

@@ -70,7 +70,13 @@ func set_script_cursor() -> void:
func restore_cursor() -> void: func restore_cursor() -> void:
is_script_running = false is_script_running = false
is_cursor_locked = false # Unlock cursor is_cursor_locked = false # Unlock cursor
Input.set_custom_mouse_cursor(cursors[previous_cursor_index]) if previous_cursor_index == ActionState.Action.ITEM:
if item_cursor:
Input.set_custom_mouse_cursor(item_cursor)
else:
Input.set_custom_mouse_cursor(cursors[ActionState.Action.WALK])
else:
Input.set_custom_mouse_cursor(cursors[previous_cursor_index])
func _unhandled_input(event: InputEvent) -> void: func _unhandled_input(event: InputEvent) -> void:
$SceneViewport.push_input(event) $SceneViewport.push_input(event)