Widgetize special power bin (needs polish)

This commit is contained in:
Paul Chote
2010-04-10 16:28:29 +12:00
committed by Chris Forbes
parent c568be255a
commit 9afe3fdaa8
11 changed files with 277 additions and 124 deletions

View File

@@ -27,11 +27,11 @@ namespace OpenRA.Widgets
public string Text = "";
public string Align = "Left";
public override void Draw()
public override void Draw(World world)
{
if (!Visible)
{
base.Draw();
base.Draw(world);
return;
}
@@ -48,7 +48,7 @@ namespace OpenRA.Widgets
Game.chrome.renderer.BoldFont.DrawText(Game.chrome.rgbaRenderer, Text, position, Color.White);
Game.chrome.rgbaRenderer.Flush();
Game.chrome.renderer.Device.DisableScissor();
base.Draw();
base.Draw(world);
}
}
}