ScoreDisplayNumberAndStar¶
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.