Commit graph

26 commits

Author SHA1 Message Date
cc7cd0f660 Lore Index: the Book is renamed and is a tab beside the inspector
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>
2026-11-15 12:46:05 -06:00
07d96a68f8 Spread folders: pick from a list, nesting, keep empty folders, Recent
- 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>
2026-11-14 19:19:47 -06:00
2ed91e7acd Spreads can roll cards from other spreads: [[Spread::Card]]
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>
2026-11-14 14:45:01 -06:00
77d262e969 Thread inspector says where Roll it with … instead is when it's hidden
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:40:03 -06:00
0ec50cc1fc Spread folders (Move to folder…, submenus), useful switcher tooltip, clearer export names
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>
2026-11-14 14:35:35 -06:00
bd077ebadc Formatting: right-click Format menu in text fields, more toolbar buttons, sparkle/shimmer/flash
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>
2026-11-14 14:32:46 -06:00
05508e1c05 Delete key deletes the selection, asking first (View ▾ → Ask before deleting)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:28:59 -06:00
bc2936cf15 Sound slider in View ▾ and ☰; built-in themes hide Delete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 14:26:39 -06:00
983d2bd839 Cards can cost to roll; pauses animate up to themselves and pop up
- 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>
2026-11-14 14:23:07 -06:00
3f13bc181c Threads: No repeats (every roll of a repeated thread gives a different result)
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>
2026-11-14 14:11:22 -06:00
22d3613364 Plain tables can have a modifier that moves the result up or down rows
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>
2026-11-14 14:05:09 -06:00
8592c9c059 Results can have Only if; List view rolls show the result at once
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>
2026-11-14 14:02:29 -06:00
b96fc02c0b Group marks: a clear corner tab in every theme, fixed default colour, Any colour…
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>
2026-11-14 13:55:46 -06:00
9d550408d8 Roll again and combine can apply to chosen columns only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 13:42:11 -06:00
3aeb98c2fd Add to list: lists made there are lists, the result's text is the item, Allow repeats
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>
2026-11-14 13:40:20 -06:00
edb49fce27 Ledger entries are saved on the card and editable on the spread
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>
2026-11-14 13:36:03 -06:00
3cba805ec4 UI: the Collection card kind is now called Ledger
Code names and JSON keys stay "collection".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:39:07 -06:00
03bc168756 UI for scales: make, show and edit ordered-step values
- 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>
2026-11-10 21:25:55 -06:00
1377368428 UI for cards with columns: header and cells, inspector Columns section, help
- TableCardColumns: the column-name header, each row's cells after its text
  (Play: wrapping text; Build: a field per cell, edited inline), cards widen
  per column, and in "each" mode the cell each column landed on is lit
  (Main.lit_columns, from the rolled node's columns).
- InspectorColumns: Add columns, add/rename/move/remove (cells kept in step),
  one roll vs each column, Save as (value picker) and Only if (condition
  builder); the result inspector gets a field per extra column.
- Help: a Columns topic after Ranged tables and dice.
- tests/test_ui_columns.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:25:03 -06:00
df03168382 Thread inspector: roll with other dice, roll again on some results
- InspectorThreadRolls (new helper): "Roll it with [ ] instead" for a card
  with numbered ranges (placeholder: the card's own dice), and a collapsible
  "Roll again if it comes up: …" tick list of the card's results (scrolls
  past 7 rows; open state kept across rebuilds).
- Inspector.set_pipe_dice / set_pipe_reroll delegators; edits go through
  Inspector.wrote like the other thread options, so undo covers them.
- Help: two short subsections in the Threads topic.
- tests/test_ui_threads.gd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 21:18:49 -06:00
9f06af9676 Fix: resize corner caught clicks far outside cards; left-drag selects in Play too
CardGrip._has_point only checked 'right of and below' the corner, and
Godot asks controls about points outside their box, so everything to the
bottom-right of every card acted as its resize handle. It's now bounded to
the corner square inside the card.

A left-drag on empty space now draws a selection box in Play as well as
Build, and selected cards move together in both; panning is middle-drag or
Space+drag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:38:15 -06:00
b1616373be Help: topics for every new feature, a cheat sheet, and Try a demo spreads
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>
2026-11-10 19:24:57 -06:00
f00f36b598 Deck mode: faded drawn results, Wait for Shuffle with an Empty result
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>
2026-11-10 18:43:16 -06:00
9fcaf5c123 No more drag walls; drag box selects; middle/Space-drag pans; groups move with the selection
Cards, selections, new cards and inserted templates may sit anywhere,
including left of or above the old edge. In Build a drag on empty space
draws a selection box (Ctrl/Shift adds); middle-drag or Space+drag pans
(a plain drag still pans in Play). The box also picks up collapsed groups
it touches and expanded groups it covers, and dragging any selected card
or group moves the whole selection (MainSelection). Ctrl-click a group's
title to add it to the selection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:30:13 -06:00
ea1e7a6492 Rename to Table Tarot in the UI: spreads, threads, deck mode, branch, repeat
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>
2026-11-10 18:24:23 -06:00
8f16d337cf UI pass: striped rows, View/Help menus, zoom control, card ⋯ menu, fuller sample
- 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>
2026-11-09 10:36:38 -06:00