Air alarm balancing (#11063)

* threshold balancing, restores none mode on atmos alarm

dear lord, panic mode with unbalanced thresholds was a nightmare

* that was 10%, not 1%

* adds widenet mode for scrubbers

* adds the vents to wide filter as well
This commit is contained in:
Flipp Syder
2022-09-05 19:35:36 -07:00
committed by GitHub
parent 57a19a7480
commit 0882d85176
7 changed files with 56 additions and 5 deletions

View File

@@ -51,7 +51,16 @@ public sealed partial class AirAlarmWindow : DefaultWindow
foreach (var mode in Enum.GetValues<AirAlarmMode>())
{
_modes.AddItem($"{mode}", (int) mode);
var text = mode switch
{
AirAlarmMode.Filtering => "air-alarm-ui-mode-filtering",
AirAlarmMode.WideFiltering => "air-alarm-ui-mode-wide-filtering",
AirAlarmMode.Fill => "air-alarm-ui-mode-fill",
AirAlarmMode.Panic => "air-alarm-ui-mode-panic",
AirAlarmMode.None => "air-alarm-ui-mode-none",
_ => "error"
};
_modes.AddItem(Loc.GetString(text));
}
_modes.OnItemSelected += args =>