Mod Manager
Workflow
A component responsible for initializing custom mods. Currently, it supports Music Player, Photo Gallery, Notepad and Video Player content. In order to add new mods, you first need to create a module folder. All module folders should match with the ID. Example: Your Game Folder > Mods > Music Player
You have to create a new folder, name it properly (such as My Custom Song), and then create a text file with the required parameters. The data file must be renamed as the data name (ModData by default) and has the same extension as the file extension parameter (.data by default). After creating the file, you must prepare the required parameters, like this:
Example
Here’s a quick example on how to create a new content:
[Title] My Custom Song // required
[Description] Artist Name // optional
[Icon] Cover.png // optional
[ModuleType] Music Player // required
[ModuleAsset] Track.mp3 // required
Scripting
using Michsky.DreamOS; // namespace
public ModManager modManager;
void YourFunction()
{
modManager.InitializeMods(); // Initialize available mods
modManager.initOnEnable = true; // Change on enable behaviour
modManager.defaultModState = true; // Default mod sate - enabled or disabled
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.