Merge pull request #6151 from Mailaender/disable-idle-overlay-during-transform
Fixed idle overlays being displayed during actor transformations
This commit is contained in:
@@ -49,7 +49,7 @@ namespace OpenRA.Mods.RA.Render
|
||||
}
|
||||
}
|
||||
|
||||
public class WithIdleOverlay : INotifyDamageStateChanged, INotifyBuildComplete, INotifySold
|
||||
public class WithIdleOverlay : INotifyDamageStateChanged, INotifyBuildComplete, INotifySold, INotifyTransform
|
||||
{
|
||||
Animation overlay;
|
||||
bool buildComplete;
|
||||
@@ -83,6 +83,13 @@ namespace OpenRA.Mods.RA.Render
|
||||
buildComplete = false;
|
||||
}
|
||||
|
||||
public void BeforeTransform(Actor self)
|
||||
{
|
||||
buildComplete = false;
|
||||
}
|
||||
public void OnTransform(Actor self) { }
|
||||
public void AfterTransform(Actor self) { }
|
||||
|
||||
public void DamageStateChanged(Actor self, AttackInfo e)
|
||||
{
|
||||
overlay.ReplaceAnim(RenderSprites.NormalizeSequence(overlay, e.DamageState, overlay.CurrentSequence.Name));
|
||||
|
||||
Reference in New Issue
Block a user