phetsims / vegas

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

LevelCompletedNode doesn't scale well #31

Closed pixelzoom closed 10 years ago

pixelzoom commented 10 years ago

LevelCompletedNode arranges stars in a horizontal line. If the number of challenges in a game is more than 5 or 6, this node starts to get exceptionally wide, and can exceed the width of the screen. We need an option to limit the width of the dialog, or perhaps the width of the stars.

pixelzoom commented 10 years ago

I guess one could also change option.starDiameter. But for games that have different numbers of challenges per level, that would be a pain. It would easier to specify something like options.starsMaxWidth.

pixelzoom commented 10 years ago

Never mind, I handled this on the client side by adjusting the star diameter. A bit of a pain, but probably preferable to adding yet-another options.