ModOptions
In-game settings for any GTFO mod: one Mod Options tab, optional TheArchive integration, live config reload, file picker.
| Date uploaded | a day ago |
| Version | 1.0.0 |
| Download link | Oxylight-ModOptions-1.0.0.zip |
| Downloads | 23 |
| Dependency string | Oxylight-ModOptions-1.0.0 |
This mod requires the following mods to function
BepInEx-BepInExPack_GTFO
BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.
Preferred version: 3.2.4README
ModOptions
A settings menu for your GTFO mods. Mods made to work with ModOptions put their settings in one place in the game's menu, so you can change them in game instead of editing config files.
For players
You don't need to install this mod yourself: it comes as a dependency of the mods that use it. On its own it adds nothing but its own settings page.
Where to find it
Open the game's Settings and go to the new Mod Options tab at the bottom. It lists every mod that uses ModOptions; pick one to see its settings.
Features
- One tab for all your mods. Every mod's settings are in one place, so they're easy to find and change, and the settings menu doesn't fill up with a separate tab for each mod.
- Toggles, dropdowns, sliders, text fields and file pickers. The file picker opens the normal Windows "Open file" window.
- Autosaving. Every change is written to the mod's config file in
BepInEx/config. - Editing config files by hand still works. Change a mod's
.cfgwhile the game runs: the menu shows the new value, and mods that support it apply it right away. - A red [!] marks settings that can't be applied on the fly. They take effect after you restart the game.
- INFO at the bottom of each mod's page: its version and author, sometimes links.
- TheArchive integration (optional): if you use TheArchive, every mod's settings can go into TheArchive's Mod Settings instead, each mod as its own entry under Add-ons.
- Can be hidden completely. If you never change mod settings in game, turn the menu off.
ModOptions' own settings
Mod Options → Mod Options:
- Show settings menu. Turn it off and restart GTFO to remove the Mod Options tab (and the
TheArchive entries) completely, if you don't want the extra tab. Your mods keep working, and
editing their
.cfgfiles while the game runs still applies. To get the menu back, openBepInEx/config/Oxylight.ModOptions.cfg, setEnabled = truein the[Menu]section (the first setting in the file), and restart GTFO. - TheArchive integration (off by default). Moves all mod settings into TheArchive's menu; takes effect after restart. Needs the TheArchive_Core mod by AuriRex. If TheArchive_Core isn't installed, or ModOptions can't add the settings to TheArchive's menu (after a TheArchive update, for example), it falls back to the Mod Options tab and shows a warning at the top of it, so your settings stay reachable.
- Uppercase letters. Shows setting names in capitals, like the game's own settings. Turn it off to see them the way each mod wrote them. Applies right away.
For mod authors
ModOptions is a library: describe your settings in a few lines of code, and they show up in the
Mod Options tab and in TheArchive, kept in sync with your .cfg. No UI code needed.
See the Wiki tab on this page, or the guide for mod authors on GitHub.
Credits
The menu views are adapted from the settings UI of Skins by food.
Made with AI.
CHANGELOG
Changelog
1.0.0
- First version: a "Mod Options" tab in the game's settings menu for every mod that uses ModOptions.
- Optional TheArchive integration (off by default, needs a restart): every mod's settings appear in TheArchive's Mod Settings under Add-ons instead, each mod as its own entry.
- Toggles, dropdowns, sliders, text fields, a file picker, buttons, headers and sub-pages.
- Text fields save when you leave them (click elsewhere, go back, switch tab, close the menu), not only on Enter.
- A text value too long for its box shows its end, also while you type.
- File pickers store paths inside the mod's folder with forward slashes (
sub/image.png), because BepInEx reads a backslash sequence like\nin a config file back as a line break.FilePickerRow.FullPathgives the full path for either kind of value. - Sliders can snap to a step (
Step, floats too) and show a text of the mod's own (ValueText, e.g. "-30 dB" or "Muted"), in both menus. Int sliders take their step fromStepas well (1 by default). - Sliders show their real value in TheArchive's menu too (TheArchive itself shows the handle position there, so a 1..100 slider read 0).
- Editing a mod's
.cfgwhile the game runs applies the change. - Settings that need a restart are marked with a red [!].
- Every mod's main page ends with an INFO block ("Title v1.2.3 by Author") in both menus. Mods can turn it off with
ShowInfo(false), name their author withAuthor(name), and add their own lines, links and buttons topage.Info. - New rows on any page:
AddLabel(read-only text) andAddLink(opens a web page). - An Info block at the bottom of the Mod Options list: version, number of mods using ModOptions, the [!] legend. In TheArchive mode it's at the bottom of ModOptions' own entry.
- "Show settings menu" setting (on by default, needs a restart): turn it off to remove the Mod Options tab and the TheArchive entries for players who only have ModOptions as a dependency.
.cfgfiles are still saved and applied live. Only[Menu] EnabledinOxylight.ModOptions.cfgturns it back on. - "Uppercase letters" setting (on by default): turn it off to show labels in the Mod Options tab the way each mod wrote them.
- If the TheArchive integration is on and TheArchive_Core is installed, but no mod could be added to its menu (for example after a TheArchive update), ModOptions logs an error and falls back to its own tab with a warning, instead of leaving no settings menu.
- If the TheArchive integration is on but TheArchive_Core isn't installed, ModOptions logs an error, falls back to its own tab, and shows a warning at the top of it (gone once the integration is turned off). Without TheArchive_Core the toggle is marked "(not installed)".