funlennysub-MycoModConfig icon

MycoModConfig

Adds a Mods tab to the settings menu with every mod's config.

Last updated 2 days ago
Total downloads 44
Total rating 0 
Categories Quality Of Life Client-Side
Dependency string funlennysub-MycoModConfig-0.1.1
Dependants 0 other packages depend on this package

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
MonoDetour-MonoDetour_BepInEx_5-0.7.1801 icon
MonoDetour-MonoDetour_BepInEx_5

HarmonyX interop & BepInEx 5 logger integration for MonoDetour. Initializes MonoDetour early as a side effect.

Preferred version: 0.7.1801
funlennysub-MycoMenuLib-0.1.0 icon
funlennysub-MycoMenuLib

Reusable settings UI helpers for Mycopunk mods.

Preferred version: 0.1.0

README

MycoModConfig

Adds a Mods tab to the settings menu with every mod's config.

Requirements

Features

  • Per mod configuration tab
  • Nothing is saved until you save
  • Each option has small buttons next to its name:
    • ↺ revert to saved value
    • wrench reset to default
  • Passwords and other secret values are shown as dots while typing, with a Show/Hide button

For mod authors

using BepInEx.Configuration;

// Boolean binds become a toggle
mute = Config.Bind("Audio", "Mute in missions", false, "Silence mission chatter");

// Numbers are sliders, with an optional range 
volume = Config.Bind("Audio", "Volume", 1f,
    new ConfigDescription("Overall volume", new AcceptableValueRange<float>(0f, 1f)));

// Enums and acceptable value lists become a "dropdown"
mode = Config.Bind("Gameplay", "Mode", Mode.Normal, "Pick a mode");
quality = Config.Bind("Video", "Quality", 2,
    new ConfigDescription("", new AcceptableValueList<int>(0, 1, 2, 3)));

// Text field, shown as dots with a Show/Hide button
apiKey = Config.Bind("Network", "Api Key", "",
    new ConfigDescription("Secret", null, "Password"));

// Hidden from the Mods tab
debug = Config.Bind("Debug", "MigrationDone", false,
    new ConfigDescription("", null, "Hidden"));

// Same effect via the Tags class
cache = Config.Bind("Debug", "CacheVersion", 1,
    new ConfigDescription("", null, new Tags { Browsable = false }));

// Nicer display name
tips = Config.Bind("Gameplay", "showStartupTips", true,
    new ConfigDescription("", null, new Tags { DispName = "Show tips" }));

class Tags
{
    public string DispName;
    public bool Browsable = true;
}

Known issues

  • Controller support is very bad in the current release, you can use it but you have to fight your way through