krot-pixi
This module allows your PIXI 5 application to create layouts generate by KROT editor
How to use
Somewhere in main flow
const { init } = require('krot-pixi');
init(PIXI);
Now you can require yours layouts and create instances
On view classes
const MyLayout = require('./my-layout');
new MyLayout();
All the objects are accessible by name.
You can also specify class for some objects, they will be put in arrays.
Make sure all the names and class names are unique in single layout.
Example
const ui = new MyLayout();
ui.someName.x = 0;
ui.someClassName.forEach(object => object.x = 0);