mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
fix labels? (thought i already did this?)
This commit is contained in:
parent
322dbbda5e
commit
c1d0e1a43a
@ -4,5 +4,6 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
{
|
||||
internal class QSBQuantumSocket : WorldObject<QuantumSocket>
|
||||
{
|
||||
public override bool ShouldDisplayLabel() => false;
|
||||
}
|
||||
}
|
||||
|
@ -11,5 +11,7 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
IsMeantToBeEnabled = visible;
|
||||
AttachedObject.SetVisible(visible);
|
||||
}
|
||||
|
||||
public override bool ShouldDisplayLabel() => false;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user