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
This commit is contained in:
2026-04-26 21:51:16 -07:00
parent d94912bb79
commit 378bcdda47
3 changed files with 11 additions and 14 deletions

View File

@@ -74,6 +74,12 @@ func restore_cursor() -> void:
func _unhandled_input(event: InputEvent) -> void:
$SceneViewport.push_input(event)
func _on_backpack_show_overlay() -> void:
$HUD/InventoryOverlay.show_overlay()
func _on_backpack_hide_overlay() -> void:
$HUD/InventoryOverlay.hide_overlay()
func _input(event):
if event.is_action_released("quit"):
get_tree().quit()