fix labels? (thought i already did this?)

This commit is contained in:
Mister_Nebula 2022-01-06 12:18:19 +00:00
parent 322dbbda5e
commit c1d0e1a43a
3 changed files with 4 additions and 1 deletions

View File

@ -4,5 +4,6 @@ namespace QSB.QuantumSync.WorldObjects
{
internal class QSBQuantumSocket : WorldObject<QuantumSocket>
{
public override bool ShouldDisplayLabel() => false;
}
}

View File

@ -11,5 +11,7 @@ namespace QSB.QuantumSync.WorldObjects
IsMeantToBeEnabled = visible;
AttachedObject.SetVisible(visible);
}
public override bool ShouldDisplayLabel() => false;
}
}

View File

@ -14,7 +14,7 @@ namespace QSB.WorldSync
public virtual void Init() { }
public virtual void OnRemoval() { }
public MonoBehaviour ReturnObject() => AttachedObject;
public virtual bool ShouldDisplayLabel() => true;
public virtual bool ShouldDisplayLabel() => (bool)(AttachedObject?.gameObject.activeInHierarchy);
public virtual string ReturnLabel() => LogName;
/// indicates that this won't become ready immediately