protected override void initialize_images() { WTA1 = new Effective_WT_Arrow(); WTA2 = new Effective_WT_Arrow(); WTA1.draw_offset = new Vector2(40, 16); WTA2.draw_offset = new Vector2(56 + 16, 16); Window_Width = 56 + 72; Window_Height = 32; //Window_Width = 56 + 32; //Debug //Window_Height = 56; //Stats = new Unit_Info_Panel_Combat_Preview(); //Debug //Stats.draw_offset = new Vector2(24, 16); Item = new Item_Icon_Sprite(); Item.draw_offset = new Vector2(40, 16); TargetItem = new Item_Icon_Sprite(); TargetItem.draw_offset = new Vector2(56 + 16, 16); NAME_LOC = new Vector2(28, 0); base.initialize_images(); TargetName = new TextSprite(); //TargetName.draw_offset = new Vector2(Window_Width - 24, 32); //Debug TargetName.draw_offset = new Vector2(56 + 16, 0); TargetName.SetFont(Config.INFO_FONT, Global.Content); VsLabel = new Sprite(Global.Content.Load <Texture2D>( @"Graphics/Windowskins/Unit_Info")); VsLabel.draw_offset = new Vector2(56, 12); VsLabel.src_rect = new Rectangle(0, 64, 16, 8); }
protected virtual void initialize_images() { // Window Window = windowskin(); Window.rows = window_rows; Window.team1 = get_unit().team; Window.offset = new Vector2(0, -1); // Names Name1 = new TextSprite(); Name1.SetFont(Config.UI_FONT, Global.Content, "White"); Name2 = new TextSprite(); Name2.SetFont(Config.UI_FONT, Global.Content, "White"); Target_Weapon = new TextSprite(); Target_Weapon.SetFont(Config.UI_FONT, Global.Content, "White"); // Attack Multipliers Mult1 = new Multiplier_Img(); Mult2 = new Multiplier_Img(); // Icons Icon1 = new Item_Icon_Sprite(); Icon2 = new Item_Icon_Sprite(); // Weapon triangle arrows WTA1 = new Effective_WT_Arrow(); WTA2 = new Effective_WT_Arrow(); // Stat Labels Stat_Labels = new List <TextSprite>(); for (int i = 0; i < stat_rows; i++) { Stat_Labels.Add(new TextSprite()); Stat_Labels[i].offset = new Vector2(-28, -(4 + ((i + 1) * LINE_HEIGHT))); Stat_Labels[i].SetFont(Config.UI_FONT, Global.Content, "Yellow"); } //Stat_Labels[1].offset.X -= 3; Stat_Labels[2].offset.X -= 2; Stat_Labels[0].SetFont(Config.UI_FONT + "L", Config.UI_FONT); Stat_Labels[0].text = "HP"; Stat_Labels[1].text = "Dmg";// "Mt"; Stat_Labels[2].text = "Hit"; Stat_Labels[3].text = "Crit"; set_images(); }