From 1199fafcf9c36237bb40b1450f21729ccec32dc1 Mon Sep 17 00:00:00 2001 From: RobinFiredrake Date: Tue, 10 Nov 2026 18:43:31 -0600 Subject: [PATCH] DESIGN.md: plan status after steps 1-6 Co-Authored-By: Claude Opus 5.5 --- docs/DESIGN.md | 54 ++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/docs/DESIGN.md b/docs/DESIGN.md index d78dba5..ae3f133 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -1,6 +1,6 @@ # Table Tarot (repo: TableTower) — Status and Plan -**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-10 +**Engine:** Godot 4.7.2 (GDScript) · **Started:** 2026-11-08 · **Last updated:** 2026-11-10 (plan steps 1–6 done on `tarot`) The short page to read at the start of every session. Everything else is read only when needed: - `docs/ARCHITECTURE.md`: feature summary, file map, key implementation facts, data/storage, known gaps. @@ -32,32 +32,34 @@ The Collection *card kind* needs a new UI name (not "List", not "Collection"); u Card, Result, Change, Reset, Dice wording rules: `docs/HISTORY.md` §6 "Terminology". ## 3. Plan (agreed 2026-11-10, in order) -1. **Theme system first.** `Style` constants become a runtime theme (tokens + gradients), so - per-card/per-thread colours are overrides of the same tokens. Options menu theme editor: - colours (cards, threads, background, panels, text…), gradients for large areas, font, logo, - background pattern; save themes as sets. Ship two: **Tarot** (default: dark jewel-tone purple - cloth with a faint gradient shine, colours from `assets/art/fortune_teller.svg` and - `assets/ui/frame_*.svg`) and **Felt** (inspired by the current green/copper look). -2. **Rename and reskin.** Table Tarot text, mascot/logo/icon `assets/art/fortune_teller.svg`, - scaling card borders from `assets/ui/frame_border.svg` + `frame_corner.svg`. Magical particles - on the thread glow and the selected-result glow (CPUParticles2D for mobile). Thread string art - comes later (user hasn't drawn it). -3. **Board interaction.** Remove the drag walls. Empty-space drag = selection box (groups can be - box-selected and moved together even if not groupable). Pan = middle-drag, Space+drag - fallback, two fingers on touch. Cards resizable in width and height (results scroll inside). -4. **One menu system.** Right-click menus for cards, threads and background (create card/group, - search, shuffle all, list view, Book…), shared with the card ⋯ menu, mobile long-press, and a - top-bar menu button (keep a visible button: more intuitive than right-click for some). - Zoomed-out Build: names become tooltips, only drag + right-click; Play: click rolls. -5. **Small UI items.** Tray chips show the source card name clearly (bold/contrast). Inspector - lists threads in (from where) and out (to where). Range low > high: warning + disabled roll, - no auto-fix. Template "Update template" (edit existing). Export menu: odd formats under - "Other formats…". Test board explains "lint". -6. **Deck mode.** Rename; show drawn-out options on the card; surface Reshuffle-vs-Stop (exists: - RollTable "When the deck runs out"); Stop gives a custom result (default - "Empty"); Shuffle all (menu + right-click). +Work is on branch `tarot` (not merged yet). Done items say so; details in `git log`. +1. **Theme system: done.** `Style` colours are static-var tokens named by role; `ThemeStore` + applies sets (built-ins in `BuiltinThemes`: Tarot default, Felt), saves user sets in + `user://themes/`; View ▾ → Theme… (`ThemeDialog`, `FillEditor` for gradients). Applying + reloads the scene (`ThemeStore.carry_board` keeps the open spread). Per-card + (`RollTable.color`) and per-thread (`TableEntry.pipe_color`) colours via `ColorChoice` and + right-click Colour ▸. **Not done:** font choice (only Atkinson + Rokkitt are bundled; add + OFL fonts first), card/thread art per theme beyond the frame on/off. +2. **Rename and reskin: done.** UI text only (code names, JSON keys and the project's internal + name, so `user://`, unchanged). Logo `assets/art/fortune_teller_logo.svg` (the art minus its + background square), app icon = mascot. `CardFrame` draws the beaded border (shader recolours + to TRIM or the card colour). `Sparkles` (CPU particles) on the thread pulse and on landing + results. Thread string art: waiting on the user's drawings. +3. **Board interaction: done** except two-finger touch pan (do with mobile). No walls; Build + drag on empty = selection box (Ctrl/Shift adds); middle-drag / Space+drag pans (Play: plain + drag pans too); `MainSelection` box-selects groups and drags the whole selection; `CardGrip` + resizes cards (`RollTable.width`, `list_height`). +4. **One menu system: done.** `Actions` builds card/thread/group/background menus for + right-click, the ⋯ buttons and the top bar's ☰. Below 45% zoom `CardShield` covers cards + (name tooltip, drag, right-click, Play click rolls). Long-press on touch: with mobile. +5. **Small UI items: done.** Bold chip sources, Threads in/out in the inspector + (`InspectorThreads`), backwards ranges warn and block rolling, template Replace and Edit…, + Other formats submenu, plain Test spread hints. +6. **Deck mode: done.** Faded drawn results, inspector Deck mode section, Wait for Shuffle with + an Empty result (`deck_empty_text`), Shuffle all decks. 7. **Nested groups**, then **List view** (folders = groups; reorder; own search; thread icons with - tooltips), then the **mobile layout** (List view default; Android export template download OK'd). + tooltips), then the **mobile layout** (List view default; Android export template download OK'd; + two-finger pan, long-press menus). 8. **Book and Pages.** Library of reusable results (name, BBCode text, details, tags, image), searchable, with an editor; drag a Page onto a table slot. Pages are **linked** (edit once, updates everywhere; "unlink"). Same linking mechanism as linked templates. Stored in the spread