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
In #154, we've decided to implement an Options dialog. It will be accessed like the About dialog (from the PhET menu) and have look and behavior similar to the About dialog.
The first thing I did was to look at joist.AboutDialog, to see how it might be generalized. The first thing I noticed is that AboutDialog extends ScreenView, which seems very odd. Is there a reason why AboutDialog must extend ScreenView? What should the type hierarchy for dialogs really look like?
Assigning this to @samreid since he is the original author of AboutDialog.
The text was updated successfully, but these errors were encountered:
As far as I recall (and my memory is a bit fuzzy here), I think AboutDialog extended ScreenView so that it would be guaranteed to be centered and scaled perfectly, and appear in front of everything else in the sim. Perhaps now that the rest of the sim infrastructure/transforms/input/etc has stabilized it would be possible to implement the about dialog as a Node (or Panel) instead of a ScreenView (in my opinion that would be a good step to take if possible).
AboutDialog relies on ScreenView for scaling, and to do positioning (via layoutBounds). Trying to generalize AboutDialog into something that could be generally used for dialogs turned into a major project, and made it clear (to me anyway) that it's not a good approach. So I recommend that we (mostly) ignore the AboutDialog implementation, and come up with a new implementation of dialogs.
Closing this issue, since my question is now answered.
In #154, we've decided to implement an Options dialog. It will be accessed like the About dialog (from the PhET menu) and have look and behavior similar to the About dialog.
The first thing I did was to look at joist.AboutDialog, to see how it might be generalized. The first thing I noticed is that AboutDialog extends ScreenView, which seems very odd. Is there a reason why AboutDialog must extend ScreenView? What should the type hierarchy for dialogs really look like?
Assigning this to @samreid since he is the original author of AboutDialog.
The text was updated successfully, but these errors were encountered: