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

@@ -35,8 +35,10 @@ func set_hover(hovered: bool) -> void:
item_box.color = Color(0.8, 0.8, 0.8, 1)
func _gui_input(event: InputEvent) -> void:
print("[SLOT:%s] _gui_input: %s" % [item_id, event])
if event is InputEventMouseButton:
if event.button_index == 1 and event.pressed:
print("[SLOT:%s] emitting clicked" % item_id)
clicked.emit(item_id)
elif event.button_index == 2:
right_clicked.emit(item_id)