using Robust.Client.UserInterface; using Content.Shared.Atmos.Components; namespace Content.Client.Atmos.UI; public sealed class GasAnalyzerBoundUserInterface : BoundUserInterface { [ViewVariables] private GasAnalyzerWindow? _window; public GasAnalyzerBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } protected override void Open() { base.Open(); _window = this.CreateWindowCenteredLeft(); _window.OnClose += Close; } protected override void ReceiveMessage(BoundUserInterfaceMessage message) { if (_window == null) return; if (message is not GasAnalyzerUserMessage cast) return; _window.Populate(cast); } }