Unstable 0.17.0.0

This commit is contained in:
Markus Isberg
2022-02-26 02:43:01 +09:00
parent a83f375681
commit 3974067915
913 changed files with 32472 additions and 32364 deletions
@@ -19,11 +19,7 @@ namespace Barotrauma
private set;
}
public bool Slice
{
get;
set;
}
public bool Slice => Slices != null;
public Rectangle[] Slices
{
@@ -54,7 +50,7 @@ namespace Barotrauma
public TransitionMode TransitionMode { get; private set; }
public UISprite(XElement element)
public UISprite(ContentXElement element)
{
Sprite = new Sprite(element);
MaintainAspectRatio = element.GetAttributeBool("maintainaspectratio", false);
@@ -69,6 +65,7 @@ namespace Barotrauma
}
Vector4 sliceVec = element.GetAttributeVector4("slice", Vector4.Zero);
Slices = null;
if (sliceVec != Vector4.Zero)
{
minBorderScale = element.GetAttributeFloat("minborderscale", 0.1f);
@@ -76,7 +73,6 @@ namespace Barotrauma
Rectangle slice = new Rectangle((int)sliceVec.X, (int)sliceVec.Y, (int)(sliceVec.Z - sliceVec.X), (int)(sliceVec.W - sliceVec.Y));
Slice = true;
Slices = new Rectangle[9];
//top-left