phetsims / vegas

Reusable game components for PhET simulations.
MIT License
1 stars 4 forks source link

Should `?gameLevels` control what is in the game Info dialog? #104

Closed amanda-phet closed 2 years ago

amanda-phet commented 2 years ago

Mentioned in https://github.com/phetsims/number-play/issues/161 , but this is relevant to Number Play, Equality Explorer, and Fourier Making Waves.

When we use the gameLevels query parameter, the info dialog doesn't change. I understand why that's probably the case, but it might be nice to consider updating that to reflect only the visible levels, or at least document that we want all of the levels to appear in the info button regardless of which are visible as level selection buttons.

pixelzoom commented 2 years ago

Yes, the Info dialog should be adjusted, so that it shows only relevant levels.

Unfortunately there is currently no support for this in common-code. Long-term we could consider adding a "Game Info" dialog to vegas, as well as a "Level Selection button group". And those things could presumably display things that are relevant only to the levels that appear in ?gameLevels.

In the meantime, this needs to be addressed in each individual sim. So please create issues in the individual sims.

There are also some general design question here...

screenshot_1659 screenshot_1658
amanda-phet commented 2 years ago

These are all questions I've had too, @pixelzoom ! I wanted the issue in this repo so we could decide if we want to make changes at all, and then figure out if it will be sim-specific changes or if we want to consider a common code solution. I would prefer to have a global decision first before making any changes to individual sims.

pixelzoom commented 2 years ago

... In the meantime, this needs to be addressed in each individual sim. So please create issues in the individual sims.

I created sim-specific issues, linked above. They are labeled as "on-hold" until general decisions have been made.

amanda-phet commented 2 years ago

Discussed 4/21/22:

Design ideas:

Decisions:

pixelzoom commented 2 years ago
  • Can move forward with the game level dialog having a design that only shows relevant level info

I think this makes sense to do now for Fourier and EqEx, and is relatively easy. @arouinfar @amanda-phet OK to proceed?

arouinfar commented 2 years ago

I think this makes sense to do now for Fourier and EqEx, and is relatively easy. @arouinfar @amanda-phet OK to proceed?

Yes, sounds good to me.

amanda-phet commented 2 years ago

That sounds great to do this for EqEx.

amanda-phet commented 2 years ago

@pixelzoom if you create new issues for this for Fourier and EqEx I think this one can be closed.

pixelzoom commented 2 years ago

Issues were created on 4/19/2022 for Fourier and EqEx, linked above.

Closing.

pixelzoom commented 2 years ago

Reopening.

In https://github.com/phetsims/vegas/issues/104#issuecomment-1102863379, I noted:

Unfortunately there is currently no support for this in common-code. Long-term we could consider adding a "Game Info" dialog to vegas, as well as a "Level Selection button group". And those things could presumably display things that are relevant only to the levels that appear in ?gameLevels.

In https://github.com/phetsims/vegas/issues/104#issuecomment-1105700262, design meeting notes say:

Since so many games are different, we might need a flexible solution that is sim-specific

I'm not sure I agree with that. The level-selection UI and Info dialog are 2 things that do seem to be consistent (or could be consistent, if they're currently not) for all games that I'm familiar with.

Let's move ahead with this change for Number Play, and keep it in mind for future games!

So I'm not clear on where things landed with common-code support. If common-code support is desired, we should either leave this issue open, or create new issues. If there feeling is that there's no need for common-code support (or it's too costly), then this issue can be closed.

amanda-phet commented 2 years ago

Discussion May 12, 2022

Decision:

Priority: maybe have this done by mid-June to be used in NP, but if not that sim can use a sim-specific approach. Priority is lower than other current work for @pixelzoom .

pixelzoom commented 2 years ago

I've moved specific work to https://github.com/phetsims/vegas/issues/107 and https://github.com/phetsims/vegas/issues/108. Closing this issue.