Skip to content

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

import { ScoreDisplayNumberAndStar } from 'scenerystack/vegas';

Constructor

new ScoreDisplayNumberAndStar( scoreProperty : TReadOnlyProperty<number>, providedOptions? : ScoreDisplayNumberAndStarOptions )

Instance Methods

dispose()

Type ScoreDisplayNumberAndStarOptions

import type { ScoreDisplayNumberAndStarOptions } from 'scenerystack/vegas';

Source Code

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