private void initialize_images() { // Face Face1 = new Face_Sprite(actor1.face_name, true); if (actor1.generic_face) { Face1.recolor_country(actor1.name_full); } Face1.expression = Face1.status_frame; Face1.phase_in(); Face1.loc = new Vector2(loc.X + SPACING / 2, loc.Y + 12 + (int)Math.Max(0, (Face1.src_rect.Height - Face1.eyes_offset.Y) - 40) / 2); Face1.mirrored = true; // Face Face2 = new Face_Sprite(actor2.face_name, true); if (actor2.generic_face) { Face2.recolor_country(actor2.name_full); } Face2.expression = Face2.status_frame; Face2.phase_in(); Face2.loc = new Vector2((int)loc.X + SPACING + SPACING / 2, loc.Y + 12 + (int)Math.Max(0, (Face2.src_rect.Height - Face2.eyes_offset.Y) - 40) / 2); Grey_Cursor = new Hand_Cursor(); Grey_Cursor.visible = false; Grey_Cursor.draw_offset = new Vector2(-12, 0); Window1 = new System_Color_Window(); Window1.width = SPACING; Window1.height = Num * 16 + 16; Window1.loc = loc; Window2 = new System_Color_Window(); Window2.width = SPACING; Window2.height = Num * 16 + 16; Window2.loc = loc + new Vector2(SPACING, 0); Equipped_Tag1 = new TextSprite(); Equipped_Tag1.SetFont(Config.UI_FONT, Global.Content, "White"); Equipped_Tag1.text = "$"; Equipped_Tag2 = new TextSprite(); Equipped_Tag2.SetFont(Config.UI_FONT, Global.Content, "White"); Equipped_Tag2.text = "$"; Glowing_Line = new Unit_Line_Cursor(SPACING - 16); }
internal PrepItemsUnitUINode(string name) { Name = new TextSprite(); Name.draw_offset = new Vector2(16, 0); Name.SetFont(Config.UI_FONT, Global.Content, "White"); Name.text = name; // Map Sprite MapSprite = new Character_Sprite(); MapSprite.facing_count = 3; MapSprite.frame_count = 3; MapSprite.draw_offset = new Vector2(8, 16); MapSprite.mirrored = Constants.Team.flipped_map_sprite(Constants.Team.PLAYER_TEAM); GlowingLine = new Unit_Line_Cursor(64); GlowingLine.draw_offset = new Vector2(0, 8); GlowingLine.visible = false; }
protected virtual void initialize(Vector2 loc, int width, List <string> strs) { initialize_window(); Grey_Cursor = new Hand_Cursor(); Grey_Cursor.tint = new Color(192, 192, 192, 255); Grey_Cursor.draw_offset = new Vector2(-16, 0); //Hand_Texture = Global.Content.Load<Texture2D>(@"Graphics/Windowskins/Menu_Hand"); this.loc = loc; Width = width; if (Window_Img != null) { Window_Img.width = Width; } if (Glowing_Line == null) { Glowing_Line = new Unit_Line_Cursor(column_width); Glowing_Line.color_override = Window_Img.color_override; } set_items(strs); update(false); }