Communications Console & Medical Scanner now close when too far away (#2175)

-Wire & GasAnalyzer dispose instead of closing only
This commit is contained in:
Exp
2020-10-06 10:16:42 +02:00
committed by GitHub
parent 67ba000528
commit 920f3a999b
12 changed files with 40 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
using JetBrains.Annotations;
using JetBrains.Annotations;
using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Shared.GameObjects.Components.UserInterface;
using static Content.Shared.GameObjects.Components.Medical.SharedMedicalScannerComponent;
@@ -31,5 +31,13 @@ namespace Content.Client.GameObjects.Components.MedicalScanner
base.UpdateState(state);
_window.Populate((MedicalScannerBoundUserInterfaceState) state);
}
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (!disposing)
return;
_window.Dispose();
}
}
}