proper sprites + visualizes nicely

This commit is contained in:
Kara D
2021-08-05 19:43:58 -07:00
parent a651743235
commit e460285187
44 changed files with 91 additions and 215 deletions

View File

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

View File

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