TableTower/templates/pick-menu.json
RobinFiredrake 9fdf65c00b Group cards and templates
Groups: an optional groups list on a collection (frame rect, collapsed,
members, details), saved by TowerBoard and kept by JsonIO. Expanded groups
draw a frame behind their cards with a title bar; collapsed ones become one
compact card that lists the members' lit results, with pipes re-routed to
its inlet and right edge. Build mode adds multi-select (Ctrl/Shift-click,
Ctrl-drag), Group (Ctrl+G), drop in/out of frames, rename, ungroup, delete
with undo and a details editor.

Templates: TemplateKit saves cards, groups or selections with relative
positions, internal pipes and outside pipes by name, detects {$name}
parameters and inserts with fresh ids. TemplateLibrary keeps user templates
in user://templates and lists the built-in ones in templates/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 17:01:34 -06:00

28 lines
844 B
JSON

{
"format_version": 1,
"name": "Pick menu",
"description": "A question with three options. The player picks one, or presses Random to let the dice decide. Pipe each option onward.",
"kind": "card",
"params": [
{"name": "question", "label": "Question", "default": "Which way?"},
{"name": "option1", "label": "First option", "default": "Left"},
{"name": "option2", "label": "Second option", "default": "Ahead"},
{"name": "option3", "label": "Third option", "default": "Right"}
],
"tables": [
{
"id": "menu",
"name": "{$question}",
"kind": "choice",
"prompt": "{$question}",
"x": 0,
"y": 0,
"entries": [
{"id": "e1", "text": "{$option1}"},
{"id": "e2", "text": "{$option2}"},
{"id": "e3", "text": "{$option3}"}
]
}
],
"groups": []
}