The-Fireplace-Minecraft-Mods / Fireplace-Lib

A library of common functionality used by my mods, in one place for easier maintenance and faster updates.
https://www.curseforge.com/minecraft/mc-mods/fireplace-lib
MIT License
3 stars 6 forks source link

Better multi-dependency support for Config GUI options #36

Open The-Fireplace opened 2 years ago

The-Fireplace commented 2 years ago

Is your feature request related to a problem? Please describe. As a developer, it is limiting to have multiple dependencies forced to be an AND condition. Ideally, I want to have conditions like (A = ? and B = ?) or (C = ?)

Describe the solution you'd like Create new addDependency functions that take multiple lists of options as parameters. One function to take AND between settings within a group and OR between groups, and another function that does OR between settings within a group and AND between groups.