- CardCatalog: one list of card kinds for the palette, right-click New card
and new-card names; Dice table and Deck are their own items.
- LeftDock holds the palette and List view in the shared dock tab style.
- Play greys the palette under a Switch to Build notice (replaces the
greyed + Card button); + Card menu removed; Card palette button in Build.
- Templates dropped from the palette land where they are let go.
- Phones: + opens the palette full screen.
- docs/SHEETS.md: the Sheets and unified editor plan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Card threads: a port on each card's bottom edge. Plain runs after any
result (once the result's own threads finish); Otherwise runs only when
no thread of the result ran. Saved as card_threads (LOGIC.md 3g).
- Typing on long cards no longer rebuilds the inspector or the card per
key (~175 ms -> ~7 ms). Timing tool: tests/perf_typing.gd.
- "+ Add result" scrolls to the new row and focuses it.
- Mouse wheel zooms; Shift+wheel pans sideways; scrolling lists keep it.
- "SPREAD" caption over the switcher; Morgan's first-run welcome.
- docs/MECHANICS.md: checklist of table mechanics for planning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Titles, result text and details (card, inspector, Lore Entries) get red
wavy lines under misspelled words; right-click gives suggestions, Add to
dictionary (saved with the spread) and Ignore (this session). Uses the
Godot-Hunspell add-on's SpellChecker when it is installed; off on Android
and when the add-on is missing. English (en_US) dictionary included.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UI words only: Book -> Lore Index, Page -> Lore Entry (code keeps book and
BookPage). In Build the Inspector and the Lore Index share the dock as two
tabs (SideTabs); selecting on the spread goes back to the Inspector. In
Play the Lore Index opens alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A ranged card now stores that it is ranged, so an empty card can switch
between Plain and Ranged. Cards made ranged are edited by weight (die faces
per result; ranges follow the row order); a gap becomes an empty result.
Ranges mode keeps typed ranges, rows drag with their range, and auto-sort
(on by default) keeps rows in roll order. Old cards load as Ranges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move to folder is a submenu of existing folders (+ No folder, New folder…);
typed names match existing folders without regard to case.
- Folders nest ("Traveller/Worlds"); each folder has New spread here… and
Rename folder….
- When the last spread leaves a folder, ask Keep / Remove it; kept empty
folders have Remove folder.
- Recent spreads at the top of the switcher.
- List view's "folders" are called groups in the UI (+ Group).
- TestBase gets the shared _wipe helper.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A result's text can name a card in another spread, as "[[Treasure::Loot]]".
It rolls there (its own threads and references resolve in that spread)
and its changes apply to this spread's values. The inspector has
"+ Roll a card from another spread…" to pick one. Links show as
"Treasure › Loot" chips; nodes from there are marked so this spread's
cards aren't lit for them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A spread can be listed under a folder (saved in its file, kept by copies);
the switcher shows each folder as a submenu. The switcher's tooltip now
gives the card count, folder and what it does. Export menu: "Table Tarot
JSON… (full copy)" and "Export as a diagram (cards and threads only)".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every text field's right-click menu gains Format: Bold, Italic, Underline,
Strike-through, Colour, Size and Effect (Godot's wave, tornado, shake,
rainbow, pulse, fade plus the app's own sparkle, shimmer and flash, drawn
by RichTextEffects in ui/text_effects). The details toolbar adds U, S and
Effect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A result that came up but was rolled again (a thread's roll again, Only
if) now flickers with a floating "rolled again" before the kept result
lights. main_rolling.gd hit 412 lines, so showing a roll at once moved to
MainRollingShow (delegators kept).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Costs to roll on any card: its roll button greys out (with the reason)
when there isn't enough, and pressing it pays. A thread that reaches it
asks first (Pay / Don't pay), reusing the pause question.
- A pause now plays the roll so far (dice, lights, threads), then pops up
Continue / Stop here / Later (the tray strip stays). After Continue the
rest animates instead of showing at once. Shift-click still skips it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Let me choose, that's "roll three different ones and pick one".
The thread label says "no repeats"; saved in the file as "distinct".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Batches saved to the history file but never reached the tray's Earlier
list, and played no sound. Now each roll shows there as "Name (2 of 5)"
and the batch plays one roll sound. Earlier keeps 30 rolls (was 6) and
the saved history 200 (was 50).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pick is made by weight, then moved by the modifier's value; the
first and last rows catch anything past them. Why this? names the move.
Switching between plain and ranged clears the modifier, since its
meaning changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A roll table's result can now have "Can come up only if" (the same
show_if options use): while it's false the result is rolled again, and
the card shows the condition on the row. Rolling from List view skips
the animation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mark recoloured each theme's corner art, which was thin and often
hard to see. Now it's a filled corner tab with a contrasting outline,
the same in every theme; collapsed groups show it too. Groups without a
colour are blue everywhere (was the theme's highlight gold). Colour menus
for cards, threads and groups end with a full colour picker.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Making a new value from an Add to list row made a number, which the list
picker then hid and which couldn't hold words. Now it makes a list. The
item starts as the result's own text. List cards get Allow repeats (add
every time, in order); off keeps adding only new items.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The entries were only saved values of the spread, so copies, exports and
imports lost them. Now a Ledger card lists its entries (name and starting
value) in the spread file; current values stay saved values. Build mode
edits them on the card too. Older spreads take in the entries made on the
card when they open.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New helpers: BoardGroups (group nesting and membership), BoardFileIO
(migrate, atomic writes), RollNodes (result-node helpers), RollLive (live
values and starting values) and RollTableFactory (new cards). RollPipes now
holds the pipe and pause frames, RollChoice reads options_from, and
RollTableIO cleans inputs. The original files keep one-line delegators.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Expr's rewrite step moves to ExprRewriter; Builder's tokenizer moves to
RuleTokens and its value list to BuilderValues; BoardTester's static
checks move to BoardChecks and its report text to BoardReportText. The
original classes keep one-line delegators, so no caller changes.
Expr's dice regex and word test now reuse RuleTokens (one copy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- column_join: a card with columns reads as one phrase ("Ash Canyons"), which threads save
- TableEntry.repeat: a result that rolls its column again N times and combines them
- Saving a result into a declared list value adds an item (RollContext.save_result)
- A pick with only one available option picks it without asking
- Lint, why facts, inspector controls, tests, LOGIC.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Groups get an optional colour (Colour menu on the group); uncoloured
groups use the theme token GROUP. The group frame's border matches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Making one: Scale (ordered steps) in + Card, the inspector's Type switch
and the settings dialog; steps one per line and a starting step dropdown
(InspectorScale); new scales get Low, Medium, High.
- Showing one: the variable card shows the current step and the steps in a
row with the current one marked; the Variables tab stores a typed step
number or name as the step.
- Plain words: Builder ops step_up, step_down, toward, at_least, at_most
(BuilderScales; step_up/down need the board), DescribeScales phrases,
scale effect rows (EffectsScaleRow) and step dropdowns in conditions.
- Help: a Scales topic after Values and changes.
- Tests: test_ui_scales, plus builder and describe cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Scales: var_type scale with steps; stored as step names, read as step
numbers in rules (a quoted step name beside a scale reads as its number);
+= / -= move steps and stop at the ends; toward().
- Columns: RollTable.columns / column_rolls (row or each), TableEntry.cells;
RollColumns fills the other columns, saves each, honours a column's when.
- Threads: dice (roll with other dice instead) and reroll (result ids).
- RollTable save/load split into RollTableIO; Expr's base into ExprBase.
- RollLintBook checks; JSON canon keeps the new keys; tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Twelve new Help topics (menus, selecting and resizing, nested groups,
themes, List view, the Book, rolling more than once, pausing, costs,
one table adjusting another, sheets and saving, pictures, phones), and a
Keyboard shortcuts topic split into keys, mouse and touch. Topics with
[demo]key[/demo] get a 'Try a demo spread' link: DemoSpreads builds a
small example, DemoMode shows it unsaved and unlisted with Keep a copy
and Back to my spread. --demo=KEY opens one from the command line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A result or page can have a picture (TableEntry.image, BookPage.image),
chosen from a file, shrunk to 512 px and kept in the spread file as WebP
under "images" (BoardImages; only used pictures are saved). It shows as
a thumbnail on the card row and in the details pop-up, and comes with a
page. Imported BBCode still can't point at files.
Fix: the Table Tarot JSON export and import (JsonIO.canonical) dropped
every key it didn't know, losing the Book, pictures, card colours and
sizes, limits, nesting, costs and thread options. They now pass through;
a round-trip test covers them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RollTable.roll_floor and roll_ceiling (numbers or values) limit a ranged
roll's total after its modifier (RollRange.limit). An earlier result's
change (e.g. @atmo_min = 7) can thereby raise or cap a later card's roll.
The inspector's Limits rows take a number or a value; the Why trace says
'raised to 7 (never below Atmo min)'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pick option can cost an amount of a value (TableEntry.cost_value and
cost_amount, JSON "cost"; the inspector's Costs row). The pop-up shows
the cost, and greys the option out with the reason when there isn't
enough; Random never picks it. Picking it takes the amount away as an
ordinary change (RollCosts). A costly Reroll option that threads back to a
card gives spend-a-point rerolls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread with 'Wait for me first' (TableEntry.pipe_pause, JSON "pause")
stops the roll before it runs (Roller.OP_PAUSE, a "pause" request). The
tray shows Continue ▸ and Stop here; starting another roll sets the paused
one aside with its chip kept, and Continue makes it the current roll again
(RollPauses; each roll's token lives in a holder so it can be revived).
Stop here ends the roll and the chip says where it stopped. Headless rolls
continue.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A thread that rolls its card more than once gets a 'then' choice
(TableEntry.pipe_combine, JSON "combine"): keep every roll (as before),
add them together, keep the highest or lowest, or let the player choose
(the choice pop-up). The repeats hold their own threads until the combine
step (Roller.OP_COMBINE, RollCombine) keeps one, which then follows its
threads; save-as keeps the total or the kept result. Set-aside rolls show
faded in the tray.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BookPage (text with BBCode, details, tags, a name) lives in the spread file
under "book"; a result linked to a page (TableEntry.page) follows its
text and details, so one edit reaches every copy. The Book panel (View ▾,
☰ or right-click) lists pages with search over names, text and tags, and
edits the selected page with a live preview. Drag a page onto a result to
link it, or onto a card to add it as a new result. The inspector offers
Save to the Book, or shows the page with Unlink; editing a result's own
text unlinks it; linked rows show a §. Undo covers the Book.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TableGroup.parent (JSON "parent") puts a group inside another. Grouping a
selection that includes groups nests them (the new group goes in the group
they all share). A collapsed group hides every card and group inside it and
stands in for them on threads; moving, deleting, search, focus (opens every
collapsed group around a card), packing, undo and templates all work
through the nesting. Ungroup hands the contents to the outer group.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deck-mode cards fade the results already drawn until the deck is shuffled.
The inspector gets a Deck mode section (Draw without repeats; when empty,
Shuffle by itself or Wait for Shuffle; the Empty result's text, saved as
deck_empty_text). A waiting empty deck gives its Empty result in normal
ink, not as an error. Reshuffle reads Shuffle everywhere.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Tray chips name their card in bold, dark text; how it was rolled follows, muted.
- The card inspector lists Threads in (from which card and result) and
Threads out (from which result, to which card); click one to select it.
- A range typed backwards (start above end) is no longer swapped: the card
warns and its die is greyed out until it's fixed.
- Save as template… can replace one of your templates; the template list's
Rename became Edit… (name, description, fill-in labels).
- Spread ▾ export: the Table Tarot file first, other formats in a submenu.
- Test spread section hints in plain words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The grip in each card's bottom-right corner sets RollTable.width and
list_height (saved as "w" and "list_h"); with a height the results
list scrolls. Double-click the grip for the automatic size again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
User-facing text only; code names, JSON keys and the project's internal
name (and so the user:// folder) are unchanged. The Collection card kind
keeps its name until a new one is chosen. The window title says Table
Tarot; the top bar shows the theme's logo (the fortune teller, drawn from a
copy of the art without its background square); the app icon is the
mascot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CardFrame draws the user's frame_corner/frame_border art around each card,
tiling the bead strip so it fits any size; a small shader recolours the art
to the theme's trim (or the card's own colour). Themes choose the border
(Tarot: beaded, Felt: plain). Cards (RollTable.color) and threads
(TableEntry.pipe_color, JSON "color") can have their own colour from the
inspector's Colour row (presets, Theme, or any colour).
tools/run_tests.sh imports first and prints at most 8 lines per failing suite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Striped result rows (parchment tint, on by default, `striped_rows` setting).
- Top bar: View ▾ (Plain words / Rule text, Collapse/Expand all, Striped rows,
Minimap) and a "− 90% ▾ +" zoom control replace the Plain|Text switch,
Collapse all, −/Fit/+ and Map. Arrange ▾ folds into Board ▾; Search is an icon.
- Help ▾ and F1 open a Help window; the 17 topics live in help/topics.txt.
- Build cards get a ⋯ menu (settings, template, collapse, delete) instead of
the gear and footer Delete, sharing Style.overflow_button with group cards.
Row × buttons show only on hover, focus or selection.
- Sample: Luck value card, Make Camp (pick card) and Search the Ruins
(1d6 + Luck, with results only a modifier reaches).
- New test suite test_top_bar; Canvas/GraphML round-trip tests compare plain
tables only, since logic keys are JSON-only.
- DESIGN.md: open items, including the Card Mode UI redesign.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Ranged roll tables take a modifier (dice_mod, e.g. @luck). Ranges may run
past the dice (-3 to 24 on a d20); totals past the ends use the end result.
- Range and chance code moved from RollTable into RollRange; chances follow
the modifier's current value; plain wording and Why lines name it.
- ModifierEditor builds modifiers in plain words for roll and check cards;
the inspector's roll section is now InspectorRoll.
- The Earlier tab scrolls; the tray and inspector resize with drag handles
(PanelSplitter), sizes kept in local settings.
- Demo Room check uses 2d6 + Luck with a luck-only vault; new test_modifier
suite; docs updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Describe.kind_label / choice_label / choice_labels replace six drifting
label tables. Search no longer calls Check and Router cards "Table", and
a Check card's dialog is titled "Check settings".
- Choice types read "Which option / How many / Open ended" everywhere
(menu, settings, inspector, card, preview, details).
- Plain dice read "2d6" / "d6" instead of the 2D-game "2D" / "1D".
- The built-in "2D skill check" template becomes "Skill check (2d6 vs
target)" (builtin:skill-check), a real Check card with Success and Failure.
- User text says "result" and "change" instead of "entry", "row" and "effect"
(Test board, settings dialog, lint, variables panel, pipe options).
- Pipes are deleted (link, toast, undo label), like cards and results; the
reset statement reads "Reset" in the builder and "Reset all X" for
prefixes. "Clear" stays for a value that really was erased.
- The template-saved toast points at "+ Card ▾".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The execution loop, node helpers and live display stay in Roller; every
Roller function and constant used elsewhere keeps a one-line delegator.
No behaviour change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Cards read the inspector's selection ({kind, tid, eid}) and the
inspector marks the selected row on every card when it changes.
- A variable card's starting value now applies: before a top-level
roll, each declared variable that isn't set yet and has a starting
value is set to it (a "starts at 9" Strength no longer reads as 0).
- Check cards in Build no longer repeat "Success Success": a result
text equal to the outlet name shows as an empty field with a hint.
- test_options switches to the Text view through Main.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- RulesView (ui/rules_view.gd): plain-or-text helpers over Describe, reading
Main.rules_plain() when present (else StateStore, else plain; --rules=text
for screenshots) and refreshing on Main.rules_view_changed.
- Cards: effect chips, router cases, option sources, show_if, loop rules,
expression dice and variable kinds read in plain words. Build cards drop the
inline effects / show_if / condition / details editors for plain chips;
result text and names stay inline. Row clicks call main.select_result();
the selected row gets a copper bar (set_selected_entry / inspector_selection).
- Check cards: 2D badge, the rule as a sentence, Success / Failure outlets.
Collection cards: live members and "+ Add" (main.select_card). Inputs:
a dashed "Input Tier · starts at 1" box.
- Pipe labels via Describe.pipe, nudged apart and cut to the gap.
- Tray: plain captions (inputs, checks, cases), effect lines from why facts,
and a "Why this?" button opening a WhyPopover; hovers show the same reasons.
- Previews and the choice pop-up read conditions, effects and option sources
in plain words. Style.rules_switch() for the Plain words / Text switch.
- Describe: empty text reads "empty" ("Loot is not empty").
- tests/test_plain_display.gd; option and choice tests pin the Text view
where they check stored text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>