phetsims / center-and-variability

"Center and Variability" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
1 stars 2 forks source link

New PhET-iO client requests #119

Closed amanda-phet closed 2 years ago

amanda-phet commented 2 years ago

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 own inputEnabledProperty, 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.

amanda-phet commented 2 years ago

@chrisklus and I discussed these and (2) and (3) are doable, and we decided to have the soccer ball change appearance when inputEnabledProperty is false. He is also going to instrument the bar at the top to address (4).

(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):

image

amanda-phet commented 2 years ago

Here is the asset:

ball_disabled

This should be the correct size.

amanda-phet commented 2 years ago

Here is a slightly lighter ball soccerball_not pickable

chrisklus commented 2 years ago

This issue is complete, ready for review by @amanda-phet and @samreid

amanda-phet commented 2 years ago

Looks great! Thanks for making this possible. These changes are going to make the wrappers even better.

samreid commented 2 years ago

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.

chrisklus commented 2 years ago

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.

chrisklus commented 2 years ago

Oops, did not mean to close. Reopening for cherry picking.

amanda-phet commented 2 years ago

This all looks good to me!

chrisklus commented 2 years ago

@samreid and I spot-checked this for https://github.com/phetsims/center-and-variability/issues/122, closing.

KatieWoe commented 2 years ago

Reopening for https://github.com/phetsims/qa/issues/795. I found it odd that this was not a Featured Element. Should this be revisited?

samreid commented 2 years ago

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.

amanda-phet commented 2 years ago

Correct, we haven't done any featuring yet in studio. Re-closing.