Better robotics console (#38023)

This commit is contained in:
Samuka-C
2025-08-11 15:57:39 -03:00
committed by GitHub
parent 47d7db0665
commit ed6f906e6f
6 changed files with 102 additions and 15 deletions

View File

@@ -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);
}
}