[GH-ISSUE #5209] Game Mode: let the narration box be collapsed #2880

Closed
opened 2026-10-21 05:57:33 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5209

Originally assigned to: @kolacheee on GitHub.

Problem

In Game Mode the narration box occupies the bottom third of the screen and cannot be collapsed. That is fine when the narration is the game, but it is a real cost whenever there is something to look at behind it:

  • A game-surface Experience (a walkable world, a map, a board) is drawn behind the narration panel, and the player has no way to see the part it covers.
  • Even in classic Game Mode, a player who has finished reading a long passage and wants to look at the scene image, storyboard, or map has to scroll rather than dismiss.

There is no per-user or per-turn way to reclaim that space today.

Request

A first-class collapse/expand control on the narration panel — a chevron in the existing meta row (beside Logs / Inventory / Combat / Next) that collapses the panel down to a slim persistent handle, and expands it again from that handle.

Suggested semantics:

  • Collapse the whole panel, not just the prose — see "What collapsing the prose alone looks like" below. The point of the feature is reclaiming the bottom third of the screen; leaving the speaker label, the failure banner and the button row behind gives most of the height back.
  • Leave a slim handle (a bar or a floating chevron) as the always-available expand affordance, so nothing is ever unreachable.
  • Surface attention on the handle. Because collapsing hides the Generation failed / Retry and Scene analysis failed banners, the handle should carry an indicator when the panel contains something the player needs to act on. Without that, a failed turn is silently invisible while collapsed — which is the one genuine risk in this feature.
  • Never collapse while the turn input is showing. The input lives inside the panel, so a collapsed panel in dialogue leaves the player with nowhere to type. Force-expand for input and restore the player's choice afterwards.
  • Remember the choice for the session (and ideally as a display setting alongside the existing dialogue display-mode options).

Optionally, let a capability package request the collapsed default via its existing chrome declaration (ExperienceChromeDeclaration), since an Experience that owns the whole screen usually wants the world visible first. Not required for the feature to be useful.

What collapsing the prose alone looks like

This was the original shape of this request, and playtesting it says it is not enough. Hiding only the prose leaves the NARRATION label, the Generation failed row with its Retry button, and the full meta button row sitting in an otherwise empty panel — visually it still reads as the narration box, and it reclaims comparatively little of the screen. Hence the change above to collapsing the panel with a handle plus an attention indicator.

Why this is not just a package concern

I tried to do it entirely from a package first (Pixelforge). The engine deliberately supports reaching the shared chrome via contributions.gameSurface.surfaceClass, and ships inert theming hooks (experience-dialogue-wrap, experience-dialogue-bubble) for exactly this. Two things make the package-side version unsatisfying:

  1. Those hooks exist only on the dialogue branch. The narration branch — the one visible while exploring — has no declared hook, so reaching it means depending on an internal class (game-narration-prose), which is not a contract and can change under the package at any time.
  2. The speaker label and the failure banner have no hook at all, only utility classes. Collapsing the panel properly therefore means either matching styling soup (breaks on any restyle) or hiding the whole panel via data-tour="game-dialogue" — a product-tour attribute, also not a styling contract. And a package cannot restore the safety it just removed, because there is no generationFailed signal in experienceSurfaceProps for it to build an indicator from.

So a package can approximate this, but only by depending on engine internals, and it cannot make the collapsed state safe. A built-in control is both more robust and useful to users who have no packages installed at all.

Notes

Relevant code: packages/client/src/components/game/GameNarration.tsx (panel wrapper at the data-tour="game-dialogue" element, meta row, the generation/scene failure banners, inputSlot) and packages/client/src/components/game/GameSurface.tsx (both <GameNarration> call sites and the ExperienceChromeDeclaration type).

Raised from live playtesting of the Pixelforge Experience, but the ask is deliberately scoped to the engine's own UI rather than to that package.

Originally created by @kolacheee on GitHub (Aug 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5209 Originally assigned to: @kolacheee on GitHub. ## Problem In Game Mode the narration box occupies the bottom third of the screen and cannot be collapsed. That is fine when the narration *is* the game, but it is a real cost whenever there is something to look at behind it: - A **game-surface Experience** (a walkable world, a map, a board) is drawn behind the narration panel, and the player has no way to see the part it covers. - Even in classic Game Mode, a player who has finished reading a long passage and wants to look at the scene image, storyboard, or map has to scroll rather than dismiss. There is no per-user or per-turn way to reclaim that space today. ## Request A first-class **collapse/expand control on the narration panel** — a chevron in the existing meta row (beside Logs / Inventory / Combat / Next) that collapses the panel down to a **slim persistent handle**, and expands it again from that handle. Suggested semantics: - **Collapse the whole panel**, not just the prose — see "What collapsing the prose alone looks like" below. The point of the feature is reclaiming the bottom third of the screen; leaving the speaker label, the failure banner and the button row behind gives most of the height back. - Leave a **slim handle** (a bar or a floating chevron) as the always-available expand affordance, so nothing is ever unreachable. - **Surface attention on the handle.** Because collapsing hides the *Generation failed / Retry* and *Scene analysis failed* banners, the handle should carry an indicator when the panel contains something the player needs to act on. Without that, a failed turn is silently invisible while collapsed — which is the one genuine risk in this feature. - **Never collapse while the turn input is showing.** The input lives inside the panel, so a collapsed panel in dialogue leaves the player with nowhere to type. Force-expand for input and restore the player's choice afterwards. - Remember the choice for the session (and ideally as a display setting alongside the existing dialogue display-mode options). Optionally, let a capability package *request* the collapsed default via its existing chrome declaration (`ExperienceChromeDeclaration`), since an Experience that owns the whole screen usually wants the world visible first. Not required for the feature to be useful. ## What collapsing the prose alone looks like This was the original shape of this request, and playtesting it says it is not enough. Hiding only the prose leaves the `NARRATION` label, the *Generation failed* row with its Retry button, and the full meta button row sitting in an otherwise empty panel — visually it still reads as the narration box, and it reclaims comparatively little of the screen. Hence the change above to collapsing the panel with a handle plus an attention indicator. ## Why this is not just a package concern I tried to do it entirely from a package first (Pixelforge). The engine deliberately supports reaching the shared chrome via `contributions.gameSurface.surfaceClass`, and ships inert theming hooks (`experience-dialogue-wrap`, `experience-dialogue-bubble`) for exactly this. Two things make the package-side version unsatisfying: 1. Those hooks exist only on the **dialogue** branch. The **narration** branch — the one visible while exploring — has no declared hook, so reaching it means depending on an internal class (`game-narration-prose`), which is not a contract and can change under the package at any time. 2. The speaker label and the failure banner have **no hook at all**, only utility classes. Collapsing the panel properly therefore means either matching styling soup (breaks on any restyle) or hiding the whole panel via `data-tour="game-dialogue"` — a product-tour attribute, also not a styling contract. And a package cannot restore the safety it just removed, because there is no `generationFailed` signal in `experienceSurfaceProps` for it to build an indicator from. So a package can approximate this, but only by depending on engine internals, and it cannot make the collapsed state safe. A built-in control is both more robust and useful to users who have no packages installed at all. ## Notes Relevant code: `packages/client/src/components/game/GameNarration.tsx` (panel wrapper at the `data-tour="game-dialogue"` element, meta row, the generation/scene failure banners, `inputSlot`) and `packages/client/src/components/game/GameSurface.tsx` (both `<GameNarration>` call sites and the `ExperienceChromeDeclaration` type). Raised from live playtesting of the Pixelforge Experience, but the ask is deliberately scoped to the engine's own UI rather than to that package.
bsakaguchi 2026-10-21 05:57:33 +07:00
Sign in to join this conversation.
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
Pasta-Devs/Marinara-Engine#2880
No description provided.