khovanet-Mod_Menu icon

Mod Menu

Configure settings for mods that follow BepInEx ConfigurationManager conventions.

Last updated 4 hours ago
Total downloads 10
Total rating 0 
Categories Mods Tools AI Generated
Dependency string khovanet-Mod_Menu-0.1.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Mod Menu

A Mods screen next to the game's Settings, on the title screen and in the pause menu.

Features

  • Adds a menu in-game for players to set mod configs that follow the BepInEx ConfigurationManager conventions.

Open it from Settings > Mods.

Multiplayer

Client-side only: other players don't need it, and it doesn't affect joining lobbies.

For mod developers

There's nothing to add for Mod Menu. Your mod's settings appear automatically, and it needs no reference, dependency or extra code.

  • Bind your settings with Config.Bind on your plugin's own Config, in Awake. Entries in a separate new ConfigFile(...) don't appear.
  • Mod Menu follows the ConfigurationManager conventions, so set your settings up as you would for it: AcceptableValueRange gives a slider, AcceptableValueList or an enum gives a dropdown, a bool gives a toggle, and anything else gets a text box.
  • Every ConfigurationManagerAttributes member is honoured except CustomDrawer, CustomHotkeyDrawer and HideSettingName, which draw in ConfigurationManager's own window. Those settings get their normal control instead. The older System.ComponentModel attributes and string tags ("Advanced", "Hidden", ...) work too, as does [Browsable(false)] on a plugin class to hide the whole mod.

A few differences from ConfigurationManager's window:

  • Settings keep the order you bind them in, within each section, unless you set Order. Sections keep the order their first setting was bound in.
  • Without DispName, the label is the key with spaces added (ParkDistance shows as "Park Distance").
  • Descriptions are TextMeshPro rich text, so avoid < and > unless you mean them as tags.

Community

Join the CRACK Modding Discord (unofficial, fan-run): https://discord.gg/crack-modding Get help, report bugs, suggest features and hear about new mods first.