v0.14.6.0
This commit is contained in:
@@ -46,7 +46,10 @@ namespace Barotrauma
|
||||
if (IsHighlighted || IsHighlighted) { clr = Color.Lerp(clr, Color.White, 0.8f); }
|
||||
|
||||
int iconSize = spawnType == SpawnType.Path ? WaypointSize : SpawnPointSize;
|
||||
if (ConnectedDoor != null || Ladders != null || Stairs != null || SpawnType != SpawnType.Path) { iconSize = (int)(iconSize * 1.5f); }
|
||||
if (ConnectedDoor != null || Ladders != null || Stairs != null || SpawnType != SpawnType.Path)
|
||||
{
|
||||
iconSize = (int)(iconSize * 1.5f);
|
||||
}
|
||||
|
||||
if (IsSelected || IsHighlighted)
|
||||
{
|
||||
@@ -98,10 +101,32 @@ namespace Barotrauma
|
||||
GUI.Style.Green * 0.5f, width: 1);
|
||||
}
|
||||
|
||||
var color = Color.WhiteSmoke;
|
||||
if (spawnType == SpawnType.Path)
|
||||
{
|
||||
if (linkedTo.Count < 2)
|
||||
{
|
||||
if (linkedTo.Count == 0)
|
||||
{
|
||||
color = Color.Red;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CurrentHull == null)
|
||||
{
|
||||
color = Ladders == null ? Color.Red : Color.Yellow;
|
||||
}
|
||||
else
|
||||
{
|
||||
color = Color.Yellow;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
GUI.SmallFont.DrawString(spriteBatch,
|
||||
ID.ToString(),
|
||||
new Vector2(DrawPosition.X - 10, -DrawPosition.Y - 30),
|
||||
Color.WhiteSmoke);
|
||||
color);
|
||||
}
|
||||
|
||||
public override bool IsMouseOn(Vector2 position)
|
||||
|
||||
Reference in New Issue
Block a user