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
config: Add capability to disable/hide config options (#594)
This adds two optional properties to config options, `disabled` and
`hidden`, that can access the values of other config options in the
config group and programmatically be hidden or disabled as other config
options change. Essentially, this allows the ability to create "child"
config options that will only appear or only be modifiable if their
"parent" is set a certain way.
I originally had a stronger use case for this with some FRU p4 stuff I
was working on, but I figured out an alternative way to do it without
needing configs. I was going to shelve this, but someone in discord
recently requested an option to have relative (vs. true) directions
called out for P3 Ultimate Relativity, so there is at least a potential
use for this now.
Some completely made up mockups below to illustrate:
Parent Strat is `none`, so both sub-options are hidden:

Parent strat set; both sub-options visible; but checkbox is false, so
the final sub-option is disabled:

Checkbox now true, so the final sub-option is enabled:

0 commit comments