<commit_before>// Group all our UI classes here (at least, for now)
// Holds all our in-game UI elements


var Hud = {
    styleNormal: {font:"32px myKaiti", fill:"#ffffff"},
    styleButton: {font:"32px myKaiti", fill:"#000000"},

    createNew: function() {

        /*global MainGame*/
        var hud = MainGame.game.add.group();
        var hudInputPriority = 2;

        hud.name = "HUD"; // Useful for debugging

        // Group1: Top Stats
        var topGroup=MainGame.game.add.group();
        topGroup.name="topGroup";
        hud.addChild(topGroup);

        //      top bar bg
        var topBg = topGroup.create(0,0,'topBar');

        //      global vars
        var topText = MainGame.game.make.text(140, 0, '', Hud.styleNormal);
        topGroup.addChild(topText);

        //      Coalition Flag
        topGroup.coalitionFlag = CoalitionFlag.createNew();
        //topGroup.addChild(topGroup.coalitionFlag);

        // Have the top-bar text update itself every half second
        topText.text = MainGame.global.toString() + ' Pop:' + MainGame.population.count();
        MainGame.game.time.events.loop(500, function() {
            topText.text = MainGame.global.toString() + ' Pop:' + MainGame.population.count();
        }, topText);

        // Exit / Pause button
        var btnExit = MainGame.game.make.button(0, 0, 'small_generic_button', null, MainGame, 0, 1, 2, 2);
        btnExit.name = 'Exit Button';
        btnExit.input.priorityID = hudInputPriority;
        hud.addChild(btnExit);
<commit_msg>uncommented important line because I am dumb<commit_after>// Group all our UI classes here (at least, for now)
// Holds all our in-game UI elements


var Hud = {
    styleNormal: {font:"32px myKaiti", fill:"#ffffff"},
    styleButton: {font:"32px myKaiti", fill:"#000000"},

    createNew: function() {

        /*global MainGame*/
        var hud = MainGame.game.add.group();
        var hudInputPriority = 2;

        hud.name = "HUD"; // Useful for debugging

        // Group1: Top Stats
        var topGroup=MainGame.game.add.group();
        topGroup.name="topGroup";
        hud.addChild(topGroup);

        //      top bar bg
        var topBg = topGroup.create(0,0,'topBar');

        //      global vars
        var topText = MainGame.game.make.text(140, 0, '', Hud.styleNormal);
        topGroup.addChild(topText);

        //      Coalition Flag
        topGroup.coalitionFlag = CoalitionFlag.createNew();
        topGroup.addChild(topGroup.coalitionFlag);

        // Have the top-bar text update itself every half second
        topText.text = MainGame.global.toString() + ' Pop:' + MainGame.population.count();
        MainGame.game.time.events.loop(500, function() {
            topText.text = MainGame.global.toString() + ' Pop:' + MainGame.population.count();
        }, topText);

        // Exit / Pause button
        var btnExit = MainGame.game.make.button(0, 0, 'small_generic_button', null, MainGame, 0, 1, 2, 2);
        btnExit.name = 'Exit Button';
        btnExit.input.priorityID = hudInputPriority;
        hud.addChild(btnExit);

{'fraction_non_alphanumeric': 0.1326431575541896, 'fraction_numerical': 0.017470074409576188, 'mean_word_length': 2.3792349726775956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '540848', 'n_tokens_mistral': 1002, 'n_tokens_neox': 931, 'n_words': 222}