Files
Ivan Fontosh c8ab9dd567 feat(editor): побочные сюжетные линии и импорт/экспорт линий
Добавлена полноценная поддержка побочных сюжетных линий в редакторе и на
пульте: визуальное выделение компонент графа, запрет недопустимых связей
между основной и побочными линиями, метки «ПОБОЧНАЯ» и названия линий.

Реализован partial export/import сюжетных линий:
- экспорт выбранных линий в урезанный .ttrpg.zip с manifest в project.json;
- импорт в открытый проект с выбором линий, разрешением конфликтов названий
  сцен (одна модалка на операцию) и отчётом о результате;
- новое окно источника импорта: «Из проекта» (dropdown, без текущего) или
  «Из файла»; на главном экране — только полный импорт из файла.

Исправлены гонки при открытии/закрытии проекта (сериализация open/close в
main, сброс зависших состояний UI), залипание оверлея прогресса экспорта и
старт Electron в dev после готовности Vite.

Добавлены unit-тесты для lineage, export/import и контрактов zipStore.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-09 14:47:28 +08:00

1.3 KiB

Graph Editing

  • Create a link by dragging from the source node handle to the target node handle.
  • A regular click or double-click on a link must not change the graph.
  • Delete a link only through its context menu: right-click the line and choose Delete.
  • Delete a node through the node context menu: right-click the node and choose Delete. Removing a node does not delete the scene from the scene list.

Main story start

  • Right-click a node → Start scene to mark the main storyline entry (purple START badge).
  • Only one main start per project. Run in the editor header uses this node.

Side storylines

  • Side storylines are isolated subgraphs: no links to the main story or to other side storylines.
  • Right-click a node in a free component → Side storyline start scene (blue SIDE badge).
  • The menu item is hidden if the connected component already has a main START or another SIDE marker.
  • Side storyline links and selected cards use blue (#0078d4).
  • Start from this scene is not available on side-story nodes.
  • Scene properties show Side storyline title when the scene has a side-start card.
  • During play, side storylines appear as tiles on the control panel (under Music). Clicking a tile jumps to its first scene and remembers the main-story return point.