Creating a Mod
A mod is one individual ui section with an expandable header in a mods tab (e.g. Give Money or Movement Manager). This guide will go over creating one from scratch. It will only go over creating regular mods, other mod types (like player based ones in tabs where you select a player) may be covered in separate documentations.
Creating a New Mods Window
For a mod to be displayed, it needs a mods panel to be displayed within.
Other mods (like lstwoMODS Wobbly Life) may add their own which you can use, but if its in a different game, or you want a new one, you can create one like this, at Plugin.Awake:
new ModsWindow("My Mods Window") This will automatically register it and make it render, but to use it in your mod you need to put it into a field that is accessible from that class. For example:
public static ModsWindow MyModsWindow;
private void Awake()
{
MyModsWindow = new ModsWindow("My Mods Window");
} Creating a New Simple Mod
Create a new class and name it after the mod. Open the file and make the class extend BaseMod.
Then add the new necessary fields:
public class MyMod : BaseMod
{
public override string Name => "My Mod";
public override string Description => "My new test mod";
public override ModsWindow ModsWindow => Plugin.MyModsWindow;
}