debug: add logging to inventory overlay and backpack for click debugging

This commit is contained in:
2026-04-26 22:26:22 -07:00
parent 870e3a6ff7
commit 91f4b1d8d5
3 changed files with 11 additions and 2 deletions

View File

@@ -224,12 +224,13 @@ func _on_inventory_changed() -> void:
_update_floating_item()
func _gui_input(event: InputEvent) -> void:
print("[BACKPACK] _gui_input: %s, state=%s" % [event, State.keys()[_state]])
if event is InputEventMouseButton and event.pressed and event.button_index == 1:
print("OBTAINED")
if _state == State.IDLE:
print("[BACKPACK] transitioning to OPEN")
transition_to(State.OPEN)
elif _state == State.OPEN:
print("[BACKPACK] transitioning to IDLE")
transition_to(State.IDLE)
func _notification(what: int) -> void: