Commit graph

7 commits

Author SHA1 Message Date
61a548902f Theme tiers 1-2: theme folders, mascot recolour, background scene and tile, frame sets, picture threads, sounds; nine new built-in themes
- ThemeAssets loads a theme's files; FrameSet + GradientMap (3-stop) generalise the card frame;
  ThreadStrip draws threads from a picture; BoardBackdrop draws scene and tile; MascotArt
  recolours Morgan by role (logo SVG now uses the Keep File importer); SoundBoard plays
  roll / card turn / thread / click / ambient with View > Sound levels.
- Vaporwave, Synthwave, Cozy Autumn, Rustic, Woodsy, Sky Blue, Frutiger Aero, Gothic, Terminal:
  generated art (tools/theme_art), sounds (tools/theme_sounds), settings (tools/theme_defs).
- Ten OFL fonts; --theme=<id> flag; docs/THEMES.md format spec; test_theme_assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:05:40 -06:00
4f0d2e2c4e Deck mode: a drawn result fades only once the animation reveals it
DeckReveal holds an animated roll's draws until each result lights; the
cards-left count waits too. Fast rolls and any newer roll drop the holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:19:34 -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
fe133d3a94 Pause: a thread can wait for the player
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>
2026-11-10 19:10:11 -06:00
1358678889 Small UI items: bold chip sources, thread lists, backwards ranges, template replace
- 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>
2026-11-10 18:40:53 -06:00
781aaf1be8 Magic sparkles on the thread pulse and on landing results
Sparkles (CPU particles, mobile-safe) in the theme's GLOW colour: a trail
follows the pulse up each thread, and a short burst plays over a result as
it lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:26:02 -06:00
0202312688 Split ui/main.gd into area helpers (no behaviour change)
Main (3679 lines) becomes a shell: shared state, start-up, cards, input,
rules view and one-line delegators for the methods other files call. Each
area moves with its state into a RefCounted helper holding a back-reference
(m: Main):

  main_cli.gd          command-line and screenshot flags
  main_top_bar.gd      top bar, toast, endless-loop chip
  main_editing.gd      add/delete cards, results and pipes, selection bar
  main_groups.gd       groups and card drags
  main_templates.gd    templates
  main_rolling.gd      rolling, choice questions, playback, session seed, copy
  main_collections.gd  collections, import/export, table settings, test board
  main_state.gd        decks, variables, roll history (local state)
  main_navigation.gd   search, focus, minimap, arrange/pack
  main_history.gd      undo/redo and mark_dirty
  main_inspector.gd    inspector selection and refresh

Tests that reached moved private members now go through the helper
(main.undo_redo.edits, main.rolling.pending_choice(), ...).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:14:19 -06:00