Mod Menu

版本 v1.2.0·更新於 2026-07-12

Configure your mods ingame!

模組介紹 作者原文

Mod Menu

This mod adds a mods tab to the settings menu, which allows you to configure your mods ingame.

For mod developers - notes and API reference

All types usable in BepInEx 5.4.21 ConfigEntries are supported.

This mod works much the same as BepInEx ConfigManager in that how options appear is defined by their acceptable values -

an AcceptableValueRange creates a slider, an AcceptableValueList creates a dropdown, etc. Known issues include:

  • [Flags] enums are not currently supported

API reference

To get started, download the package as a zip and take ModMenu.dll and ModMenu.xml from the downloaded files. Reference

ModMenu.dll in your project, add using ModMenu.Api to files in which you wish to use the API and you should be good to go!

For example usage of the API, see Assets/Scripts/Plugin.cs in the mod's source code.

Hiding config entries

Calling ModMenuCustomisation.HideEntry with one of your mod's config entries will prevent ModMenu from generating an

option for it in your mod's page.

Explicitly setting mod description/icon

ModMenu attempts to get mod icons and descriptions metadata. If it fails (i.e. your mod was installed

manually), your mod will get a default description and icon. The API allows you to set the description and icon so they will

always be available through ModMenuCustomisation.SetPluginIcon and ModMenuCustomisation.SetPluginDescription. Metadata set

through these also overrides any metadata that does get found.

Custom content builders

To add content to your mod page, the API allows you to provide an action that will be invoked while ModMenu is constructing

the page. To do this, call ModMenuCustomisation.RegisterContentBuilder. The action takes an OptionListContext, which provides

methods for easily constructing many premade option list items.

Below is a small example, you can find a full example in ModMenu's source code as mentioned above.

ModMenuCustomisation.RegisterContentBuilder((OptionListContext context) => {

context.AppendTextBox("A text box");

bool checkboxValue = false;

// second parameter is a getter, third parameter is a setter

// these can do anything you want really - you aren't limited to

// just mirroring a value.

var checkbox = context.AppendCheckbox("A checkbox", () => checkboxValue,

value => {

checkboxValue = value;

});

// you can set custom option info panel contents

checkbox.OnItemHovered += () => {

context.SetInfoPanelContents("Title text", "Subtitle text", "An informative description");

};

context.PrependHeader("Prepending stuff (appears at the start of the list)");

context.InsertHeader(5, "Inserting stuff (appears at the specified index in the list)");

// you can also get the root transform to do whatever you like with

Transform rootTransformOfList = context.Root;

});

Something worth keeping an eye on is the fact that the content builder _will only be run once_. ModMenu keeps track of the

options that have been instantiated and which mod they're for and only enables/disables them as needed to improve performance.

Manual Installation Instructions

_(you should probably just use a mod manager like r2modman or gale though)_

  • Download and install Bepinex 5.4.21

(if you have no idea what the versions mean try BepInEx_x64_5.4.21.0 and it might work. maybe)

  • Once BepInEx is installed, extract the zip into the BepInEx/plugins folder in the game's root directory.

have fun:3

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
Mod_Menu-1.2.0.zip
檔案大小
1.1 MiB