refactored a bit - something is still failing
This commit is contained in:
@@ -85,7 +85,8 @@ namespace OpenRA.Widgets
|
||||
var powers = world.LocalPlayer.PlayerActor.traits.WithInterface<SupportPower>();
|
||||
var numPowers = powers.Count(p => p.IsAvailable);
|
||||
if (numPowers == 0) return;
|
||||
var rectBounds = new Rectangle(Bounds.X + getParentOffset().X, Bounds.Y + getParentOffset().Y, Bounds.Width, Bounds.Height);
|
||||
var position = DrawPosition();
|
||||
var rectBounds = new Rectangle(position.X, position.Y, Bounds.Width, Bounds.Height);
|
||||
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world, "specialbin-top"),new float2(rectBounds.X,rectBounds.Y));
|
||||
for (var i = 1; i < numPowers; i++)
|
||||
WidgetUtils.DrawRGBA(WidgetUtils.GetChromeImage(world,"specialbin-middle"), new float2(rectBounds.X, rectBounds.Y + i * 51));
|
||||
|
||||
Reference in New Issue
Block a user