Skip to content

Latest commit

ย 

History

History
84 lines (67 loc) ยท 2.67 KB

File metadata and controls

84 lines (67 loc) ยท 2.67 KB

๐Ÿงฉ SimpleModMenu

A in-game mod menu for Sledders using MelonLoader. Easily toggle, configure, and alter the game with the inbuilt features.

๐Ÿ“ฆ Features

  • ๐Ÿงญ In-Game UI โ€“ Opens with a single key, no need to alt-tab.
  • ๐Ÿ”˜ Toggle Mods On/Off โ€“ Quickly enable or disable features.
  • ๐Ÿ› ๏ธ Custom Actions โ€“ Hook your modโ€™s functions into the menu.
  • ๐Ÿชถ Lightweight โ€“ Minimal performance impact.

๐Ÿ–ฅ๏ธ Requirements

  • A working installation of MelonLoader onto sledders
  • .NET Framework compatibility

๐Ÿ“‚ Installation

  1. Download the latest SimpleModMenu.dll from the Releases tab (or build it yourself).
  2. Place the DLL into your game's mods/ folder.
  3. Launch the game โ€“ the menu will open with Right shift.

๐ŸŽฎ Usage

  • Right shift โ€“ Open/close menu.
  • Explore the different tabs that the menu has to offer.
  • SimpleModMenu can be extended from other mods by using its static API.

๐Ÿ”ง Integration Example (C#)

To integrate your own mod, use the Simple mod menu API. Reference SimpleModMenu.dll in your mod and you are good to go.

Example of how to create a tab.

namespace SimpleModMenu;

class NewTab : Tab
{
    private float ExampleValue = 50f;
    public NewTab() : base("Tab name")
    {
        // Initialize the tab with any specific settings or UI elements.
    }
    public override void DrawTab()
    {
        // Implement the drawing logic for this tab.
        // Both GUILayout and inbuilt SimpleModMenu methods can be used here.

        base.DrawTab(); // Call the base method to ensure the tab is drawn correctly.

        GUILayout.Label("This is a new tab!");

        // Example button
        DrawButton("Click Me", () =>
        {
            MelonLogger.Msg("Button clicked in NewTab!");
        });

        // Example slider
        DrawSlider("Example Slider", ref ExampleValue, 0f, 100f);
    }
}

Example of how to register the created tab.

namespace SimpleModMenu;

class TestMod : MelonMod
{
    public override void OnApplicationStart()
    {
        API.RegisterTab(new NewTab());
    }
}

See the SimpleModMenu.API class for more integration options.

๐Ÿงช Development & Building

  1. Clone the repository.
  2. Reference MelonLoader.dll, UnityEngine.dll, and your game's assemblies.
  3. Build using Visual Studio or your favorite IDE.
  4. Output goes to your mods/ folder for testing.

๐Ÿค Contributing

Pull requests are welcome! Feel free to fork the project and submit changes. For major changes, open an issue first to discuss what youโ€™d like to change.

๐Ÿ“„ License

MIT License โ€“ Do whatever you want, but please give credit.