proper sprites + visualizes nicely
This commit is contained in:
@@ -59,6 +59,12 @@ namespace Content.Server.Doors.Components
|
||||
[DataField("powerWiresTimeout")]
|
||||
public float PowerWiresTimeout = 5.0f;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the maintenance panel should be visible even if the airlock is opened.
|
||||
/// </summary>
|
||||
[DataField("openPanelVisible")]
|
||||
public bool OpenPanelVisible = false;
|
||||
|
||||
private CancellationTokenSource _powerWiresPulsedTimerCancel = new();
|
||||
private bool _powerWiresPulsed;
|
||||
|
||||
|
||||
@@ -42,7 +42,9 @@ namespace Content.Server.Doors.Systems
|
||||
// Only show the maintenance panel if the airlock is closed
|
||||
if (component.WiresComponent != null)
|
||||
{
|
||||
component.WiresComponent.IsPanelVisible = args.State != SharedDoorComponent.DoorState.Open;
|
||||
component.WiresComponent.IsPanelVisible =
|
||||
args.State != SharedDoorComponent.DoorState.Open
|
||||
|| component.OpenPanelVisible;
|
||||
}
|
||||
// If the door is closed, we should look if the bolt was locked while closing
|
||||
component.UpdateBoltLightStatus();
|
||||
|
||||
Reference in New Issue
Block a user