Example #1
0
            public Country()
            {
                DynamicFont     font = new DynamicFont();
                DynamicFontData data = new DynamicFontData();

                data.SetFontPath("res://Fonts/good times rg.ttf");
                font.SetFontData(data);
                font.Size      = 20;
                font.UseFilter = true;

                numberOfTroopsTxt.RectSize = new Vector2(30, 30);
                numberOfTroopsTxt.AddFontOverride("normal_font", font);
                numberOfTroopsTxt.PushAlign(RichTextLabel.Align.Center);

                numberOfTroops.Texture = texture;
                owner  = null;
                troops = 0;
            }