You are viewing a potentially older version of this package.
View all versions.

Date uploaded | a day ago |
Version | 1.0.2 |
Download link | nickklmao-REPOConfig-1.0.2.zip |
Downloads | 5379 |
Dependency string | nickklmao-REPOConfig-1.0.2 |
This mod requires the following mods to function

BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
REPO Config
Edit mod configs in-game!
For Developers:
Click To Expand
In order for your ConfigEntry
to be listed under your mod, it must meet this criteria:
- The ConfigEntry is of type
bool
,int
, orfloat
- The field/property is static OR it's instanced under your entry class (className : BaseUnityPlugin)
By default, numerical entries have a range based on their default value:
min = -default * 2
max = default * 2
- If the default value is 0, the range will be -10 to 10)
- If the default value is between 0 and 1, the range will be -2 to 2)
- Precision will automatically be calculated for entries without attributes
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 names instead of numbers
[REPOConfigEntry("Gamemode", "Creative", "Survival", "Spectator")]
public static ConfigEntry<int> gamemode;
//floats can have a min, max, precision (# of decimal points), prefix, postfix
[REPOConfigEntry("Speed", min: 1, max: 1000, precision: 2 postfix:" mph")]
public static ConfigEntry<float> speed;
Note
- This mod is client-sided
- Some mods may not have support immediately
CHANGELOG
v1.0.2
- Updated mod list to reflect mod names rather than assembly names
- Updated README for developers
- Added support for ConfigEntry<float>
v1.0.1
- Updated README
v1.0.0 🔥
- Initial release