Unstable 1.1.14.0
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Barotrauma
|
||||
scale, color, Dir < 0, invert);
|
||||
}
|
||||
|
||||
public void Draw(SpriteBatch spriteBatch, Sprite sprite, Color color, float? depth = null, float scale = 1.0f, bool mirrorX = false, bool mirrorY = false)
|
||||
public void Draw(SpriteBatch spriteBatch, Sprite sprite, Color color, float? depth = null, float scale = 1.0f, bool mirrorX = false, bool mirrorY = false, Vector2? origin = null)
|
||||
{
|
||||
if (!Enabled) { return; }
|
||||
UpdateDrawPosition();
|
||||
@@ -42,7 +42,7 @@ namespace Barotrauma
|
||||
{
|
||||
spriteEffect |= SpriteEffects.FlipVertically;
|
||||
}
|
||||
sprite.Draw(spriteBatch, new Vector2(DrawPosition.X, -DrawPosition.Y), color, -drawRotation, scale, spriteEffect, depth);
|
||||
sprite.Draw(spriteBatch, new Vector2(DrawPosition.X, -DrawPosition.Y), color, origin ?? sprite.Origin, - drawRotation, scale, spriteEffect, depth);
|
||||
}
|
||||
|
||||
public void DebugDraw(SpriteBatch spriteBatch, Color color, bool forceColor = false)
|
||||
|
||||
Reference in New Issue
Block a user