MGame.CreateUI C# (CSharp) Method

CreateUI() private method

private CreateUI ( ) : void
return void
    private void CreateUI()
    {
        hudLayer.AddChild(_dnaLabel = new FLabel("Cubano", "0&"));
        _dnaLabel.anchorX = 1.0f;
        _dnaLabel.anchorY = 1.0f;
        _dnaLabel.x = Futile.screen.halfWidth - 3.0f;
        _dnaLabel.y = Futile.screen.halfHeight - 3.0f;

        hudLayer.AddChild(_beastLabel = new FLabel("Cubano", "30/80 BEASTS"));
        _beastLabel.scale = 0.5f;
        _beastLabel.anchorX = 1.0f;
        _beastLabel.anchorY = 0.0f;
        _beastLabel.x = Futile.screen.halfWidth - 4.0f;
        _beastLabel.y = -Futile.screen.halfHeight + 3.0f + 18.0f;

        hudLayer.AddChild(_evolutionLabel = new FLabel("Cubano", "4/100 EVOLUTIONS"));
        _evolutionLabel.scale = 0.5f;
        _evolutionLabel.anchorX = 1.0f;
        _evolutionLabel.anchorY = 0.0f;
        _evolutionLabel.x = Futile.screen.halfWidth - 4.0f;
        _evolutionLabel.y = -Futile.screen.halfHeight + 3.0f;

        _statViews = new MStatView[_human.stats.Length];

        for(int s = 0; s<_human.stats.Length; s++)
        {
            MStatView statView = new MStatView(_human.stats[s]);
            hudLayer.AddChild(statView);
            statView.x = Futile.screen.halfWidth - 63.0f;
            statView.y = Futile.screen.halfHeight - 100.0f - s*75.0f;
            _statViews[s] = statView;
        }

        _playerLabels = new FLabel[_players.Count];

        for(int p = 0; p<_players.Count; p++)
        {
            FLabel playerLabel = new FLabel("Cubano", "TEST");

            playerLabel.anchorX = 0.0f;
            playerLabel.anchorY = 0.0f;
            playerLabel.scale = 0.5f;
            playerLabel.x = -Futile.screen.halfWidth + 4.0f;
            playerLabel.y = -Futile.screen.halfHeight + 3.0f + 18.0f*p;
            hudLayer.AddChild(playerLabel);

            _playerLabels[p] = playerLabel;
        }
    }