particle library

This commit is contained in:
2026-09-29 16:36:08 +02:00
parent 2780f8aebb
commit e7bb16df64
4 changed files with 187 additions and 15 deletions
+2 -1
View File
@@ -46,6 +46,7 @@ function harness() {
remove() { Cube.all = Cube.all.filter((cube) => cube !== this); }
}
const context = {
localStorage: { getItem() { return null; }, setItem() {} },
Project: project, Group, Cube, Plugin: { register(id, definition) { context.registration = definition; } },
Action: class { constructor(id, options) { Object.assign(this, options, { id }); } },
Toggle: class { constructor(id, options) { Object.assign(this, options, { id, value: false }); } },
@@ -155,7 +156,7 @@ test('animation menu orders import and creation actions and has no deprecated sp
assert.deepEqual(Array.from(menu.children, (action) => action === '_' ? '_' : action.name), [
'Import Whole Animation', 'Import Actor', 'Import Animation', 'Import Animation Definition', 'Pack Folders',
'_', 'Actor Preferences', 'Replace Actor Model',
'_', 'Block Requirements', 'Item Props', 'NoN Sound Library', 'NoN Particle Library',
'_', 'Block Requirements', 'Item Props', 'NoN Sound Library', 'NoN Particle Library', 'Particle Previews',
'_', 'Animation Definition', 'Export Animations',
]);
const source = fs.readFileSync(path.join(__dirname, '..', 'AnimationDirector.js'), 'utf8');