nickklmao-REPOConfig icon

REPOConfig

Edit mod configs in-game!

Last updated 2 hours ago
Total downloads 195
Total rating 0 
Categories Mods Libraries
Dependency string nickklmao-REPOConfig-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

REPO Config

Edit mod configs in-game!

For Developers:

Click To Expand

This mod only captures public static ConfigEntry fields/properties that are of type bool and int.

  • float entries technically work but they'll be rounded to an integer (at least for right now)

By default, numerical entries are capped between -500 to 500. If you want a customize this you can use the REPOConfigEntry attribute.

//bools can only have a custom name
[REPOConfigEntry("Enable")]
public static ConfigEntry<bool> toggle;

//ints can have a custom min/max
[REPOConfigEntry("Starting HP", min: 1, max: 100)]
public static ConfigEntry<int> startingHP;

//ints can also have a prefix/postfix for their label        
[REPOConfigEntry("USD", min: 1, max: 100, prefix:"$", postfix:"")]
public static ConfigEntry<int> money;

//ints can also display words instead of numbers
[REPOConfigEntry("Gamemode", "Creative", "Survival", "Spectator")]
public static ConfigEntry<int> gamemode;

Note

  • This mod is client-sided
  • Some mods may not have support immediately