Quasimorph

Quasimorph

54 ratings
Mod Configuration Menu
   
Award
Favorite
Favorited
Unfavorite
Compatible Version: 0.9.1, 0.9
Type: Utility
Tags: 0.9.5, 0.9.2
File Size
Posted
Updated
2.105 MB
24 Apr @ 8:26am
27 Jul @ 3:27pm
10 Change Notes ( view )

Subscribe to download
Mod Configuration Menu

Description
Quasimorph Mod Configuration Menu

Mod Configuration Menu (MCM) allows the player to configure mods through the game's native UI.

It adds a new button in the Main Menu called "Mods", where you will be able to configure any mod that has compatibility with it.

NOTE: This mod is still in development. It could stop working or a mod implementing it could cause it to stop working. if this happens please let me know in this BUGS thread.

Compatibility

This mod should be compatible with any mod.

For Developers

Adding MCM support to your mod is fairly easy.
  1. Register using its API call
    ModConfigMenuAPI.RegisterModConfig(modName, configFilePath, onConfigSaved)
    1. modName parameter is used for the label and internal identification.
    2. configFilePath must be the full path to the config file including the .ini extension.
    3. onConfigSaved is a callback triggered when the user stores the config for your mod. The config is sent as Dictionary<string, object>.
  2. The mod will create a file located in the same folder as your config. This file will be handled by MCM, but can be edited manually by the user with no issue. The name will be your config file name ended with "_mcm.ini".
  3. Read your updated config file whenever you want or use the callback to update the config at your liking.

In newer versions of the MCM, you can omit the .ini file and register using a list of properties. The constructors for them will help you setup everything you need.

If you need any kind of help with it, you can contact me via Quasimorph's discord server, in the modding channel, or in the post for MCM under the modding forum.

NOTE: To recover your MCM controlled file name, call
ModConfigMenuAPI.GetNameForConfigFile(fileName)

Support

If you enjoy what I do and want me to keep doing it, you can check my Ko-Fi[ko-fi.com] page.
I accept suggestions or we can talk if you wish a for a specific mod.



Credits
  • Crynano: Design, Programming and Implementation.
  • Special thanks to Raigir, NBK_RedSpy, Lynchantiure and Badryuner for their feedback.
  • Thanks to Sergey for the Workshop Icon!

Resources
  • mmaletin: Color Picker[github.com]
  • Magnum Scriptum: Original UI, Sprites and Color Palette.
Popular Discussions View All (1)
0
21 May @ 2:32pm
PINNED: BUGS
Crynano
5 Comments
hudleym 15 hours ago 
I do not see any mods in the mod menu why?
Crynano  [author] 8 Jul @ 9:14am 
The mod has to explicitly use it, otherwise it will not show up.

There are only a few mods that currently use MCM.
Mostly Arzumata's and a few of mine.
Evil-Fox 8 Jul @ 4:45am 
I most be dumb, but why aren't any mods showing up in the mod menu.
Crynano  [author] 19 Jun @ 3:28am 
I´ve released two updates, an important one and a small one fixing a bug.
As a user your experience will be the same, I´ve added stuff for other modders.
Neosuduno 18 Jun @ 10:40pm 
What is with the mod constantly updating on automatic? It has been doing that all day.