Allow mods to create client UIs
To do this from a mod:
this.events.on('onBeforeGetUiList', this.onBeforeGetUiList.bind(this));
onBeforeGetUiList: function (list) { }
Here, you can append UIs to be loaded when the uiFactory starts up (once the player is in-game). This is the format of the entries that should be appended:
{ path: 'server/mods/your-mod-path/ui/uiName' }
It's important to note that you have to store your UIs in a folder called ui
inside your mod as the server uses the folder name for route security. That is: to ensure that the client can only access those files and not server-side mod code.
Edited by Big Bad Waffle