AinaVT / LethalConfig

A mod configuration menu for Lethal Company
https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/
GNU General Public License v3.0
15 stars 6 forks source link

Add methods for mods to request skipping auto generation of specific entries or sections #7

Closed Rune580 closed 9 months ago

Rune580 commented 9 months ago

Full disclosure, our mod LethalEmotesAPI has a specific section called "No Touch" where we store stuff we don't want users to modify manually. The auto generation feature is very nice, but we needed the ability to hide that section from users.

This PR adds a method called SkipAutoGenFor to the LethalConfigManager class with 2 overloads, the first for skipping sections in the config, the second for skipping specific config entries. I've done light testing with both overloads to verify that they work in skipping them.

Current behavior: image

New behavior: image

Rune580 commented 9 months ago

Added to readme, let me know if you need any other changes