Explicitly implement ISelectionBar

This commit is contained in:
Taryn Hill
2015-12-30 08:19:50 -06:00
parent e3229f4cd8
commit 25eddb9567
9 changed files with 18 additions and 19 deletions

View File

@@ -114,7 +114,7 @@ namespace OpenRA.Mods.RA.Traits
}
// Show the remaining time as a bar
public float GetValue()
float ISelectionBar.GetValue()
{
if (!info.ReturnToOrigin)
return 0f;
@@ -126,7 +126,7 @@ namespace OpenRA.Mods.RA.Traits
return (float)ReturnTicks / duration;
}
public Color GetColor() { return info.TimeBarColor; }
Color ISelectionBar.GetColor() { return info.TimeBarColor; }
public void ModifyDeathActorInit(Actor self, TypeDictionary init)
{

View File

@@ -105,12 +105,12 @@ namespace OpenRA.Mods.RA.Traits
get { return chargeTick <= 0; }
}
public float GetValue()
float ISelectionBar.GetValue()
{
return (float)(Info.ChargeDelay - chargeTick) / Info.ChargeDelay;
}
public Color GetColor() { return Color.Magenta; }
Color ISelectionBar.GetColor() { return Color.Magenta; }
}
class PortableChronoOrderTargeter : IOrderTargeter