-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues with "Out Of Balls!" dialog #72
Comments
@amanda-phet If you have any requests for how you'd like this dialog to look, let me know. I'm going to take a stab at it. Nothing fancy, I'll just make it look respectable and handle i18n properly. |
I find it a little odd that this dialog is triggered by some maximum number of balls being reached in 1 bin, versus some maximum number of balls being dispensed from the hopper. Since it's such a large number, maybe not worth worrying about. But @amanda-phet and @ariel-phet let me know if you have an opinion on this aspect of it. |
Also wondering why the Play button is still enabled if we're "out of balls"? If I close the dialog and press the Play button, the dialog immediate pops up again. Shouldn't the Play button be disabled until either the eraser button or Reset All button is pressed? |
Hmmm... This dialog appears only in the Lab screen, where the max is 9999 balls (unlikely to be reached). If doesn't appear in the Intro screen, where the max is 100 balls (likely to be reached), and the Play button is simply disabled when the max is reached. @amanda-phet Why does one screen need this dialog, while the other does not? |
Not sure why this is done in LabScreenView when the dialog is displayed: 157 // sets the play button to active.
158 playPanel.setPlayButtonVisible(); Why would we want to make the Play button active when we've reached the max? |
The Play button now disables when the max number of balls is reached, and is enabled only after pressing eraser or Reset All button (similar to Intro screen). |
So... The remaining design questions are:
|
I discussed questions 1, 2 and 3 above with @ariel-phet. All of those had been discussed in design meetings, and the current implementation is what is desired. So @amanda-phet, all I need is the answer to 4: Is the revised Dialog acceptable? ... as shown in #72 (comment). |
|
Thanks @amanda-phet. Closing. |
In the above commit I removed a workaround that was necessary because of phetsims/joist#346. @pixelzoom wanted to let you know in case you want to review. I removed the Panel but kept the spacing the same to match the look of the deployed version. |
Since this sim is likely to be published before I return from vacation, it's probably best to have @andrea-phet or @jbphet review the changes. |
Looks good, closing. |
In the Lab screen, when you reach a maximum number (currently 9999) of balls in any one bin, this ugly dialog pops up:
And it fails stringTest=long:
The text was updated successfully, but these errors were encountered: