You are viewing a potentially older version of this package. View all versions.
nickklmao-REPOConfig-1.1.0 icon

REPOConfig

Edit mod configs in-game!

Date uploaded a day ago
Version 1.1.0
Download link nickklmao-REPOConfig-1.1.0.zip
Downloads 11524
Dependency string nickklmao-REPOConfig-1.1.0

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
nickklmao-MenuLib-1.0.0 icon
nickklmao-MenuLib

A library for creating UI!

Preferred version: 1.0.0

README

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:

  1. The ConfigEntry is of type bool, int, or float
  2. The field/property is static OR it's instanced under your entry class (EntryClass : BaseUnityPlugin)

If you've referenced an older version of this mod, the attribute is currently obselete and won't do anything.
The proper way to set up ranges can be done by using AcceptableValueRange when defining your config entry:

floatEntry = Config.Bind("General", "Float Entry", 2f, new ConfigDescription(null, new AcceptableValueRange<float>(2.5f, 10.5f)));
intEntry = Config.Bind("General", "Int Entry", 2, new ConfigDescription(null, new AcceptableValueRange<int>(0, 100)));

Note

  • Some mods may not have immediate support

CHANGELOG

v1.1.1

  • Fixed saved changes, it wasn't working properly :sad:

v1.1.0

  • Added save changes button
  • Moved reset button to the bottom
  • Added snapping for the bar indicator
  • Fixed spacing between settings
  • Fixed text scaling
  • Fixed bar indicator from getting stuck when not hovering
  • Updated README for developers
  • Code refactoring
    • This now runs of MenuLib

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