Allow mods to replace default UIs
The following will replace the characterSelect
UI with a custom one:
module.exports = {
name: 'Mod Name',
init: function () {
[
'onBeforeGetUiList'
].forEach(e => this.events.on(e, this[e].bind(this)));
},
onBeforeGetUiList: function (list) {
list.push({
type: 'createCharacter',
path: 'server/mods/mod-path/ui/createCharacter/createCharacter.js'
});
}
};