2026-11-08 10:38:06 -06:00
|
|
|
|
# TableTower
|
|
|
|
|
|
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
Random roll tables for tabletop games, built as a board of table cards joined by pipes.
|
|
|
|
|
|
Click the die on any table and the result flows down its pipes into the next table.
|
2026-11-08 10:38:06 -06:00
|
|
|
|
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
Made with Godot 4.7 (GDScript).
|
2026-11-08 10:38:06 -06:00
|
|
|
|
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
## Running
|
|
|
|
|
|
|
|
|
|
|
|
Open `project.godot` in Godot 4.7.x and press Play, or from a terminal:
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
|
godot --path .
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Using it
|
|
|
|
|
|
|
|
|
|
|
|
- **Play mode** is for the game table. Click a die to roll. The results flicker, one lands,
|
2026-11-08 12:53:39 -06:00
|
|
|
|
and a bead runs down any pipe into the next table. Hold **Shift** while clicking to fast
|
|
|
|
|
|
roll: no animation, just the result. The tray at the bottom shows the whole chain and the
|
|
|
|
|
|
last few rolls.
|
Merge play-side UI; connect it to the collection switcher
Combines the play-side integration (refs and variables through the
roller, BBCode rendering, hover details, card decks, variables panel,
copy, reference pipes, pipe options, Build card editors) with the app
shell. Switching collections now loads that collection's decks,
variables and history and relights its last roll. Adds a Quest Hooks
and Towns table to the sample so references and variables show by
default, and updates the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:45:34 -06:00
|
|
|
|
- **Build mode** is for setting up tables. Edit names, results, weights and details in place,
|
|
|
|
|
|
add or delete results and tables, and drag a card by its header. Drag from a result's ●
|
|
|
|
|
|
onto another table to lay a pipe. Click a pipe to set how many times it rolls, save its
|
|
|
|
|
|
result as a variable, or remove it. The ⚙ on a card opens its settings: details, tags,
|
|
|
|
|
|
plain or dice table (e.g. 2d6), and Card mode. Deletions can be undone from the toast.
|
|
|
|
|
|
- **Text in results** can roll on other tables inline with `[[Table]]`, `[[3x Gems]]` or
|
|
|
|
|
|
`[[Names -> hero]]` (saves the result as `{hero}` for the rest of the roll). `{@town|Towns}`
|
|
|
|
|
|
keeps a value across rolls until you clear it in the tray's Variables tab. BBCode such as
|
|
|
|
|
|
`[b]bold[/b]` works anywhere you type.
|
Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray
- ChoiceDialog: card-styled pop-up for pick (option rows with details, Random,
1-9 / R keys), number (spin box with min/max/default, Enter) and text.
Cancel, Esc, freeing the dialog, a new roll or a collection switch all
answer null through a separate Reply object, so a roll never hangs.
- Main: real prompt hook; the steps so far light on the board and in the
tray before each question; a roll with questions shows the rest at once;
a new roll cancels an open question cleanly; refresh_live() re-renders
variable, sheet and question text only after rolls and edits.
- TableCard: "?" badge and question for choice cards, loop icon, rule chip
and Each time / Afterwards rows, compact live variable cards (reset in
Build), live sheet cards with one outlet, expression-dice subtitles,
effect chips in Play and a validated effects editor in Build.
- Build: "+ Table" menu for every kind; kind-specific settings (choice type,
question, save as, min/max; loop mode and rule; variable name, type,
starting value; sheet template) checked with Expr.check; expression pipe
counts in the pipe popover and on pipe labels.
- Tray: effect lines under chips, last 12 steps behind "+N earlier steps",
sheet headline, Cancelled / action-limit pill, capped indents and Earlier
rows; Variables tab lists every board variable with Reset all.
- RichText: error markers in red; previews show {@x_*} and {= expr}.
- examples/logic_demo.json and tests/test_logic_ui.gd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:07:57 -06:00
|
|
|
|
- **Logic cards** (see `docs/LOGIC.md`): Build mode's **+ Table ▾** also adds choice cards
|
|
|
|
|
|
(which option, how many, open ended), loops, variables and sheets. A choice card pauses the
|
|
|
|
|
|
roll with a pop-up (1–9 pick, R for Random, Enter confirms, Esc cancels); the steps so far
|
|
|
|
|
|
light up behind it. Loops show their rule (`× @rooms`, `while @hp > 0`); variable cards show
|
|
|
|
|
|
their live value; sheet cards show their template filled in, and become the tray's
|
|
|
|
|
|
headline when a chain reaches them. Results can carry effects (`@hp -= 2`), edited with
|
|
|
|
|
|
the **ƒ** button in Build mode. The tray's Variables tab lists every variable, with
|
|
|
|
|
|
**Reset all…**. Try `examples/logic_demo.json` (Board ▾ → Import).
|
2026-11-08 17:55:22 -06:00
|
|
|
|
- **Branching:** click a pipe in Build mode to give it an **Only if** condition
|
|
|
|
|
|
(`@str >= 8`), or mark it **Otherwise** so it runs only when none of that result's
|
|
|
|
|
|
conditions are true. All of a result's conditions and pipe counts are checked once, before
|
|
|
|
|
|
any pipe runs, and only the pipes taken light up. A **Router** card (+ Table ▾) lists cases
|
|
|
|
|
|
("if @species = "Aslan"", "if @str >= 10", "Otherwise") and takes the first true one.
|
Merge play-side UI; connect it to the collection switcher
Combines the play-side integration (refs and variables through the
roller, BBCode rendering, hover details, card decks, variables panel,
copy, reference pipes, pipe options, Build card editors) with the app
shell. Switching collections now loads that collection's decks,
variables and history and relights its last roll. Adds a Quest Hooks
and Towns table to the sample so references and variables show by
default, and updates the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:45:34 -06:00
|
|
|
|
- **Collections:** the switcher in the top bar holds separate sets of tables. Build mode's
|
|
|
|
|
|
**Board ▾** menu imports and exports TableTower JSON, JSON Canvas, Mermaid, DOT and GraphML.
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
- **Ranged tables** (like *Wilderness Travel*) roll a d100 where each range's size sets its
|
|
|
|
|
|
chance. Each range takes one pipe; laying a new one replaces the old.
|
|
|
|
|
|
- **Collapsing:** the arrow beside a table's name collapses it. A collapsed table still shows
|
|
|
|
|
|
its last result. **Collapse all / Expand all** in the top bar does every table at once.
|
2026-11-08 17:08:22 -06:00
|
|
|
|
- **Groups:** in Build mode, Ctrl- or Shift-click card headers (or Ctrl-drag on the felt) to
|
|
|
|
|
|
select cards, then **Group** (Ctrl+G, the selection bar, or **+ Table ▾**). A group is a
|
|
|
|
|
|
frame behind its cards; drag its title bar to move them all, drop a card into a frame to
|
|
|
|
|
|
add it, drag it out to take it out. The chevron collapses the group into one compact
|
|
|
|
|
|
card that still shows its cards' last results, with pipes attached to its edges. The
|
|
|
|
|
|
title bar's ⋯ menu renames, edits details, ungroups (keeping the cards) or deletes the
|
|
|
|
|
|
group and its cards (with undo). **Collapse all** and **Fit** include groups.
|
|
|
|
|
|
- **Templates:** save a card (⚙ → Save as template…), a group (⋯ → Save as template…) or a
|
|
|
|
|
|
selection as a reusable template. Write `{$name}` in any text to make a parameter; the
|
|
|
|
|
|
save dialog finds them and asks for a label and default. **+ Table ▾ → From template…**
|
|
|
|
|
|
lists your templates and the built-in ones (2D skill check, ask-and-repeat, pick menu,
|
|
|
|
|
|
counter, simple sheet), asks for the parameters and drops fresh copies at the view
|
|
|
|
|
|
centre. Pipes to cards outside the template relink by name, or are listed if they can't.
|
|
|
|
|
|
Templates live in `user://templates/` and are shared by every collection; the list can
|
|
|
|
|
|
rename, delete, export and import them.
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
- **Moving around:** drag the felt to pan, use the mouse wheel to scroll (Shift for sideways),
|
Big-board navigation: search, focus_table, minimap, pack, lazy cards
- Search (top bar button and Ctrl+F): a card-styled pop-over with live
results from names, result text, details, prompts, variables and group
names (BBCode stripped, case and accents ignored, exact names first).
Up/Down, Enter or click jump to a result, Esc closes.
- Main.focus_table(table_id, entry_id): opens a collapsed group (toast),
expands the card for an entry, glides to it at a readable zoom, scrolls
the long list and flashes rings around the card and the row.
- Minimap (Map toggle beside Fit, M key): tinted blocks, lit cards in
brass, the view rect; click or drag to pan. Off by default in Play, on in
Build, remembered per mode. Redraws only on change.
- Zoom goes down to 0.08 and Fit uses it; far out, cards draw as plain
cards and group names show large.
- Build > Arrange > Pack collapsed groups closes the gaps collapsed blocks
leave, in reading order, with undo. Expanding a group whose frame would
cover its neighbours pushes them right/down to clear it, with undo.
- Performance: cards in collapsed groups aren't built until expanded; the
pipe, port and card layers redraw only when the board's geometry
changes; unlit pipes go in per-pipe canvas items so off-screen ones are
culled; off-screen cards aren't rendered. 792-card board: open 5.0 s ->
0.38 s, idle frame 36 ms -> 0.7 ms (all groups expanded: 313 ms -> 9 ms).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:16:32 -06:00
|
|
|
|
Ctrl+wheel or pinch to zoom, and **Fit** to see every table. Zoom goes out far enough
|
|
|
|
|
|
(8%) to fit a board of several hundred cards; that far out, cards show as plain cards with
|
|
|
|
|
|
their title line and group names are written large.
|
|
|
|
|
|
- **Search** (top bar, or **Ctrl+F**) finds cards by name, result text, details, choice
|
|
|
|
|
|
prompts, variable names and group names, ignoring case, accents and BBCode. ↑/↓ pick a
|
|
|
|
|
|
result, Enter or a click jumps to it, Esc closes. Jumping opens the card's group if it's
|
|
|
|
|
|
collapsed (and says so), scrolls a long list to the result, centres the card at a readable
|
|
|
|
|
|
zoom and flashes a ring around it.
|
|
|
|
|
|
- **Map** (beside Fit, or **M**) shows an overview in the corner: groups, cards, lit cards in
|
|
|
|
|
|
brass and the part in view. Click or drag on it to move there. It starts off in Play and
|
|
|
|
|
|
on in Build; the choice is remembered for each mode.
|
|
|
|
|
|
- **Arrange ▾ → Pack collapsed groups** (Build) moves collapsed groups, and the cards and
|
|
|
|
|
|
open groups between them, together to close the gaps collapsed blocks leave, keeping
|
|
|
|
|
|
their order left to right and top to bottom (undo from the toast). Expanding a group
|
|
|
|
|
|
whose frame would now cover its neighbours shifts the blocks to its right further right
|
|
|
|
|
|
and the rows below it further down, just enough to clear it (also with undo).
|
|
|
|
|
|
- **Big boards:** cards inside collapsed groups aren't built until their group opens, and
|
|
|
|
|
|
the board only redraws its pipes and ports when something changes, so an 800-card board
|
|
|
|
|
|
with its groups collapsed opens in well under a second.
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
|
2026-11-08 17:49:35 -06:00
|
|
|
|
**Test board** (Build mode, top bar or **Board ▾**) rolls the board many times to find
|
|
|
|
|
|
problems before you play it. Pick a start card (by default one nothing pipes into, or the last
|
|
|
|
|
|
one you rolled), 100, 500 or 1000 runs, and whether the simulated player answers choices at
|
|
|
|
|
|
random or prefers options matching a regular expression, then **Run** (it shows progress and
|
|
|
|
|
|
can be cancelled; the app stays responsive). The report has a summary line and collapsible
|
|
|
|
|
|
lists: **Problems** (static checks: bad expressions and effects, range gaps and overlaps,
|
|
|
|
|
|
pipes to missing tables, endless cycles, choice cards with no options), **Errors** (effect and
|
|
|
|
|
|
expression errors while rolling, unset variables, runs stopped by the action limit), **Dead
|
|
|
|
|
|
ends** (rolls that stopped, such as "No result for 7"), tables **Never reached** and entries
|
|
|
|
|
|
**Never chosen**. Click any line to jump to that card (the dialog closes; reopen it to see the
|
|
|
|
|
|
same report again), **Copy report** puts it on the clipboard as text. Every run starts with
|
|
|
|
|
|
empty variables and decks of its own, so your saved variables and decks are never touched. The
|
|
|
|
|
|
logic is `core/board_tester.gd` (`BoardTester`); `tools/simulate_board.gd` is its command-line
|
|
|
|
|
|
front end (`--board=<json> --start=<id> --runs=N [--prefer=<regex>] [--check]`).
|
|
|
|
|
|
|
Merge play-side UI; connect it to the collection switcher
Combines the play-side integration (refs and variables through the
roller, BBCode rendering, hover details, card decks, variables panel,
copy, reference pipes, pipe options, Build card editors) with the app
shell. Switching collections now loads that collection's decks,
variables and history and relights its last roll. Adds a Quest Hooks
and Towns table to the sample so references and variables show by
default, and updates the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:45:34 -06:00
|
|
|
|
Collections save automatically to `user://collections/<id>.json`, and card draws, saved
|
|
|
|
|
|
variables and roll history to `user://state/state.json` (on Linux, under
|
|
|
|
|
|
`~/.local/share/godot/app_userdata/TableTower/`). Local state is never exported.
|
|
|
|
|
|
**Board ▾ → Reset sample** restores the example tables.
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
|
|
|
|
|
|
## Layout
|
|
|
|
|
|
|
|
|
|
|
|
```
|
Merge play-side UI; connect it to the collection switcher
Combines the play-side integration (refs and variables through the
roller, BBCode rendering, hover details, card decks, variables panel,
copy, reference pipes, pipe options, Build card editors) with the app
shell. Switching collections now loads that collection's decks,
variables and history and relights its last roll. Adds a Quest Hooks
and Towns table to the sample so references and variables show by
default, and updates the README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:45:34 -06:00
|
|
|
|
core/ data model, roller, dice, decks, text references, storage (no UI; testable headless)
|
|
|
|
|
|
io/ import and export converters
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
ui/ main scene, board view, cards, pipes, ports, result tray, styles
|
|
|
|
|
|
assets/ fonts (Rokkitt and Atkinson Hyperlegible, both SIL OFL)
|
2026-11-08 17:08:22 -06:00
|
|
|
|
templates/ built-in templates (read-only, listed beside the user's)
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
tests/ headless checks
|
|
|
|
|
|
docs/ design document
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Tests
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-11-08 12:53:39 -06:00
|
|
|
|
for t in tests/test_*.gd; do godot --headless --path . -s "res://$t" -- --sample; done
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Screenshots from the command line
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
2026-11-08 12:11:55 -06:00
|
|
|
|
tools/test_window.sh -- --screenshot=/tmp/board.png [--build] [--expand-all] [--collapse-all] \
|
2026-11-08 12:53:39 -06:00
|
|
|
|
[--roll=wilderness] [--fast] [--shot-delay=0.75]
|
Build the pipe-board app in Godot
Tables are cards on a felt board, joined by copper pipes that carry a
roll from one table to the next. Play mode rolls with a flicker and a
bead down each pipe; Build mode edits names, results, ranges and pipes.
- core/: data model (RollTable, TableEntry, TowerBoard), sample board
with a d100 table of 100 trinkets and a weighted d100 range table,
and a Roller with a depth limit
- ui/: board with pan and zoom, pipe and port layers, collapsible table
cards, result tray with earlier rolls, undo toasts, and a Collapse all
/ Expand all button
- assets/fonts/: Rokkitt and Atkinson Hyperlegible (SIL OFL)
- tests/test_roller.gd: headless checks for the model and roller
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:05:41 -06:00
|
|
|
|
```
|
|
|
|
|
|
|
Logic cards UI: choice pop-up, card kinds, Build creation and settings, tray
- ChoiceDialog: card-styled pop-up for pick (option rows with details, Random,
1-9 / R keys), number (spin box with min/max/default, Enter) and text.
Cancel, Esc, freeing the dialog, a new roll or a collection switch all
answer null through a separate Reply object, so a roll never hangs.
- Main: real prompt hook; the steps so far light on the board and in the
tray before each question; a roll with questions shows the rest at once;
a new roll cancels an open question cleanly; refresh_live() re-renders
variable, sheet and question text only after rolls and edits.
- TableCard: "?" badge and question for choice cards, loop icon, rule chip
and Each time / Afterwards rows, compact live variable cards (reset in
Build), live sheet cards with one outlet, expression-dice subtitles,
effect chips in Play and a validated effects editor in Build.
- Build: "+ Table" menu for every kind; kind-specific settings (choice type,
question, save as, min/max; loop mode and rule; variable name, type,
starting value; sheet template) checked with Expr.check; expression pipe
counts in the pipe popover and on pipe labels.
- Tray: effect lines under chips, last 12 steps behind "+N earlier steps",
sheet headline, Cancelled / action-limit pill, capped indents and Earlier
rows; Variables tab lists every board variable with Reset all.
- RichText: error markers in red; previews show {@x_*} and {= expr}.
- examples/logic_demo.json and tests/test_logic_ui.gd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 14:07:57 -06:00
|
|
|
|
Logic-card views: `--board=examples/logic_demo.json --roll=start "--answers=Brin|3"` answers
|
|
|
|
|
|
the first questions and leaves the next pop-up open; `--menu=add`, `--open-settings=<id>`,
|
|
|
|
|
|
`--edit-effects=<id>`, `--demo-long=<n>` (a chain of n steps) and `--confirm-reset` show the
|
|
|
|
|
|
rest.
|
|
|
|
|
|
|
2026-11-08 17:49:35 -06:00
|
|
|
|
Test board: `--test-board` opens the dialog, `--test-board-run=<runs>` also starts a run.
|
|
|
|
|
|
|
2026-11-08 17:08:22 -06:00
|
|
|
|
Groups and templates: `--select=<id>,<id>`, `--group-selected[=<name>]`, `--collapse-groups`,
|
|
|
|
|
|
`--expand-groups`, `--toggle-group=<id>`, `--group-menu`, `--drag-demo`, `--templates[=<search>]`,
|
|
|
|
|
|
`--insert-form=builtin:2d-check`, `--insert-template=<id> --template-values=skill=pilot|target=8`,
|
|
|
|
|
|
`--save-template=<table>`, `--save-group-template=first`, `--view=<x>,<y>[,<zoom>]`, `--fit` and
|
|
|
|
|
|
`--clear-result`.
|
|
|
|
|
|
|
Big-board navigation: search, focus_table, minimap, pack, lazy cards
- Search (top bar button and Ctrl+F): a card-styled pop-over with live
results from names, result text, details, prompts, variables and group
names (BBCode stripped, case and accents ignored, exact names first).
Up/Down, Enter or click jump to a result, Esc closes.
- Main.focus_table(table_id, entry_id): opens a collapsed group (toast),
expands the card for an entry, glides to it at a readable zoom, scrolls
the long list and flashes rings around the card and the row.
- Minimap (Map toggle beside Fit, M key): tinted blocks, lit cards in
brass, the view rect; click or drag to pan. Off by default in Play, on in
Build, remembered per mode. Redraws only on change.
- Zoom goes down to 0.08 and Fit uses it; far out, cards draw as plain
cards and group names show large.
- Build > Arrange > Pack collapsed groups closes the gaps collapsed blocks
leave, in reading order, with undo. Expanding a group whose frame would
cover its neighbours pushes them right/down to clear it, with undo.
- Performance: cards in collapsed groups aren't built until expanded; the
pipe, port and card layers redraw only when the board's geometry
changes; unlit pipes go in per-pipe canvas items so off-screen ones are
culled; off-screen cards aren't rendered. 792-card board: open 5.0 s ->
0.38 s, idle frame 36 ms -> 0.7 ms (all groups expanded: 313 ms -> 9 ms).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:16:32 -06:00
|
|
|
|
Navigation: `--search=<text>` (the search panel with results), `--focus=<table id>[:<entry id>]`,
|
|
|
|
|
|
`--minimap` / `--no-minimap`, `--pack` (Build), and `--perf` (prints load time and idle and
|
|
|
|
|
|
panning frame times with vsync off, then quits; `--perf-layers` adds a per-layer breakdown).
|
|
|
|
|
|
|
2026-11-08 12:11:55 -06:00
|
|
|
|
This uses the sample board and doesn't save anything. `tools/test_window.sh` runs the game
|
|
|
|
|
|
under the window class "TableTower Test" (via a temporary `override.cfg`), which a KWin
|
|
|
|
|
|
window rule keeps in the background without focus.
|