protected override void refresh() { base.refresh(); // //Yeti bool convoy_full = Global.game_battalions.active_convoy_is_full; Stock_Value.text = Global.game_battalions.active_convoy_data.Count.ToString(); Stock_Value.SetColor(Global.Content, convoy_full ? "Green" : "Blue"); Stock_Max.text = Global.game_battalions.active_convoy_size.ToString(); Stock_Max.SetColor(Global.Content, convoy_full ? "Green" : "Blue"); }
protected override void draw_header(SpriteBatch sprite_batch) { sprite_batch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend); Banner.draw(sprite_batch); Convoy_Text.draw(sprite_batch); Face_Bg.draw(sprite_batch); Convoy_Label.draw(sprite_batch); Stock_Banner.draw(sprite_batch); Stock_Label.draw(sprite_batch); Stock_Max.draw(sprite_batch); Stock_Slash.draw(sprite_batch); Stock_Value.draw(sprite_batch); sprite_batch.End(); Convoy_Face.draw(sprite_batch); }