mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6697] [Feature]: Game Mode HUD widgets, layout editor, phone and tablet layouts, and GM table tools #3750
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3750
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SirAdoni on GitHub (Sep 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6697
Originally assigned to: @SpicyMarinara on GitHub.
Part of the contribution roadmap in #6624 (Game Mode theme 2 of 3).
What problem does this solve?
Proposed solution
These build on Game Mode's existing HUD widgets,
[widget:]commands, floating panels, journal and dice tray.HUD widgets
[widget:]keys and restore on branches.Layout
GM table tools (a Tools tab in the Session panel)
Scenes and fixes
How it's switched: Extended HUD widgets, Automatic scene media and Auto expand widgets are per-game switches; with extended widgets off, the widget block the GM sees is upstream's, verbatim. The tools only appear in their own tab, and the calendar is off until a game creates one; without it the GM time line is byte-identical. The layout editor and the phone and tablet layout changes will get a switch before their PR. The fork turns these on; upstream versions default off, and off keeps today's behaviour.
components/game:GameSurface,GameWidgetPanel, floating panels, narration and input, mobile tray and sheets, newtools/folder, Contact Book, Status widget, storyboards, features guidelibandhooks: game panel layout and editor store, floating widget avoidance, short-landscape detectionpackages/shared/src/utils: HUD widget types and lifecycle, game feature switches, random tables, prep board, calendar, initiativepackages/server/src/services/game: GM prompt widget catalog, branch state, automatic media, storyboards, map validation, dice logpackages/server/src/routes: game, and new game tools, initiative, prep board, random tables and calendar routes; new small tables for dice rolls and tool datastyles/globals.cssand a scoped stylesheet for the World Maps package textAlternatives considered
Additional context
Screenshots
Taken from the fork build with invented demo data (characters, lorebooks and a campaign made up for these shots). Model replies and token counts come from a local test stub, so no real model was called.
Extended HUD widgets: clock, tug of war, checklist, schedule, ledger and rumor board.
Edit layout mode while dragging a panel: snap guides, handles, undo and redo, lock, and saved layouts.
GM tools, Dice log: session stats, a face distribution against a fair die, and the latest rolls.
GM tools, the private prep board (never sent to the model).
Phone, 390x844: the widget tray above narration, and a widget opened as a sheet.
Tablet, 820x1180: readable narration column, widget tray and 36px controls.
Template check
@SpicyMarinara commented on GitHub (Sep 26, 2026):
@kolacheee, tagging you since you've been working on Game mode; please check if this doesn't overlap with what you're doing.
@kolacheee commented on GitHub (Sep 27, 2026):
@SirAdoni, thanks for the detailed write-up. Nothing here blocks what I'm working on (Game Mode rulesets and the ruleset items arc), but a few seams are worth agreeing on before the PRs:
Initiative tracker and the turn order widget. A ruleset fight run by the combat director keeps its own turn order, and that order changes during the fight:
During such a fight the tracker shouldn't keep a second order. It could show the fight's own order and round (the director's session view carries
ruleset.orderand the round) and refresh after every step, and stay a manual tool outside those fights. The same goes for the turn order widget.Inventory fixes from the bug hunt. The inventory has changed a lot on staging. Stacks now have ids, change by any amount and split (#6762). Next comes a bag per party member (#6772, PR coming shortly): every change goes through one server route, and the Game Master's
[inventory:]tags are applied on the server.GameInventory.tsxand every inventory handler inGameSurface.tsxwere rewritten, so those fixes will need rebasing on staging, and some will already be covered.Ledger and charges widgets. Later in the arc, the ruleset items plan adds item charges and per-character purses with currencies. There's no code conflict, but in a ruleset game with items it would be good if the Game Master used the engine's inventory for those, and widgets for everything else.
Dice log. Engine-resolved rolls include dice pools counted in successes (with exploding and doubled faces) and combat director rolls, not only sums. The log and the fair-die distribution should read those.
Bundle budget. Since #6756 a lazy chunk over 500 KiB fails the build, and
GameSurfaceis at about 492 KiB with the bags slice. New widget, layout and phone code inGameSurfacewill likely need lazy chunks of its own; the inventory screen got one for this reason.