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 efc2b2249c - Show all commits

View File

@@ -180,10 +180,12 @@ func _gui_input(event: InputEvent) -> void:
if not _is_visible: if not _is_visible:
return return
if event is InputEventMouseButton: if event is InputEventMouseButton:
if event.button_index == 1 and event.pressed: if event.button_index == 1 and event.pressed:
if not _is_dragging: if not _is_dragging:
pass hide_overlay()
close_requested.emit()
return
elif event.button_index == 1 and not event.pressed: elif event.button_index == 1 and not event.pressed:
if _is_dragging: if _is_dragging:
if _hovered_slot == null: if _hovered_slot == null: