Made the name of the "Linkable/IsLinkable" property consistent
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Barotrauma
|
||||
|
||||
if (Screen.Selected != GameMain.SubEditorScreen) return;
|
||||
|
||||
if (!prefab.IsLinkable) return;
|
||||
if (!Linkable) return;
|
||||
|
||||
if (!PlayerInput.KeyDown(Keys.Space)) return;
|
||||
bool lClick = PlayerInput.LeftButtonClicked();
|
||||
@@ -143,7 +143,7 @@ namespace Barotrauma
|
||||
if (!entity.IsMouseOn(position)) continue;
|
||||
|
||||
linkedTo.Add(entity);
|
||||
if (entity.IsLinkable && entity.linkedTo != null) entity.linkedTo.Add(this);
|
||||
if (entity.Linkable && entity.linkedTo != null) entity.linkedTo.Add(this);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -178,7 +178,7 @@ namespace Barotrauma
|
||||
|
||||
var itemEditor = new SerializableEntityEditor(this, inGame, editingHUD, true);
|
||||
|
||||
if (!inGame && prefab.IsLinkable)
|
||||
if (!inGame && Linkable)
|
||||
{
|
||||
itemEditor.AddCustomContent(new GUITextBlock(new Rectangle(0, 0, 0, 20), "Hold space to link to another item", "", null, GUI.SmallFont), 1);
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace Barotrauma
|
||||
if (entity == this || !entity.IsHighlighted) continue;
|
||||
if (!entity.IsMouseOn(position)) continue;
|
||||
|
||||
if (entity.IsLinkable && entity.linkedTo != null) entity.linkedTo.Add(this);
|
||||
if (entity.Linkable && entity.linkedTo != null) entity.linkedTo.Add(this);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -296,9 +296,9 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsLinkable
|
||||
public override bool Linkable
|
||||
{
|
||||
get { return prefab.IsLinkable; }
|
||||
get { return prefab.Linkable; }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsLinkable
|
||||
public override bool Linkable
|
||||
{
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Barotrauma
|
||||
|
||||
private XElement saveElement;
|
||||
|
||||
public override bool IsLinkable
|
||||
public override bool Linkable
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
public virtual bool IsLinkable
|
||||
public virtual bool Linkable
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
@@ -61,18 +61,12 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
[Serialize(false, false)]
|
||||
public bool Linkable //TODO: make this property's name consistent
|
||||
public bool Linkable
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public virtual bool IsLinkable
|
||||
{
|
||||
get { return Linkable; }
|
||||
private set { Linkable = value; }
|
||||
}
|
||||
|
||||
|
||||
public MapEntityCategory Category
|
||||
{
|
||||
get;
|
||||
|
||||
Reference in New Issue
Block a user