Closed zepumph closed 1 year ago
This is blocking publication of RAP I believe.
Also good to tag https://github.com/phetsims/joist/issues/837
@jessegreenberg and I like:
{
customPreferences: [
{
tab: PreferencesTabs.INPUT,
createContent: ( tandem: Tandem ) => new MyContent(),
}
]
}
Lots of good progress here!
Each preferences type now has its own customPreferences
to add. We are using it in RAP to provides input preferences, and ESP and Quad for general controls.
I think we are ready to unblock https://github.com/phetsims/joist/issues/837
@jessegreenberg, can you please review and recommend next steps?
Great, thanks. I think this will support us well for now. I noticed disposal missing for a couple of components in tabs and I added them for completion though I don't think they were critical since these tabs don't appear in state (to my understanding). I also found a layout issue in the localization tab where the "Region and Culture" combobox wasn't in the right spot when it was alone in the dialog. Fixed in https://github.com/phetsims/joist/commit/b1b4e78437be9051a5801ee16dc2b46a6589bba6.
Closing this one.
Currently we have
createSimControls
which is a single node that goes onto the general tab, but on Friday @jessegreenberg and I discussed the potentential need to have sim-specfic settings that don't map into general, but rather other tabs. I wanted to prototype with an option to preferencesConfiguration like:And update the PreferencesDialog to append these into whatever tab is needed. This will immediately be helpful over in https://github.com/phetsims/ratio-and-proportion/issues/498. And likely more in the future as well.