Replace scaleSizeWithZoom with SpriteAnnotation.
This commit is contained in:
@@ -211,7 +211,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
{
|
||||
var delayedPos = WPos.LerpQuadratic(source, target, angle, ticks - info.TrailDelay, length);
|
||||
world.AddFrameEndTask(w => w.Add(new SpriteEffect(delayedPos, w, info.TrailImage, info.TrailSequences.Random(world.SharedRandom),
|
||||
trailPalette, false, false, GetEffectiveFacing())));
|
||||
trailPalette, facing: GetEffectiveFacing())));
|
||||
|
||||
smokeTicks = info.TrailInterval;
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ namespace OpenRA.Mods.Common.Projectiles
|
||||
if (!string.IsNullOrEmpty(info.TrailImage) && --ticksToNextSmoke < 0 && (state != States.Freefall || info.TrailWhenDeactivated))
|
||||
{
|
||||
world.AddFrameEndTask(w => w.Add(new SpriteEffect(pos - 3 * move / 2, w, info.TrailImage, info.TrailSequences.Random(world.SharedRandom),
|
||||
trailPalette, false, false, renderFacing)));
|
||||
trailPalette, facing: renderFacing)));
|
||||
|
||||
ticksToNextSmoke = info.TrailInterval;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace OpenRA.Mods.Common.Effects
|
||||
: WPos.LerpQuadratic(descendSource, descendTarget, WAngle.Zero, ticks - turn - trailDelay, impactDelay - turn);
|
||||
|
||||
world.AddFrameEndTask(w => w.Add(new SpriteEffect(trailPos, w, trailImage, trailSequences.Random(world.SharedRandom),
|
||||
trailPalette, false, false, 0)));
|
||||
trailPalette)));
|
||||
|
||||
trailTicks = trailInterval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user