-
Notifications
You must be signed in to change notification settings - Fork 2
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
New PhET-iO client requests #119
Comments
@chrisklus and I discussed these and (2) and (3) are doable, and we decided to have the soccer ball change appearance when (1) The prompt we wanted to write for this can be achieved with the sim as it is, and the Spread screen will fully address the questions we had in mind, so I've decided to scrap this from the list. Here is a mockup of (3): |
This issue is complete, ready for review by @amanda-phet and @samreid |
Looks great! Thanks for making this possible. These changes are going to make the wrappers even better. |
Would this simplify the boolean logic a bit? I haven't tested it: // if input is disabled and the ball is in the play area, show the darker version
if ( options.objectViewType === CAVObjectType.SOCCER_BALL && value !== null ) {
soccerBallDarkNode.visible = !inputEnabled;
soccerBallNode.visible = inputEnabled;
} Other than that, the code review looks good. |
Thanks @samreid - the else was needed for when switching from input disabled -> enabled, but i used your idea to improve what was there like this: if ( options.objectViewType === CAVObjectType.SOCCER_BALL ) {
// if input is disabled and the ball is in the play area, show the darker version
const showDisabledSoccerBall = !inputEnabled && value !== null;
soccerBallDarkNode.visible = showDisabledSoccerBall;
soccerBallNode.visible = !showDisabledSoccerBall;
} Thanks all for reviewing, closing. |
Oops, did not mean to close. Reopening for cherry picking. |
This all looks good to me! |
Reopening for phetsims/qa#795. I found it odd that this was not a Featured Element. Should this be revisited? |
As far as I know, nothing is intended to be featured for this milestone, and featured elements will be designed by @amanda-phet for 1.1. |
Correct, we haven't done any featuring yet in studio. Re-closing. |
In a discussion with instructional designer partners, the following requests came out of the meeting:
(1) Can we limit the kicker to be just one person (so, just the artwork for player01 for all 15 kicks)For (1), I think this is straightforward. We just want to use the same artwork for each kick. If we can provide a list of all 15 players and the client selects the one they want, I think that would be nice. But if it's not possible, we can just use player01 as the single player.
(2) This design doesn't seem possible without (3). But as far as the implementation goes, I am thinking that in the tree, each
soccerBallNode_x
would have its owninputEnabledProperty
, rather than the group having that property. When that is checked, we need to change the appearance as well (or provide a way to adjust the opacity?).(3) I added this because I am concerned about making some balls movable and others not movable without changing their appearance. I think we need a design discussion about this. If we make them semi-transparent, they may look like they "are not part of the data set" since that's what we're doing for the ball about to be kicked. However, this seems like a straightforward approach. Another idea is to use a different png file for any "frozen" balls, such as a soccer ball that has inverted colors, or looks more flat (doesn't have shading), or some other visual difference that doesn't use reduced opacity.
The text was updated successfully, but these errors were encountered: