debug: add logging to inventory overlay and backpack for click debugging
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user