25 lines
845 B
TypeScript
25 lines
845 B
TypeScript
export type ParticleSectionKey =
|
|
| 'config'
|
|
| 'scene'
|
|
| 'emitMode'
|
|
| 'shape'
|
|
| 'attr'
|
|
| 'look'
|
|
| 'mods'
|
|
| 'export'
|
|
|
|
export const PARTICLE_SECTIONS: ReadonlyArray<{
|
|
key: ParticleSectionKey
|
|
titleKey: string
|
|
requiresParticle: boolean
|
|
}> = [
|
|
{ key: 'config', titleKey: 'config.title', requiresParticle: false },
|
|
{ key: 'scene', titleKey: 'scene.title', requiresParticle: false },
|
|
{ key: 'emitMode', titleKey: 'emission.title', requiresParticle: true },
|
|
{ key: 'shape', titleKey: 'emission.shapeTitle', requiresParticle: true },
|
|
{ key: 'attr', titleKey: 'attributes.title', requiresParticle: true },
|
|
{ key: 'look', titleKey: 'appearance.title', requiresParticle: true },
|
|
{ key: 'mods', titleKey: 'modifiers.title', requiresParticle: true },
|
|
{ key: 'export', titleKey: 'export.title', requiresParticle: true },
|
|
]
|