You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have rules that depend on the enabled state of generated/defined types.
For example, using boolean conditions with the field "ruleCondition" to enable a rule configuration:
{
"rules": [
{
"id": "shaders",
"type": "DEFINED",
"caption": "Type of optimizations: %s",
"tooltip": "Enable Sodium optimizations (Most performant) or Optifine (Better shader tunning)?",
"options": [
{
"id": "sodiumId",
"caption": "Sodium",
"directories": [ "modsSodium" ]
},
{
"id": "optifineId",
"caption": "Optifine",
"directories": [ "modsOptifine" ],
"isDefault": false
}
]
},
{
"id": "SodiumOnlyOptimizationsId",
"type": "GENERATED",
"caption": "Sodium only optimizations",
"tooltip": "Enable other optimization mods that are not compatible with optine",
"directories": [ "sodiumCompatibleOnlyMods" ],
"ruleCondition": "sodiumId"
},
{
"id": "SodiumOptimizationMod43AddonsId",
"type": "GENERATED",
"caption": "Configure mod 43's Addons",
"tooltip": "Choose what addons are enabled for mod 43 (only compatible with Sodium)",
"directories": [ "sodiumMod43Addons" ],
"ruleCondition": "SodiumOnlyOptimizationsId:modid43"
}
The first rule (DEFINED) has two options, either Sodium or Optifine.
When choosing Sodium, the user then could see a new button with sodium only mods (rule with id SodiumOnlyOptimizationsId).
When enabling a specific mod (modid43, in the example), the user could then see another button for configuring modid43's addons.
PS: Really nice work on this mod!
The text was updated successfully, but these errors were encountered:
It would be nice to have rules that depend on the enabled state of generated/defined types.
For example, using boolean conditions with the field "ruleCondition" to enable a rule configuration:
The first rule (DEFINED) has two options, either Sodium or Optifine.
When choosing Sodium, the user then could see a new button with sodium only mods (rule with id SodiumOnlyOptimizationsId).
When enabling a specific mod (modid43, in the example), the user could then see another button for configuring modid43's addons.
PS: Really nice work on this mod!
The text was updated successfully, but these errors were encountered: