sensor info is now wider, air alarm now actually updates the networked device state
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<BoxContainer xmlns="https://spacestation14.io">
|
<BoxContainer xmlns="https://spacestation14.io" HorizontalExpand="True">
|
||||||
<Collapsible Orientation="Vertical">
|
<Collapsible Orientation="Vertical">
|
||||||
<CollapsibleHeading Name="SensorAddress" />
|
<CollapsibleHeading Name="SensorAddress" />
|
||||||
<CollapsibleBody Margin="2">
|
<CollapsibleBody Margin="2">
|
||||||
|
|||||||
@@ -344,20 +344,11 @@ namespace Content.Server.Atmos.Monitor.Systems
|
|||||||
|
|
||||||
if (args.HighestNetworkType == AtmosMonitorAlarmType.Danger)
|
if (args.HighestNetworkType == AtmosMonitorAlarmType.Danger)
|
||||||
{
|
{
|
||||||
SetMode(uid, addr, AirAlarmMode.None, true);
|
SetMode(uid, addr, AirAlarmMode.None, true, false);
|
||||||
// set mode to off to mimic the vents/scrubbers being turned off
|
|
||||||
// update UI
|
|
||||||
//
|
|
||||||
// no, the mode isn't processed here - it's literally just
|
|
||||||
// set to what mimics 'off'
|
|
||||||
}
|
}
|
||||||
else if (args.HighestNetworkType == AtmosMonitorAlarmType.Normal)
|
else if (args.HighestNetworkType == AtmosMonitorAlarmType.Normal)
|
||||||
{
|
{
|
||||||
// if the mode is still set to off, set it to filtering instead
|
SetMode(uid, addr, AirAlarmMode.Filtering, true, false);
|
||||||
// alternatively, set it to the last saved mode
|
|
||||||
//
|
|
||||||
// no, this still doesn't execute the mode
|
|
||||||
SetMode(uid, addr, AirAlarmMode.Filtering, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateUI(uid, component);
|
UpdateUI(uid, component);
|
||||||
|
|||||||
Reference in New Issue
Block a user