import '../../globals.js';
import optionize from '../../phet-core/js/optionize.js';
import StatusBar from '../../scenery-phet/js/StatusBar.js';
import { HBox, Text } from '../../scenery/js/imports.js';
import ScoreDisplayStars from './ScoreDisplayStars.js';
import vegas from './vegas.js';
import VegasStrings from './VegasStrings.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(VegasStrings.scoreStringProperty, {
            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();
    }
}
vegas.register('ScoreDisplayLabeledStars', ScoreDisplayLabeledStars);
//# sourceMappingURL=ScoreDisplayLabeledStars.js.map