RewardDialog¶
Overview¶
A dialog that the client displays when the user gets a specific number of stars. See specification in https://github.com/phetsims/vegas/issues/59.
@author Andrea Lin @author Chris Malley (PixelZoom, Inc.)
Class RewardDialog¶
Constructor¶
new RewardDialog( score : number | TReadOnlyProperty<number>, providedOptions? : RewardDialogOptions )¶
Instance Methods¶
Type RewardDialogOptions¶
- phetGirlScale?: number
- buttonsFont?: Font
- buttonsWidth?: number
- buttonsYSpacing?: number
- keepGoingButtonListener?: PushButtonListener
- newLevelButtonListener?: PushButtonListener
- scoreDisplayOptions?: ScoreDisplayNumberAndStarOptions
- & StrictOmit<DialogOptions, "focusOnShowNode">
Source Code¶
See the source for RewardDialog.ts in the vegas repository.