air alarm window changes, firelock alarmable
This commit is contained in:
@@ -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"/>
|
||||||
|
|||||||
@@ -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 += _ =>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user