* Engine namespace changes.
* Automated remove redundant using statements.
* Simplified Graphics namespace.
* Apparently the container system stores full type names in the map file.😞 This updates those names.
* API Changes to LocalizationManager.LoadCulture.
* Update submodule to v0.3.2
51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
using Content.Shared.GameObjects.Components.Atmos.GasTank;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.UserInterface.Atmos.GasTank
|
|
{
|
|
[UsedImplicitly]
|
|
public class GasTankBoundUserInterface
|
|
: BoundUserInterface
|
|
{
|
|
public GasTankBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) :
|
|
base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
private GasTankWindow _window;
|
|
|
|
public void SetOutputPressure(in float value)
|
|
{
|
|
SendMessage(new GasTankSetPressureMessage {Pressure = value});
|
|
}
|
|
|
|
public void ToggleInternals()
|
|
{
|
|
SendMessage(new GasTankToggleInternalsMessage());
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
_window = new GasTankWindow(this);
|
|
_window.OnClose += Close;
|
|
_window.OpenCentered();
|
|
}
|
|
|
|
protected override void UpdateState(BoundUserInterfaceState state)
|
|
{
|
|
base.UpdateState(state);
|
|
_window.UpdateState((GasTankBoundUserInterfaceState) state);
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
base.Dispose(disposing);
|
|
|
|
_window.Close();
|
|
}
|
|
}
|
|
}
|