repairing buildings mostly complete

This commit is contained in:
Alli
2010-01-02 17:20:08 +13:00
parent a54909cdaf
commit 3b53f692df
4 changed files with 60 additions and 4 deletions

View File

@@ -84,6 +84,17 @@ namespace OpenRa.Game.Graphics
DrawBandBox();
foreach(var a in Game.world.Actors.Where(b => b.Owner == Game.LocalPlayer && b.traits.Contains<Building>() && b.traits.Get<Building>().IsRepairing()))
{
var bounds = a.GetBounds(true);
var repairImages = new Animation("select");
repairImages.PlayRepeating("repair");
spriteRenderer.DrawSprite(repairImages.Image, new float2(.5f * (bounds.Left + bounds.Right)-12, .5f * (bounds.Top + bounds.Bottom)-11), PaletteType.Chrome);
}
if (Game.controller.orderGenerator != null)
Game.controller.orderGenerator.Render();