Better robotics console (#38023)
This commit is contained in:
@@ -95,6 +95,9 @@ public sealed class RoboticsConsoleSystem : SharedRoboticsConsoleSystem
|
||||
|
||||
private void OnDisable(Entity<RoboticsConsoleComponent> ent, ref RoboticsConsoleDisableMessage args)
|
||||
{
|
||||
if (!ent.Comp.AllowBorgControl)
|
||||
return;
|
||||
|
||||
if (_lock.IsLocked(ent.Owner))
|
||||
return;
|
||||
|
||||
@@ -112,6 +115,9 @@ public sealed class RoboticsConsoleSystem : SharedRoboticsConsoleSystem
|
||||
|
||||
private void OnDestroy(Entity<RoboticsConsoleComponent> ent, ref RoboticsConsoleDestroyMessage args)
|
||||
{
|
||||
if (!ent.Comp.AllowBorgControl)
|
||||
return;
|
||||
|
||||
if (_lock.IsLocked(ent.Owner))
|
||||
return;
|
||||
|
||||
@@ -139,7 +145,7 @@ public sealed class RoboticsConsoleSystem : SharedRoboticsConsoleSystem
|
||||
|
||||
private void UpdateUserInterface(Entity<RoboticsConsoleComponent> ent)
|
||||
{
|
||||
var state = new RoboticsConsoleState(ent.Comp.Cyborgs);
|
||||
var state = new RoboticsConsoleState(ent.Comp.Cyborgs, ent.Comp.AllowBorgControl);
|
||||
_ui.SetUiState(ent.Owner, RoboticsConsoleUiKey.Key, state);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user