
R.E.P.O.
You are viewing a potentially older version of this package. View Latest Version

Edit mod configs in-game!
In order for your ConfigEntry to be listed under your mod, it must meet this criteria:
bool, int, or floatBy default, numerical entries have a range based on their default value:
min = -default * 2
max = default * 2
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;