mirror of
https://github.com/corvax-team/ss14-wl.git
synced 2026-06-09 10:06:46 +02:00
b582f2e156
* cleanup * fix some localizations * fix typo * review and test fix * rename * minus one --------- Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
34 lines
774 B
C#
34 lines
774 B
C#
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<GasAnalyzerWindow>();
|
|
_window.OnClose += Close;
|
|
}
|
|
|
|
protected override void ReceiveMessage(BoundUserInterfaceMessage message)
|
|
{
|
|
if (_window == null)
|
|
return;
|
|
|
|
if (message is not GasAnalyzerUserMessage cast)
|
|
return;
|
|
|
|
_window.Populate(cast);
|
|
}
|
|
}
|