Skip to content

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

import { RewardDialog } from 'scenerystack/sim';

Constructor

new RewardDialog( score : number | TReadOnlyProperty<number>, providedOptions? : RewardDialogOptions )

Instance Methods

Type RewardDialogOptions

import type { RewardDialogOptions } from 'scenerystack/sim';

Source Code

See the source for RewardDialog.ts in the vegas repository.