Enable editing of the texture scale of the structures.
This commit is contained in:
@@ -133,7 +133,8 @@ namespace Barotrauma
|
|||||||
spriteBatch,
|
spriteBatch,
|
||||||
new Vector2(rect.X + drawOffset.X, -(rect.Y + drawOffset.Y)),
|
new Vector2(rect.X + drawOffset.X, -(rect.Y + drawOffset.Y)),
|
||||||
new Vector2(rect.Width, rect.Height),
|
new Vector2(rect.Width, rect.Height),
|
||||||
color: color);
|
color: color,
|
||||||
|
textureScale: TextureScale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -177,7 +178,8 @@ namespace Barotrauma
|
|||||||
new Vector2(sections[i].rect.Width, sections[i].rect.Height),
|
new Vector2(sections[i].rect.Width, sections[i].rect.Height),
|
||||||
color: color,
|
color: color,
|
||||||
startOffset: textureOffset,
|
startOffset: textureOffset,
|
||||||
depth: depth);
|
depth: depth,
|
||||||
|
textureScale: TextureScale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -145,6 +145,8 @@ namespace Barotrauma
|
|||||||
get { return prefab.Tags; }
|
get { return prefab.Tags; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: encapsulate visuals?
|
||||||
|
|
||||||
protected Color spriteColor;
|
protected Color spriteColor;
|
||||||
[Editable, Serialize("1.0,1.0,1.0,1.0", true)]
|
[Editable, Serialize("1.0,1.0,1.0,1.0", true)]
|
||||||
public Color SpriteColor
|
public Color SpriteColor
|
||||||
@@ -153,6 +155,9 @@ namespace Barotrauma
|
|||||||
set { spriteColor = value; }
|
set { spriteColor = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Editable, Serialize("1.0, 1.0", true)]
|
||||||
|
public Vector2 TextureScale { get; set; }
|
||||||
|
|
||||||
public override Rectangle Rect
|
public override Rectangle Rect
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
Reference in New Issue
Block a user