air alarm window changes, firelock alarmable
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
</BoxContainer>
|
||||
<!-- Gas/Device Data -->
|
||||
<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 -->
|
||||
<ScrollContainer VerticalExpand="True">
|
||||
<BoxContainer Name="CVentContainer" Orientation="Vertical"/>
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace Content.Client.Atmos.Monitor.UI
|
||||
public event Action<AirAlarmMode>? AirAlarmModeChanged;
|
||||
public event Action<string>? ResyncDeviceRequested;
|
||||
public event Action? ResyncAllRequested;
|
||||
public event Action<AirAlarmTab>? AirAlarmTabChange;
|
||||
|
||||
private Label _address => CDeviceAddress;
|
||||
private Label _deviceTotal => CDeviceTotal;
|
||||
@@ -67,10 +68,14 @@ namespace Content.Client.Atmos.Monitor.UI
|
||||
_gasLabels.Add(gas, gasLabel);
|
||||
}
|
||||
|
||||
_tabContainer.SetTabTitle(0, Loc.GetString("air-alarm-ui-window-tab-gas"));
|
||||
_tabContainer.SetTabTitle(1, Loc.GetString("air-alarm-ui-window-tab-vents"));
|
||||
_tabContainer.SetTabTitle(2, Loc.GetString("air-alarm-ui-window-tab-scrubbers"));
|
||||
_tabContainer.SetTabTitle(3, Loc.GetString("air-alarm-ui-window-tab-thresholds"));
|
||||
_tabContainer.SetTabTitle(0, 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-sensors"));
|
||||
|
||||
_tabContainer.OnTabChanged += idx =>
|
||||
{
|
||||
AirAlarmTabChange!((AirAlarmTab) idx);
|
||||
};
|
||||
|
||||
_resyncDevices.OnPressed += _ =>
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
- type: AtmosAlarmable
|
||||
alarmedBy:
|
||||
- FireAlarm
|
||||
- AirAlarm
|
||||
- GasVentPump # TODO: No
|
||||
- type: ApcPowerReceiver
|
||||
- type: ExtensionCableReceiver
|
||||
- type: DeviceNetwork
|
||||
|
||||
Reference in New Issue
Block a user