widgetized radar/power bin

This commit is contained in:
Chris Forbes
2010-04-23 19:09:33 +12:00
parent c06b4b3c70
commit 2a90634a7b
3 changed files with 10 additions and 2 deletions

View File

@@ -37,8 +37,6 @@ namespace OpenRA.Widgets
public override void Tick(World world)
{
radarCollection = "radar-" + world.LocalPlayer.Country.Race;
if (!radarAnimating)
return;
@@ -76,6 +74,8 @@ namespace OpenRA.Widgets
void DrawRadar(World world)
{
radarCollection = "radar-" + world.LocalPlayer.Country.Race;
var hasNewRadar = world.Queries.OwnedBy[world.LocalPlayer]
.WithTrait<ProvidesRadar>()
.Any(a => a.Trait.IsActive);