Various UI warnings cleanup (#36169)
* Various UI warnings cleanup * Revert unnecessary change * Redoing SpriteSystem as it's non-injectable * Missed one * Better entity instantiation * General cleanup of warnings changes * Wrong class name!
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Content.Client.Jittering
|
||||
var animationPlayer = EnsureComp<AnimationPlayerComponent>(uid);
|
||||
|
||||
jittering.StartOffset = sprite.Offset;
|
||||
_animationPlayer.Play(uid, animationPlayer, GetAnimation(jittering, sprite), _jitterAnimationKey);
|
||||
_animationPlayer.Play((uid, animationPlayer), GetAnimation(jittering, sprite), _jitterAnimationKey);
|
||||
}
|
||||
|
||||
private void OnShutdown(EntityUid uid, JitteringComponent jittering, ComponentShutdown args)
|
||||
@@ -53,7 +53,7 @@ namespace Content.Client.Jittering
|
||||
|
||||
if (TryComp(uid, out AnimationPlayerComponent? animationPlayer)
|
||||
&& TryComp(uid, out SpriteComponent? sprite))
|
||||
_animationPlayer.Play(uid, animationPlayer, GetAnimation(jittering, sprite), _jitterAnimationKey);
|
||||
_animationPlayer.Play((uid, animationPlayer), GetAnimation(jittering, sprite), _jitterAnimationKey);
|
||||
}
|
||||
|
||||
private Animation GetAnimation(JitteringComponent jittering, SpriteComponent sprite)
|
||||
|
||||
Reference in New Issue
Block a user