mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-23 06:40:56 +00:00
Revert "change ShouldDisplayLabel to property"
This reverts commit 6c301049516190c559dc1bf0d485a53c6aa79892.
This commit is contained in:
parent
d030d9746f
commit
07aee5c3ea
@ -25,7 +25,7 @@ namespace QSB.QuantumSync.WorldObjects
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool ShouldDisplayLabel => ControllingPlayer != 0;
|
public override bool ShouldDisplayLabel() => ControllingPlayer != 0;
|
||||||
|
|
||||||
public override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ namespace QSB.WorldSync
|
|||||||
|
|
||||||
void OnRemoval();
|
void OnRemoval();
|
||||||
MonoBehaviour ReturnObject();
|
MonoBehaviour ReturnObject();
|
||||||
bool ShouldDisplayLabel { get; }
|
bool ShouldDisplayLabel();
|
||||||
string ReturnLabel();
|
string ReturnLabel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ namespace QSB.WorldSync
|
|||||||
public virtual void Init() { }
|
public virtual void Init() { }
|
||||||
public virtual void OnRemoval() { }
|
public virtual void OnRemoval() { }
|
||||||
public MonoBehaviour ReturnObject() => AttachedObject;
|
public MonoBehaviour ReturnObject() => AttachedObject;
|
||||||
public virtual bool ShouldDisplayLabel => true;
|
public virtual bool ShouldDisplayLabel() => true;
|
||||||
public virtual string ReturnLabel() => LogName;
|
public virtual string ReturnLabel() => LogName;
|
||||||
|
|
||||||
/// indicates that this won't become ready immediately
|
/// indicates that this won't become ready immediately
|
||||||
|
@ -136,7 +136,7 @@ namespace QSB.WorldSync
|
|||||||
|
|
||||||
foreach (var obj in QSBWorldSync.GetWorldObjects())
|
foreach (var obj in QSBWorldSync.GetWorldObjects())
|
||||||
{
|
{
|
||||||
if (obj.ShouldDisplayLabel)
|
if (obj.ShouldDisplayLabel())
|
||||||
{
|
{
|
||||||
DebugGUI.DrawLabel(obj.ReturnObject().transform, obj.ReturnLabel());
|
DebugGUI.DrawLabel(obj.ReturnObject().transform, obj.ReturnLabel());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user