v1.4.4.1 (Blood in the Water Update)

This commit is contained in:
Regalis11
2024-04-24 18:09:05 +03:00
parent 89b91d1c3e
commit ff1b8951a7
397 changed files with 15250 additions and 6479 deletions
@@ -128,6 +128,11 @@ namespace Barotrauma
{
case "sprite":
UISprite newSprite = new UISprite(subElement);
Rectangle sourceRect = newSprite.Sprite.SourceRect;
if ((sourceRect.Width <= 1 || sourceRect.Height <= 1) && newSprite.Tile)
{
DebugConsole.AddWarning($"Sprite \"{subElement.GetAttributeString("name", Name)}\" has a size of 1 or less which may cause performance problems.", contentPackage: element.ContentPackage);
}
GUIComponent.ComponentState spriteState = GUIComponent.ComponentState.None;
if (subElement.GetAttribute("state") != null)