Files
DndGamePlayer/app/renderer/editor/help/helpSections.ts
T
Ivan Fontosh a2b418b78a feat(help): traps/tokens/grid sections and clickable cross-links
Add instruction pages for traps, non-player tokens, and grid generator, and turn section mentions into in-modal navigation links.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 12:13:53 +08:00

36 lines
711 B
TypeScript

/** Порядок разделов в окне «Инструкция». */
export const HELP_SECTION_IDS = [
'overview',
'license',
'projects',
'scenes',
'graph',
'sideStorylines',
'sceneProps',
'sceneEditor',
'grid',
'traps',
'tokens',
'campaignAudio',
'materials',
'npcs',
'session',
'controlPanel',
'transitions',
'music',
'effects',
'presentation',
'importExport',
'settings',
] as const;
export type HelpSectionId = (typeof HELP_SECTION_IDS)[number];
export function helpSectionTitleKey(id: HelpSectionId): string {
return `help.section.${id}.title`;
}
export function helpSectionBodyKey(id: HelpSectionId): string {
return `help.section.${id}.body`;
}