Commit Graph

161 Commits

Author SHA1 Message Date
91f4b1d8d5 debug: add logging to inventory overlay and backpack for click debugging 2026-04-27 07:49:58 -07:00
870e3a6ff7 fix: set Frame mouse_filter to PASS so clicks reach inventory slots 2026-04-27 07:49:58 -07:00
d039c996d1 fix: set ItemBox mouse_filter to PASS so clicks reach InventorySlot 2026-04-27 07:49:58 -07:00
eadbd636ac fix: single-click selects item and closes overlay 2026-04-27 07:49:58 -07:00
d2b1f4ab3d fix: add slot to grid before calling set_item so @onready nodes exist 2026-04-27 07:49:58 -07:00
7601c87600 fix: refresh inventory grid when overlay opens 2026-04-27 07:49:58 -07:00
a54fe6652f feat: add example splash item for inventory testing 2026-04-27 07:49:58 -07:00
cebd53ae8e fix: backpack icon returns to home position when overlay closes 2026-04-27 07:49:58 -07:00
81feaa4f4f fix: connect Background gui_input to close overlay on outside click 2026-04-27 07:49:58 -07:00
efc2b2249c fix: clicking outside inventory panel closes overlay 2026-04-27 07:49:58 -07:00
b3bad1d0e6 fix: correct overlay node path in MainGame signal handlers 2026-04-27 07:49:58 -07:00
a9ec2e6893 fix: wire backpack signals to root Node2D instead of HUD CanvasLayer 2026-04-27 07:49:58 -07:00
378bcdda47 fix: wire backpack signals and simplify positioning
- Connect overlay_show_requested/overlay_hide_requested signals in Game.tscn
  to new handlers in MainGame.gd that call show_overlay()/hide_overlay()
- Simplify backpack to fixed 70x70 position at top-left (layout_mode=0)
- Remove broken anchor overrides from Game.tscn that were anchoring to bottom
2026-04-27 07:49:58 -07:00
d94912bb79 fix: bind callbacks before passing to tween_callback, tighten backpack hitbox
- Godot 4's CallbackTweener doesn't have .bind() — move .bind() call
  inside tween_callback() for 3 callback sites
- Shrink InventoryBackpack Control to 60x60 (offset_right -70) so click
  area matches the visible BackpackIcon square
2026-04-27 07:49:58 -07:00
92866d5fc8 fix: make inventory backpack visible by instancing in Game.tscn and fixing Tween API
- Add InventoryBackpack under HUD CanvasLayer (layer 5) in Game.tscn
- Add InventoryOverlay under InventoryOverlayLayer CanvasLayer (layer 10)
- Fix Tween.TRANS_SINE_IN -> .set_trans(TRANS_SINE).set_ease(EASE_IN) in
  InventoryBackpack.gd (Godot 4.6 split transition and easing APIs)
2026-04-27 07:49:58 -07:00
9ed55d6345 feat: add untracked inventory files from previous session
- ItemDefinition.gd: Resource class with id, name, combination_category
- ItemDefinition.gd.uid: UID cache file
- InventoryManager.gd.uid: UID cache file (script was committed, UID was not)
- inventory-prd.md: Original product requirements document (791 lines)
- docs/plans/2026-04-26-001-feat-inventory-backpack-system-plan.md:
  Implementation plan with 6 units and 5 user-directed edits
2026-04-27 07:49:58 -07:00
c115810425 fix: remove class_name from InventoryManager to avoid autoload name conflict 2026-04-27 07:49:58 -07:00
e905a8adda feat: register InventoryManager as AutoLoad singleton 2026-04-27 07:49:58 -07:00
fb8798a4ae feat: integrate inventory with cursor system, scene input, and GameScript
- ActionState: add ITEM action (value 4) to enum and get_action_name()
- MainGame: right-click cycles through all 5 actions including ITEM;
  skips ITEM if nothing selected; clears selection when cycling away
- Scene: guard _unhandled_input() against active inventory overlay;
  handle ITEM action for world-wide item use; add give_item(),
  remove_item(), strip_items() helper methods
