private void refresh_unit_counts() { bool maxed = Unit_Count == Total_Units; Units_Left.text = (Total_Units - Unit_Count).ToString(); Units_Selected.text = (Unit_Count + Other_Units).ToString(); Units_Total.text = (Total_Units + Other_Units).ToString(); Units_Left.SetColor(Global.Content, maxed ? "Grey" : "Blue"); Units_Selected.SetColor(Global.Content, maxed ? "Green" : "Blue"); Units_Total.SetColor(Global.Content, maxed ? "Green" : "Blue"); }
protected override void draw_window(SpriteBatch sprite_batch) { Vector2 offset = this.loc + draw_vector(); base.draw_window(sprite_batch); Unit_Header.draw(sprite_batch, -offset); // Labels Pick_Label.draw(sprite_batch, -offset); More_Units_Label.draw(sprite_batch, -offset); Slash_Label.draw(sprite_batch, -offset); // Data Units_Left.draw(sprite_batch, -offset); Units_Selected.draw(sprite_batch, -offset); Units_Total.draw(sprite_batch, -offset); }