air alarm window changes, firelock alarmable

This commit is contained in:
vulppine
2022-08-18 07:52:21 -07:00
parent b444c0bbbe
commit 35ba20de17
3 changed files with 10 additions and 9 deletions

View File

@@ -28,10 +28,6 @@
</BoxContainer> </BoxContainer>
<!-- Gas/Device Data --> <!-- Gas/Device Data -->
<TabContainer Name="CTabContainer" VerticalExpand="True" Margin="0 0 0 2"> <TabContainer Name="CTabContainer" VerticalExpand="True" Margin="0 0 0 2">
<!-- Gas readout -->
<ScrollContainer VerticalExpand="True">
<BoxContainer Name="CGasContainer" Orientation="Vertical" VerticalExpand="True" Margin="2 2 2 2" />
</ScrollContainer>
<!-- Vent devices --> <!-- Vent devices -->
<ScrollContainer VerticalExpand="True"> <ScrollContainer VerticalExpand="True">
<BoxContainer Name="CVentContainer" Orientation="Vertical"/> <BoxContainer Name="CVentContainer" Orientation="Vertical"/>

View File

@@ -23,6 +23,7 @@ namespace Content.Client.Atmos.Monitor.UI
public event Action<AirAlarmMode>? AirAlarmModeChanged; public event Action<AirAlarmMode>? AirAlarmModeChanged;
public event Action<string>? ResyncDeviceRequested; public event Action<string>? ResyncDeviceRequested;
public event Action? ResyncAllRequested; public event Action? ResyncAllRequested;
public event Action<AirAlarmTab>? AirAlarmTabChange;
private Label _address => CDeviceAddress; private Label _address => CDeviceAddress;
private Label _deviceTotal => CDeviceTotal; private Label _deviceTotal => CDeviceTotal;
@@ -67,10 +68,14 @@ namespace Content.Client.Atmos.Monitor.UI
_gasLabels.Add(gas, gasLabel); _gasLabels.Add(gas, gasLabel);
} }
_tabContainer.SetTabTitle(0, Loc.GetString("air-alarm-ui-window-tab-gas")); _tabContainer.SetTabTitle(0, Loc.GetString("air-alarm-ui-window-tab-vents"));
_tabContainer.SetTabTitle(1, Loc.GetString("air-alarm-ui-window-tab-vents")); _tabContainer.SetTabTitle(1, Loc.GetString("air-alarm-ui-window-tab-scrubbers"));
_tabContainer.SetTabTitle(2, Loc.GetString("air-alarm-ui-window-tab-scrubbers")); _tabContainer.SetTabTitle(2, Loc.GetString("air-alarm-ui-window-tab-sensors"));
_tabContainer.SetTabTitle(3, Loc.GetString("air-alarm-ui-window-tab-thresholds"));
_tabContainer.OnTabChanged += idx =>
{
AirAlarmTabChange!((AirAlarmTab) idx);
};
_resyncDevices.OnPressed += _ => _resyncDevices.OnPressed += _ =>
{ {

View File

@@ -7,7 +7,7 @@
- type: AtmosAlarmable - type: AtmosAlarmable
alarmedBy: alarmedBy:
- FireAlarm - FireAlarm
- AirAlarm - GasVentPump # TODO: No
- type: ApcPowerReceiver - type: ApcPowerReceiver
- type: ExtensionCableReceiver - type: ExtensionCableReceiver
- type: DeviceNetwork - type: DeviceNetwork