// Copyright 2018-2025, University of Colorado Boulder
/**
 * Display a score as 'Score: * * * *', where '*' are stars, which may be fully or partially filled in.
 * See specification in https://github.com/phetsims/vegas/issues/59.
 *
 * @author Chris Malley (PixelZoom, Inc.)
 */
import { string_vegas_score_StringProperty } from './strings/score.js';
import '../../globals.js';
import optionize from '../../phet-core/js/optionize.js';
import StatusBar from '../../scenery-phet/js/StatusBar.js';
import HBox from '../../scenery/js/layout/nodes/HBox.js';
import Text from '../../scenery/js/nodes/Text.js';
import ScoreDisplayStars from './ScoreDisplayStars.js';
export default class ScoreDisplayLabeledStars extends HBox {
    constructor(scoreProperty, providedOptions) {
        const options = optionize()({
            // SelfOptions
            font: StatusBar.DEFAULT_FONT,
            textFill: 'black',
            spacing: 5
        }, providedOptions);
        const textNode = new Text(string_vegas_score_StringProperty, {
            font: options.font,
            fill: options.textFill
        });
        const scoreDisplay = new ScoreDisplayStars(scoreProperty, options);
        options.children = [textNode, scoreDisplay];
        super(options);
        this.disposeScoreDisplayLabeledStars = () => {
            textNode.dispose();
            scoreDisplay.dispose();
        };
    }
    dispose() {
        this.disposeScoreDisplayLabeledStars();
        super.dispose();
    }
}
//# sourceMappingURL=ScoreDisplayLabeledStars.js.map