- SetPiece: handle ITEM action by calling scene's _use_item_on_setpiece()
- GameScript: add GiveItem and GiveItemDeferred script step classes
  for item acquisition during cutscenes
2026-04-27 07:47:45 -07:00
afcf92dbfd feat: implement InventoryBackpack FSM and InventoryOverlay
- InventoryBackpack: Control-based FSM with IDLE/OPEN/SELECTED/ACQUIRE/REMOVE
  states, Tween-based animations, guard condition checks, signal connections
  to InventoryManager for item_acquired/item_removed reactions
- InventoryOverlay: Full-screen overlay with fade-in/out, item grid via
  GridContainer, drag-and-drop item selection, combination via drag-to-slot,
  hover labels, right-click inspect
- InventorySlot: Individual slot with colored box placeholder, hover highlight,
  click/right-click/hover signals
2026-04-27 07:47:45 -07:00
dee6216873 Merge pull request 'add godot-mcp as git submodule and integrate MCP server' (#2) from better-mcp into master
Reviewed-on: #2
2026-04-27 07:45:01 -07:00
a0afc9bd1f add godot-mcp as git submodule and integrate MCP server 2026-04-27 07:30:53 -07:00
1465104b98 merged 2026-04-22 23:04:44 -07:00
5ae9ff1f17 changes 2026-04-22 22:38:53 -07:00
0ec2f52172 interior 2026-04-18 12:32:13 -07:00
18bfeb9bcc cleans up connections 2026-04-18 12:03:51 -07:00
5f144fb5d7 transition work 2026-04-09 10:32:30 -07:00
5e9fb9251e line endings 2026-04-08 17:12:23 -07:00
e8982ba4ef changes 2026-04-08 17:11:03 -07:00
5613ae1d8c deleting bad 2026-04-08 15:26:56 -07:00
c0db909092 removing problematic files 2026-04-08 15:26:26 -07:00
078caadd0c Remove .lfsconfig - using per-remote LFS config instead 2026-04-07 17:21:42 -07:00
baf18dcb5f changes 2026-04-07 10:50:55 -07:00
6a64717c9d changes 2026-04-05 23:11:56 -07:00
351af5ad47 Update room backgrounds to high-res caption images and fix scaling 2026-04-05 08:22:25 -07:00
7b5ce2e4a5 changes 2026-04-05 08:02:34 -07:00
13519580c7 update kq4_084_cottage_front to extend Scene 2026-04-05 00:49:43 -07:00
8a4fc4e81b update kq4_083_castle_dungeon_cell to extend Scene 2026-04-05 00:49:16 -07:00
a61c6777a0 update kq4_082_lolottes_tower_bedroom to extend Scene 2026-04-05 00:48:49 -07:00
062d18bde1 update kq4_081_edgars_tower_bedroom to extend Scene 2026-04-05 00:48:27 -07:00
37b41caf7a update kq4_079_mountain_path_to_dark_castle to extend Scene 2026-04-04 22:09:52 -07:00
191ae85723 update kq4_078_swamp_island to extend Scene 2026-04-04 22:09:23 -07:00
c7e69321ca update kq4_077_swamp to extend Scene 2026-04-04 22:08:55 -07:00
e0ac4a4a55 update kq4_076_dark_chasm to extend Scene 2026-04-04 22:08:25 -07:00
158ae4f531 update kq4_075_troll_cave_passage to extend Scene 2026-04-04 22:07:53 -07:00
c55861349b update kq4_074_troll_cave to extend Scene 2026-04-04 22:07:18 -07:00
12b3246c6e update kq4_073_cave_exit to extend Scene 2026-04-04 22:06:50 -07:00
db6483def2 update kq4_072_dark_cave_passage to extend Scene 2026-04-04 22:06:24 -07:00
2f593e88c7 update kq4_071_cave_entrance to extend Scene 2026-04-04 22:05:56 -07:00
0350c51969 update kq4_070_waterfall_cave to extend Scene 2026-04-04 22:00:13 -07:00