You are viewing a potentially older version of this package. View all versions.
funlennysub-MycoMenuLib-0.1.0 icon

MycoMenuLib

Reusable settings UI helpers for Mycopunk mods.

Date uploaded 3 days ago
Version 0.1.0
Download link funlennysub-MycoMenuLib-0.1.0.zip
Downloads 38
Dependency string funlennysub-MycoMenuLib-0.1.0

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403

README

MycoMenuLib

Reusable settings-row helpers for Mycopunk mods, using the game's own prefabs.

Requirements

  • BepInEx 5 (BepInExPack_Mycopunk)
  • Add a hard dependency in your plugin:
[BepInDependency("dev.funlennysub.MycoMenuLib")]

Usage

using MycoMenuLib;

ModUI.AddCategory(items, "My Mod");

ModUI.AddToggle(items, "mymod.enabled", "Enabled", enabled,
    value => { /* ... */ });

ModUI.AddFloatSlider(items, "mymod.scale", "Scale", scale, 0.1f, 2f, 2,
    value => { /* ... */ });

ModUI.AddIntSlider(items, "mymod.count", "Count", count, 1, 20,
    value => { /* ... */ });

ModUI.AddDropdown(items, "mymod.mode", "Mode", options, currentIndex,
    index => { /* ... */ });

ModUI.AddTextInput(items, "mymod.name", "Name", name,
    value => { /* ... */ });

ModUI.AddInput(items, "mymod.secret", "Token", token,
    new InputFieldOptions
    {
        Type = ModInputType.Password,
        ShowRevealButton = true,
        CharacterLimit = 128,
    },
    value => { /* ... */ });

ModUI.AddInput(items, "mymod.notes", "Notes", notes,
    new InputFieldOptions
    {
        Multiline = true,
        Height = 150f,
        Placeholder = "Optional notes...",
    },
    value => { /* ... */ });

ModUI.AddKeybind(items, "mymod.key", "Hotkey", key,
    (code, modifiers) => code,
    code => code.ToString(),
    value => { /* ... */ });

ModUI.AddDivider(items);

ModUI.AddRowAction(rowControl, sprite, 0, () => { /* ... */ });

CHANGELOG

Changelog

0.1.0 (2026-11-22)

Release v0.1