A shared settings window for blueprint mods that want to use it.
Download ModHub.pak and install into AstroColony/Content/Paks/LogicMods (Unreal Mod Loader is required)
Download the most recent release of _ModHub.zip
Extract the folder _ModHub from within this .zip into your UE project's Content folder. So an example project path should be AstroColony/Content/_ModHub
There are 3 interfaces:
IHub
- Coontains functions that can be called on the Mod Hub Manager. More on that laterIHubPageWidget
- The interface to add to every widget blueprint page that you want to add to Mod HubIHubMod
- The interface to add to the main mod actor of your mod
- Add it under class settings.
- Double click on the interface functions and fill out the return variable.
- Add it under class settings.
- Double click on the interface functions and fill out the return variables.
- When adding pages, keep in mind that you need to instantiate your mod page widgets for them to show.
Optional:
- Right click the event functions and implement them. You can now handle these events.
- Mod Registered gets called when your mod is registered with Mod Hub. It returns a reference to the Hub.
- As shown are some of the functions that can be used with the IHub reference.
- Do not pack the _ModHub folder nor its contents with your mod. A copy already exists with the ModHub itself.
- If you want to view the ModHub source code, you can find it in the Source folder. Make sure you don't pack this with your mod.
- There is an example ModHub mod called "Test", if you get stuck.