fix TS power down palette
This commit is contained in:
@@ -26,8 +26,8 @@ namespace OpenRA.Mods.Common.Effects
|
|||||||
this.a = a;
|
this.a = a;
|
||||||
canPowerDown = a.Trait<CanPowerDown>();
|
canPowerDown = a.Trait<CanPowerDown>();
|
||||||
|
|
||||||
anim = new Animation(a.World, "poweroff");
|
anim = new Animation(a.World, canPowerDown.Info.IndicatorImage);
|
||||||
anim.PlayRepeating("offline");
|
anim.PlayRepeating(canPowerDown.Info.IndicatorSequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Tick(World world)
|
public void Tick(World world)
|
||||||
@@ -43,7 +43,7 @@ namespace OpenRA.Mods.Common.Effects
|
|||||||
if (a.Destroyed || wr.World.FogObscures(a))
|
if (a.Destroyed || wr.World.FogObscures(a))
|
||||||
return SpriteRenderable.None;
|
return SpriteRenderable.None;
|
||||||
|
|
||||||
return anim.Render(a.CenterPosition, wr.Palette("chrome"));
|
return anim.Render(a.CenterPosition, wr.Palette(canPowerDown.Info.IndicatorPalette));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,11 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("Restore power when this trait is disabled.")]
|
[Desc("Restore power when this trait is disabled.")]
|
||||||
public readonly bool CancelWhenDisabled = false;
|
public readonly bool CancelWhenDisabled = false;
|
||||||
|
|
||||||
|
public readonly string IndicatorImage = "poweroff";
|
||||||
|
public readonly string IndicatorSequence = "offline";
|
||||||
|
|
||||||
|
public readonly string IndicatorPalette = "chrome";
|
||||||
|
|
||||||
public object Create(ActorInitializer init) { return new CanPowerDown(init.Self, this); }
|
public object Create(ActorInitializer init) { return new CanPowerDown(init.Self, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -247,6 +247,7 @@ GARADR:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
ProvidesRadar:
|
ProvidesRadar:
|
||||||
InfiltrateForExploration:
|
InfiltrateForExploration:
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
@@ -309,6 +310,7 @@ GAPLUG:
|
|||||||
Dimensions: 2,3
|
Dimensions: 2,3
|
||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
RenderBuilding:
|
RenderBuilding:
|
||||||
WithIdleOverlay@DISH:
|
WithIdleOverlay@DISH:
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ GACTWR:
|
|||||||
UpgradeTypes: tower
|
UpgradeTypes: tower
|
||||||
UpgradeMinEnabledLevel: 1
|
UpgradeMinEnabledLevel: 1
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
WithTurret@VULC:
|
WithTurret@VULC:
|
||||||
UpgradeTypes: tower.vulcan
|
UpgradeTypes: tower.vulcan
|
||||||
UpgradeMinEnabledLevel: 1
|
UpgradeMinEnabledLevel: 1
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ NARADR:
|
|||||||
Type: Wood
|
Type: Wood
|
||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
ProvidesRadar:
|
ProvidesRadar:
|
||||||
InfiltrateForExploration:
|
InfiltrateForExploration:
|
||||||
DetectCloaked:
|
DetectCloaked:
|
||||||
@@ -285,6 +286,7 @@ NASTLH:
|
|||||||
Amount: -350
|
Amount: -350
|
||||||
RequiresPower:
|
RequiresPower:
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
UpgradeActorsNear:
|
UpgradeActorsNear:
|
||||||
Upgrades: cloakgenerator
|
Upgrades: cloakgenerator
|
||||||
Range: 12c0
|
Range: 12c0
|
||||||
|
|||||||
@@ -274,6 +274,7 @@ NAMISL:
|
|||||||
Power:
|
Power:
|
||||||
Amount: -50
|
Amount: -50
|
||||||
CanPowerDown:
|
CanPowerDown:
|
||||||
|
IndicatorPalette: mouse
|
||||||
RequiresPower:
|
RequiresPower:
|
||||||
DisabledOverlay:
|
DisabledOverlay:
|
||||||
SupportPowerChargeBar:
|
SupportPowerChargeBar:
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ World:
|
|||||||
BuildingInfluence:
|
BuildingInfluence:
|
||||||
ProductionQueueFromSelection:
|
ProductionQueueFromSelection:
|
||||||
ProductionPaletteWidget: PRODUCTION_PALETTE
|
ProductionPaletteWidget: PRODUCTION_PALETTE
|
||||||
|
PaletteFromFile@mouse:
|
||||||
|
Name: mouse
|
||||||
|
Filename: mousepal.pal
|
||||||
PaletteFromFile@playersno:
|
PaletteFromFile@playersno:
|
||||||
Name: player
|
Name: player
|
||||||
Tileset: SNOW
|
Tileset: SNOW
|
||||||
|
|||||||
Reference in New Issue
Block a user