ModSettings
One in-game settings menu for all your mods. Adds a Mods button to the pause menu for changing any mod's config without editing files.
模組介紹 作者原文
ModSettings
One settings menu for all your Stonewards mods. Change any mod's options in game instead of editing config files.
How to use
- Click Mod Settings on the title screen, or press Escape in game and click Mods, under Settings.
- Pick a mod on the left and change its settings on the right. Search finds settings across all mods.
- Changes apply right away and are saved to the mod's normal config file. Settings marked Restart required take effect the next time you start the game.
- Reset puts a setting back to its default. Back or Escape returns to the menu you came from.
Every installed BepInEx mod shows up automatically, no support from the mod needed. Toggles, dropdowns, sliders (for settings with a range), key bindings and text fields are picked from each setting's type.
For mod authors
Nothing is required: settings bound with Config.Bind appear as they are. To refine how a setting is shown, add a tag object to its ConfigDescription. ModSettings reads these public fields by name, so you don't need to reference it, and tags written for BepInEx.ConfigurationManager work as they are:
| Field | Type | Effect |
| --- | --- | --- |
| DispName | string | Name shown instead of the key. |
| Category | string | Section shown instead of the config section. |
| Description | string | Description shown instead of the config description. |
| Order | int? | Higher values are listed first within a section. |
| Browsable | bool? | false hides the setting. |
| IsAdvanced | bool? | Only shown with Advanced ticked. |
| ReadOnly | bool? | Shown but can't be changed. |
| HideDefaultButton | bool? | Hides the Reset button. |
| RestartRequired | bool? | Marks the setting as needing a game restart. |
internal sealed class ConfigurationManagerAttributes
{
public string DispName;
public int? Order;
public bool? RestartRequired;
}
Config.Bind("HUD", "CounterOffsetX", 0, new ConfigDescription(
"Extra horizontal distance from the corner.",
new AcceptableValueRange(-400, 400),
new ConfigurationManagerAttributes { DispName = "Counter offset X", Order = 10 }));
Use AcceptableValueRange for a slider and AcceptableValueList for a dropdown. Your mod receives changes through its normal SettingChanged events and.Value.
Issues
Report bugs at Please attach BepInEx/LogOutput.log.
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: