Flipping sprites of staircases & engine
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Barotrauma
|
||||
|
||||
private bool isPlatform;
|
||||
private Direction stairDirection;
|
||||
private bool canSpriteFlipX;
|
||||
|
||||
private float maxHealth;
|
||||
|
||||
@@ -48,6 +49,11 @@ namespace Barotrauma
|
||||
get { return stairDirection; }
|
||||
}
|
||||
|
||||
public bool CanSpriteFlipX
|
||||
{
|
||||
get { return canSpriteFlipX; }
|
||||
}
|
||||
|
||||
public Vector2 Size
|
||||
{
|
||||
get { return size; }
|
||||
@@ -107,6 +113,8 @@ namespace Barotrauma
|
||||
sp.sprite.effects = SpriteEffects.FlipHorizontally;
|
||||
if (ToolBox.GetAttributeBool(subElement, "flipvertical", false))
|
||||
sp.sprite.effects = SpriteEffects.FlipVertically;
|
||||
if (ToolBox.GetAttributeBool(subElement, "canflipx", false))
|
||||
sp.canSpriteFlipX = true;
|
||||
|
||||
break;
|
||||
case "backgroundsprite":
|
||||
|
||||
Reference in New Issue
Block a user