@@ -35,6 +35,7 @@ namespace Content.Server.Atmos.Components
|
||||
if (UserInterface != null)
|
||||
{
|
||||
UserInterface.OnReceiveMessage += UserInterfaceOnReceiveMessage;
|
||||
UserInterface.OnClosed += UserInterfaceOnClose;
|
||||
}
|
||||
|
||||
_entities.TryGetComponent(Owner, out _appearance);
|
||||
@@ -95,7 +96,12 @@ namespace Content.Server.Atmos.Components
|
||||
Resync();
|
||||
}
|
||||
|
||||
public void UpdateAppearance(bool open)
|
||||
private void UserInterfaceOnClose(IPlayerSession obj)
|
||||
{
|
||||
UpdateAppearance(false);
|
||||
}
|
||||
|
||||
private void UpdateAppearance(bool open)
|
||||
{
|
||||
_appearance?.SetData(GasAnalyzerVisuals.VisualState,
|
||||
open ? GasAnalyzerVisualState.Working : GasAnalyzerVisualState.Off);
|
||||
|
||||
Reference in New Issue
Block a user