ModsMenu

版本 v0.3.2·更新於 2026-10-07

Adds a Mods tab to Options with the settings of your installed mods: toggles, sliders, dropdowns and text fields built from each mod's config, in the game's own style. A library: mods opt in with one

模組介紹 作者原文

Mods Menu

Adds a Mods tab to Stolen Realm's Options window (Esc → Options, after Twitch) with the settings of your

installed mods.

  • Each mod gets a card with its name and version. Click the card to open it.
  • Settings use clones of the game's own Options controls: toggles, sliders, dropdowns and text fields.
  • Changes save to the mod's config file right away, and mods that support it react without a restart.

Mods Menu is a library. On its own it only shows its own card. Mods that support it appear automatically, and

Show All Plugins also lists any other BepInEx mod that has settings.

Settings

| Setting | Default | |

|---|---|---|

| Show All Plugins | off | Also list installed mods that didn't opt in but have settings |

| Log UI Layout | off | Write the Options window's layout to the BepInEx log once per launch (for mod developers) |

The file is BepInEx\config\com.helvetica.modsmenu.cfg.

For mod developers

No code. Add a soft dependency to your plugin class. Your mod still loads when Mods Menu isn't installed:

[BepInDependency("com.helvetica.modsmenu", BepInDependency.DependencyFlags.SoftDependency)]

Every Config.Bind entry then appears on your mod's card, grouped by config section:

| Setting type | Control |

|---|---|

| bool | toggle |

| enum | dropdown |

| float/int with AcceptableValueRange | slider + value |

| any type with AcceptableValueList | dropdown |

| other simple types (string, unbounded numbers…) | text field (invalid input reverts) |

Labels come from the key (ShowOwnName → "Show Own Name"). The description is a dim line under the control.

A change saves the.cfg at once and raises SettingChanged, so your mod can react live.

Order. Mods are listed A-Z, Mods Menu last. Inside a card, groups and settings follow the order of your

Config.Bind calls, not the.cfg file's (BepInEx sorts sections alphabetically in the file).

Custom controls. Reference ModsMenu.dll with Private="false" so it isn't copied next to your mod. Put the

calls in a separate class and only call it when Mods Menu is installed, so your mod still loads without it:

// OnModLoaded / Awake:

if (Chainloader.PluginInfos.ContainsKey("com.helvetica.modsmenu")) MenuCard.Register();

static class MenuCard

{

internal static void Register() => ModsMenuApi.AddSection(MyPlugin.Guid, ui =>

{

ui.AddButton("Reset colors", ResetColors, "Restore the default palette");

ui.AddLabel("Anything else goes here.");

});

}

SectionBuilder offers AddHeader, AddSubheader, AddLabel, AddToggle, AddSlider, AddDropdown,

AddInput, AddButton, AddConfigEntry and AddConfigFile. The callback runs each time your card opens, after

your config settings.

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

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

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

前置依賴

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

BepInEx-BepInExPackStolenRealmModding-StolenRealmModAPI

檔案與校驗

檔案名稱
ModsMenu-0.3.2.zip
檔案大小
22.0 KiB