fix choice of sprite renderer; fix ordering of support powers bin rendering.

This commit is contained in:
Chris Forbes
2010-04-12 18:50:39 +12:00
parent 59eebb6c9b
commit 906c0ac67e
2 changed files with 4 additions and 2 deletions

View File

@@ -93,7 +93,9 @@ namespace OpenRA.Widgets
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(Bounds.X,Bounds.Y)); WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(Bounds.X,Bounds.Y));
for (var i = 1; i < numPowers; i++) for (var i = 1; i < numPowers; i++)
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-middle"), new float2(Bounds.X, Bounds.Y + i * 51)); WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-middle"), new float2(Bounds.X, Bounds.Y + i * 51));
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-bottom"), new float2(Bounds.X, Bounds.Y + numPowers * 51)); WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-bottom"), new float2(Bounds.X, Bounds.Y + numPowers * 51));
Game.chrome.renderer.RgbaSpriteRenderer.Flush();
// Hack Hack Hack // Hack Hack Hack
Bounds.Width = 69; Bounds.Width = 69;

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Widgets
public static void DrawSHP(Sprite s, float2 pos) public static void DrawSHP(Sprite s, float2 pos)
{ {
Game.chrome.renderer.RgbaSpriteRenderer.DrawSprite(s,pos,"chrome"); Game.chrome.renderer.WorldSpriteRenderer.DrawSprite(s,pos,"chrome");
} }
public static void DrawPanel(string collection, Rectangle Bounds, Action a) public static void DrawPanel(string collection, Rectangle Bounds, Action a)