protected override void initialize_sprites() { // Window Window_Img = new System_Color_Window(); Window_Img.width = this.Width; Window_Img.height = this.Height + 12; Window_Img.offset = new Vector2(0, 8); // UI Nodes refresh_nodes(); Rows = (int)Math.Ceiling(Global.battalion.actors.Count / (float)this.Columns); // Scrollbar if (Rows > this.VisibleRows) { Scrollbar = new Scroll_Bar(this.VisibleRows * this.RowSize - 16, Rows, this.VisibleRows, 0); Scrollbar.loc = this.ScrollbarLoc; Scrollbar.UpArrowClicked += Scrollbar_UpArrowClicked; Scrollbar.DownArrowClicked += Scrollbar_DownArrowClicked; } // Unit Header Unit_Header = new Pick_Units_Header(this.Width + 8); Unit_Header.loc = new Vector2(-8, -20); // Cursor Selected_Cursor = new Hand_Cursor(); Selected_Cursor.loc = cursor_loc() + new Vector2(8, 4); Selected_Cursor.tint = new Color(192, 192, 192, 255); }
protected override void initialize_sprites() { // Window Window_Img = new System_Color_Window(); Window_Img.width = this.Width; Window_Img.height = this.Height + 12; Window_Img.offset = new Vector2(0, 8); // UI Nodes refresh_nodes(); Rows = (int)Math.Ceiling(Global.battalion.actors.Count / (float)this.Columns); // Scrollbar if (Rows > this.VisibleRows) { Scrollbar = new Scroll_Bar(this.VisibleRows * this.RowSize - 16, Rows, this.VisibleRows, 0); Scrollbar.loc = this.ScrollbarLoc; Scrollbar.UpArrowClicked += Scrollbar_UpArrowClicked; Scrollbar.DownArrowClicked += Scrollbar_DownArrowClicked; } // Unit Header Unit_Header = new Pick_Units_Header(this.Width + 8); Unit_Header.loc = new Vector2(-8, -20); // Labels Pick_Label = new TextSprite(); Pick_Label.loc = new Vector2(4, -12); Pick_Label.SetFont(Config.UI_FONT, Global.Content, "White"); Pick_Label.text = "Pick"; More_Units_Label = new TextSprite(); More_Units_Label.loc = new Vector2(44, -12); More_Units_Label.SetFont(Config.UI_FONT, Global.Content, "White"); More_Units_Label.text = "more units"; Slash_Label = new TextSprite(); Slash_Label.loc = new Vector2(108, -12); Slash_Label.SetFont(Config.UI_FONT, Global.Content, "White"); Slash_Label.text = "/"; // Data Units_Left = new RightAdjustedText(); Units_Left.loc = new Vector2(40, -12); Units_Left.SetFont(Config.UI_FONT, Global.Content, "Blue"); Units_Selected = new RightAdjustedText(); Units_Selected.loc = new Vector2(108, -12); Units_Selected.SetFont(Config.UI_FONT, Global.Content, "Blue"); Units_Total = new RightAdjustedText(); Units_Total.loc = new Vector2(132, -12); Units_Total.SetFont(Config.UI_FONT, Global.Content, "Blue"); }