Explicitly implement ISelectionBar
This commit is contained in:
@@ -33,7 +33,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
public float GetValue()
|
||||
float ISelectionBar.GetValue()
|
||||
{
|
||||
if (!self.Owner.IsAlliedWith(self.World.RenderPlayer))
|
||||
return 0;
|
||||
@@ -46,6 +46,6 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return 1 - (float)power.RemainingTime / power.TotalTime;
|
||||
}
|
||||
|
||||
public Color GetColor() { return info.Color; }
|
||||
Color ISelectionBar.GetColor() { return info.Color; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user