refactoring Widget

This commit is contained in:
Bob
2010-05-25 11:44:57 +12:00
parent ac10ca3fad
commit 8285c7d158
16 changed files with 30 additions and 76 deletions

View File

@@ -80,13 +80,8 @@ namespace OpenRA.Widgets
return false;
}
public override void Draw(World world)
public override void DrawInner(World world)
{
if (!Visible)
{
base.Draw(world);
return;
}
buttons.Clear();
var powers = world.LocalPlayer.PlayerActor.traits.WithInterface<SupportPower>();
@@ -170,7 +165,6 @@ namespace OpenRA.Widgets
}
}
Game.chrome.renderer.WorldSpriteRenderer.Flush();
base.Draw(world);
}
Action<MouseInput> HandleSupportPower(SupportPower sp)