public ReinforcementDetailWindow()
        {
            Window        = new System_Color_Window();
            Window.offset = new Vector2(8, 8);
            Window.width  = 136;
            Window.height = 80;

            var text = new TextSprite();

            text.SetFont(Config.UI_FONT, Global.Content, "White");
            MapSprite     = new MapSpriteUINode("", text, 48);
            MapSprite.loc = new Vector2(0, 0);

            Level     = new TextSprite();
            Level.loc = new Vector2(88, 0);
            Level.SetFont(Config.UI_FONT + "L", Global.Content, "Blue", Config.UI_FONT);
            Level.SetTextFontColor(0, "Yellow");
            Level.SetTextFontColor(2, "Blue");
            Identifier = new TextSprite(Config.UI_FONT,
                                        Global.Content, "White",
                                        new Vector2(0, 16));
            Build = new TextSprite(Config.UI_FONT,
                                   Global.Content, "Blue",
                                   new Vector2(88, 16));
            Mission = new TextSprite(Config.UI_FONT,
                                     Global.Content, "White",
                                     new Vector2(0, 32));

            Inventory     = new Unit_Info_Inventory();
            Inventory.loc = new Vector2(0, 48);
        }
示例#2
0
 protected override void initialize_images()
 {
     Affinity_Icon         = new Icon_Sprite();
     Affinity_Icon.texture = Global.Content.Load <Texture2D>(@"Graphics/Icons/Affinity Icons");
     Affinity_Icon.size    = new Vector2(16, 16);
     Inventory             = new Unit_Info_Inventory();
     Inventory.offset      = -new Vector2(32, 0);
     Stats        = new Unit_Info_Panel_Stats();
     Stats.offset = -new Vector2(96, 16);
     base.initialize_images();
 }