Open the SpireLens menu outside runs too #347

Merged
nelsong6 merged 1 commit from claude/save-state-on-death-b0ebe8 into main 2026-10-10 22:20:34 -07:00
nelsong6 commented 2026-10-10 22:00:18 -07:00 (Migrated from github.com)

The gap

StatsVisibilityHotkeyPatch.CanToggle gated the Left Shift / R3 hotkeys on
IsRunGameplaySurface(): a run in progress, and not one of the screens sharing
the capstone submenu stack. Two consequences the player hits directly:

  • The Compendium cannot reach the settings that shape it. Relic combat
    relevance, "show cards not in deck", meta-card visibility and the relic bar
    filter all change what the Compendium and deck views show, and the menu
    closest to that content was exactly where the hotkey refused to open.
  • The main menu cannot reach the menu at all, which is where the restart
    after a death is offered once the player has left the game-over screen
    (#345). The feature was reachable only from that screen.

The commit that introduced the gate ("Limit options hotkeys to active runs", in
the #287 merge) recorded no reason for it, and the guards that matter are
separate and kept.

The fix

  • CanToggle no longer asks where in the game the player is. What stays
    excluded is input that belongs to something else: an unfocused window, a
    platform overlay, a screen transition, the dev console, a focused
    LineEdit/TextEdit, and a live key rebind in NInputSettingsPanel. R3 is
    not a remappable game action, and Shift still yields to a game binding if one
    is ever assigned.
  • IsRunGameplaySurface and its two now-unused usings are gone.
  • "View current-run potion history" needs a run, so the row greys out and reads
    unavailable (no run in progress) outside one, and activating it does
    nothing — the same shape the restart row already uses. Refreshed on open, so
    it tracks whichever surface the menu was opened from.

Risk

The removed gate's purpose was undocumented. The plausible one is controller
input reaching both the SpireLens menu and the screen behind it on Pause,
Settings or the Compendium; the menu marks input handled while open, which is
what keeps that from happening on gameplay surfaces today. No live behavioural
verification was run (deployed and hot-reloaded only), so that is the thing to
watch on those screens.

## The gap `StatsVisibilityHotkeyPatch.CanToggle` gated the Left Shift / R3 hotkeys on `IsRunGameplaySurface()`: a run in progress, and not one of the screens sharing the capstone submenu stack. Two consequences the player hits directly: - **The Compendium cannot reach the settings that shape it.** Relic combat relevance, "show cards not in deck", meta-card visibility and the relic bar filter all change what the Compendium and deck views show, and the menu closest to that content was exactly where the hotkey refused to open. - **The main menu cannot reach the menu at all**, which is where the restart after a death is offered once the player has left the game-over screen (#345). The feature was reachable only from that screen. The commit that introduced the gate ("Limit options hotkeys to active runs", in the #287 merge) recorded no reason for it, and the guards that matter are separate and kept. ## The fix - `CanToggle` no longer asks where in the game the player is. What stays excluded is input that belongs to something else: an unfocused window, a platform overlay, a screen transition, the dev console, a focused `LineEdit`/`TextEdit`, and a live key rebind in `NInputSettingsPanel`. R3 is not a remappable game action, and Shift still yields to a game binding if one is ever assigned. - `IsRunGameplaySurface` and its two now-unused usings are gone. - "View current-run potion history" needs a run, so the row greys out and reads `unavailable (no run in progress)` outside one, and activating it does nothing — the same shape the restart row already uses. Refreshed on open, so it tracks whichever surface the menu was opened from. ## Risk The removed gate's purpose was undocumented. The plausible one is controller input reaching both the SpireLens menu and the screen behind it on Pause, Settings or the Compendium; the menu marks input handled while open, which is what keeps that from happening on gameplay surfaces today. No live behavioural verification was run (deployed and hot-reloaded only), so that is the thing to watch on those screens.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/spirelens!347
No description provided.