9-Sliced UI sprites & some new UI graphics

This commit is contained in:
Regalis
2017-04-07 21:45:32 +03:00
parent a2e21a78f9
commit 1fe6427c05
7 changed files with 87 additions and 6 deletions

View File

@@ -300,6 +300,11 @@ namespace Barotrauma
}
public void DrawTiled(SpriteBatch spriteBatch, Vector2 pos, Vector2 targetSize, Vector2 startOffset, Color color)
{
DrawTiled(spriteBatch, pos, targetSize, startOffset, sourceRect, color);
}
public void DrawTiled(SpriteBatch spriteBatch, Vector2 pos, Vector2 targetSize, Vector2 startOffset, Rectangle sourceRect, Color color)
{
//pos.X = (int)pos.X;
//pos.Y = (int)pos.Y;