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

@@ -25,7 +25,7 @@ namespace OpenRA.Widgets
public override Widget Clone() { return new MapPreviewWidget(this); }
public override void Draw( World world )
public override void DrawInner( World world )
{
var map = Game.chrome.currentMap;
if( map == null ) return;
@@ -55,7 +55,6 @@ namespace OpenRA.Widgets
new float2( mapRect.Size ) );
DrawSpawnPoints( map, new Rectangle(pos.X, pos.Y, Parent.Bounds.Width, Parent.Bounds.Height ), world );
base.Draw( world );
}
void DrawSpawnPoints(MapStub map, Rectangle container, World world)