ScoreDisplayNumberAndStar¶
Under Construction
This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/vegas/blob/main/js/ScoreDisplayNumberAndStar.ts for the most up-to-date information.
Overview¶
Display a score as 'N ', where N is a number and '' is a star. If N is 0, it is hidden and the star is grayed out. See specification in https://github.com/phetsims/vegas/issues/59.
@author Andrea Lin
Class ScoreDisplayNumberAndStar¶
Constructor¶
new ScoreDisplayNumberAndStar( scoreProperty : TReadOnlyProperty<number>, providedOptions? : ScoreDisplayNumberAndStarOptions )¶
Instance Methods¶
dispose()¶
Type ScoreDisplayNumberAndStarOptions¶
- font?: Font
- textFill?: TColor
- scoreDecimalPlaces?: number
- starNodeOptions?: StarNodeOptions
- & StrictOmit<HBoxOptions, "children">
Source Code¶
See the source for ScoreDisplayNumberAndStar.ts in the vegas repository.