Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tweak] Upstream sync #964

Merged
merged 110 commits into from
Dec 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
693e5f1
Update salvage.yml
MissKay1994 Nov 20, 2024
f23b652
Update cargo_vending.yml
MissKay1994 Nov 20, 2024
e96e80b
Update salvage.yml
MissKay1994 Nov 20, 2024
c02a027
Update salvage.yml
MissKay1994 Nov 20, 2024
3758715
electrification hud
slarticodefast Nov 21, 2024
5a9a2d4
Merge branch 'master' into powerhud
slarticodefast Nov 22, 2024
08bfb43
cleanup
slarticodefast Nov 22, 2024
306277a
rename
slarticodefast Nov 22, 2024
de51690
another rename
slarticodefast Nov 22, 2024
a28adf4
baby proof the terminal (#33281)
IProduceWidgets Nov 22, 2024
6bc2054
Automatic changelog update
PJBot Nov 22, 2024
f7626a3
[Maps] Astra Winter Update (#2798)
lastPechkin Nov 22, 2024
0d72dc3
Automatic changelog update
IanComradeBot Nov 22, 2024
6169070
Fix salvage vendor inventory (#33437)
metalgearsloth Nov 23, 2024
d8ecf12
Automatic changelog update
PJBot Nov 23, 2024
d44f76d
Displacement maps for Vulpas and Reptiles (#2447)
Litogin Nov 23, 2024
5409815
Allow AI and observers to see electrified doors (#33466)
metalgearsloth Nov 23, 2024
7feafcb
Automatic changelog update
PJBot Nov 23, 2024
0a587c9
Disable submit admin note button on switch to note (#33456)
Winkarst-cpu Nov 23, 2024
1e93e12
Automatic changelog update
PJBot Nov 23, 2024
a42bacd
Fix startingGear storage (#33394)
MetalSage Nov 23, 2024
bdf4a46
Minor improvements & fixes to Shuttle Console UI (#31623)
eoineoineoin Nov 23, 2024
c3786a5
Fix door animations mispredicting if closing is interrupted (#33481)
metalgearsloth Nov 23, 2024
bde8585
Automatic changelog update
PJBot Nov 23, 2024
11dae2f
Don't show drag-drop outline if climbing (#33477)
metalgearsloth Nov 23, 2024
45af6a1
Automatic changelog update
PJBot Nov 23, 2024
855547a
Ensure wires can always be cut (#32447)
goet Nov 23, 2024
4cecf99
Automatic changelog update
PJBot Nov 23, 2024
fab9993
babyproof arrivals shuttle (#33284)
IProduceWidgets Nov 23, 2024
8522ffe
Automatic changelog update
PJBot Nov 23, 2024
11dbf50
Add delay to AutoOrient (#33479)
metalgearsloth Nov 23, 2024
e958c0c
Automatic changelog update
PJBot Nov 23, 2024
ef89d5c
Update Credits (#33503)
github-actions[bot] Nov 24, 2024
f706170
Draw muzzle flash below mobs (#33465)
Winkarst-cpu Nov 24, 2024
2229a6a
Automatic changelog update
PJBot Nov 24, 2024
aa80a88
Allow shuttles on planets to make FTL jump (#33507)
MilenVolf Nov 24, 2024
84df2b8
Automatic changelog update
PJBot Nov 24, 2024
e436a50
fix exped caves generation (#32890)
deltanedas Nov 24, 2024
91b9d4a
Automatic changelog update
PJBot Nov 24, 2024
cae49ae
various material & ore inhands (#33342)
muburu Nov 24, 2024
d642ee7
Delete HOS headset from warden's locker (#33234)
kosticia Nov 25, 2024
69118ce
RCD icons resprite (#2800)
SonicHDC Nov 25, 2024
3c6c5ab
fix airlocks inconsistently auto-closing after unbolting (#33524)
slarticodefast Nov 25, 2024
ed2cd23
Automatic changelog update
PJBot Nov 25, 2024
86a3d16
baby proof the terminal (#33281)
IProduceWidgets Nov 22, 2024
9a898bb
babyproof arrivals shuttle (#33284)
IProduceWidgets Nov 23, 2024
f53e3ec
[BUGFIX] "Ghost" in the lobby lets you see the whole chat (#33529)
Schrodinger71 Nov 25, 2024
da9b2e6
Automatic changelog update
PJBot Nov 25, 2024
14103e7
Hotfix babyproof arrivals terminal and arrivals shuttle (#33538)
Errant-4 Nov 25, 2024
32f48d9
removed obsolete netmessage creator (#33542)
benev0 Nov 25, 2024
ea7f543
Fix RA0003 warning for ChatBox (#33531)
CrafterKolyan Nov 25, 2024
45cf4ec
Shark plushies now goes rawr on hit. (#33540)
Minemoder5000 Nov 25, 2024
ae576ab
Automatic changelog update
PJBot Nov 25, 2024
49724a9
Turn off PointLights on VendingMachines when broken or off. (#33513)
red15 Nov 25, 2024
b8466d8
Automatic changelog update
PJBot Nov 25, 2024
b8c8f7d
Adds more diona names (#33066)
Flareguy Nov 25, 2024
f0e9de8
"Borgimorph" Release 2024-11-22 (#33544)
VasilisThePikachu Nov 25, 2024
e9eca82
minor AI cleanup (#33555)
slarticodefast Nov 25, 2024
f27fa1e
Simplify separated screen top menu (#33047)
metalgearsloth Nov 26, 2024
a69fc39
Automatic changelog update
PJBot Nov 26, 2024
ca96bb5
[Maps] Maus Winter Update (#2803)
Meguneri Nov 26, 2024
e0943f8
[MAPS] Paper tweak (#2804)
XsenonDash Nov 26, 2024
d675aa9
Automatic changelog update
IanComradeBot Nov 26, 2024
d5225d1
Ghost role drop-down alignment (#33397)
Intoxicating-Innocence Nov 26, 2024
470c869
Greytide Virus station event (#33547)
slarticodefast Nov 26, 2024
41d2cf1
Make shuttle airlocks not snapcardinals (#33557)
Winkarst-cpu Nov 26, 2024
dfc3562
Automatic changelog update
PJBot Nov 26, 2024
4171067
[MAPS] Avrite winter (#2806)
CaptainMaru Nov 26, 2024
ab7221e
Added two N2 lockers to Reach (#33409)
dylanstrategie Nov 26, 2024
eb95403
Hotfix the randomly occurring DeleteAllThenGhost test failures (#33582)
Errant-4 Nov 26, 2024
c861c56
Fix space ambient music (#33594)
slarticodefast Nov 27, 2024
6187675
Automatic changelog update
PJBot Nov 27, 2024
8ea388b
Fix windoor and high security door not showing electrocution HUD (#33…
slarticodefast Nov 27, 2024
1b6c9e8
Automatic changelog update
PJBot Nov 27, 2024
1bc6562
Merge stable into master: Hotfix the randomly occurring DeleteAllThen…
VasilisThePikachu Nov 27, 2024
4c09d28
[Maps] Awesome new god update (#2811)
Stubaretka24 Nov 28, 2024
7e2fd39
[Maps] Avrite minor change (#2810)
CaptainMaru Nov 28, 2024
932bade
Automatic changelog update
IanComradeBot Nov 28, 2024
56fd7cb
Removes burnt tiles (#33422)
Flareguy Nov 28, 2024
34a23c3
Parallax pack 2 (#2813)
SonicHDC Nov 28, 2024
9704ed7
Added Oppenhopper poster to the game. (#33588)
ScarKy0 Nov 28, 2024
ac65c5a
Fix version for electril_grill meta.json (#33611)
AlexUm418 Nov 28, 2024
de613e4
Fix gauze eyepatch flying pixel (#33564)
fqqf Nov 28, 2024
a206acc
Fix swapped uniform printer east/west sprites (#33442)
SpaceManiac Nov 28, 2024
f6813e3
Makes knives fly straight when thrown (#33615)
SpaceRox1244 Nov 28, 2024
a790955
Light verb is now predicted (#33622)
beck-thompson Nov 28, 2024
6463e7e
Automatic changelog update
PJBot Nov 28, 2024
4a21ed8
Update `Content.PatreonParser` to use `net8.0` `TargetFramework` (#33…
CrafterKolyan Nov 28, 2024
b53c8ea
Approval labeler fix electric boogaloo (#33633)
VasilisThePikachu Nov 28, 2024
93bdd81
Fix gender, maybe (#33631)
Alpha-Two Nov 29, 2024
360f698
Display GPS coordinates on their own line (#33625)
arimah Nov 29, 2024
2e34057
Automatic changelog update
PJBot Nov 29, 2024
422d1a9
Remove grasshopper from the panic bunker message (#33638)
VasilisThePikachu Nov 29, 2024
3ad227a
Add admin log for ghost warping (#33636)
DrSmugleaf Nov 29, 2024
bbdadd7
Automatic changelog update
PJBot Nov 29, 2024
87d6b0b
Rename nitrogen internals crate (#33545)
MossyGreySlope Nov 29, 2024
f99331a
Automatic changelog update
PJBot Nov 29, 2024
6c86d7b
Cleanup some Client atmos systems (#33634)
MilenVolf Nov 30, 2024
9236e9e
Fix for arrivals deleting nuke (#33659)
GansuLalan Nov 30, 2024
17a224c
Automatic changelog update
PJBot Nov 30, 2024
54a9dce
add locale to Shuttle Console Map tab (#33651)
VlaDOS1408 Nov 30, 2024
e9ef00f
Automatic changelog update
PJBot Nov 30, 2024
b45c9d5
fix PermanentBlindnessComponent to be not so permanent (#33292)
lunarcomets Nov 30, 2024
08db47c
Cog/Marathon: Airlock fixes (#33621)
jbox144 Nov 30, 2024
8679158
Automatic changelog update
PJBot Nov 30, 2024
24c380d
Revert "Rebalancing zombie mode chances" (#2818)
Vonsant Nov 30, 2024
ae4b05e
Automatic changelog update
IanComradeBot Nov 30, 2024
18976d0
Merge remote-tracking branch 'wizard/master' into upstream-sync
Roudenn Nov 30, 2024
e035b48
Merge remote-tracking branch 'corvax/master' into upstream-sync
Roudenn Nov 30, 2024
a995ec3
Merge branch 'master' into upstream-sync
Roudenn Nov 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/labeler-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
username: ${{ github.actor }}
team: "content-maintainers,junior-maintainers"
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.LABELER_PAT }}
- if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}
uses: actions-ecosystem/action-add-labels@v1
with:
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Administration/UI/Notes/NoteEdit.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ private void OnTypeChanged(OptionButton.ItemSelectedEventArgs args)
SecretCheckBox.Pressed = false;
SeverityOption.Disabled = false;
PermanentCheckBox.Pressed = true;
SubmitButton.Disabled = true;
UpdatePermanentCheckboxFields();
break;
case (int) NoteType.Message: // Message: these are shown to the player when they log on
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using Robust.Shared.GameObjects;

namespace Content.Client.Atmos.Components;

[RegisterComponent]
public sealed partial class PipeColorVisualsComponent : Component
{
}
public sealed partial class PipeColorVisualsComponent : Component;
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<BoxContainer xmlns="https://spacestation14.io"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="clr-namespace:Content.Client.Stylesheets"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Orientation="Vertical" HorizontalExpand ="True" Margin="0 0 0 3">
Expand Down Expand Up @@ -62,7 +61,7 @@
</PanelContainer>
</BoxContainer>

<!-- If the alarm is inactive, this is label is diplayed instead -->
<!-- If the alarm is inactive, this is label is displayed instead -->
<Label Name="NoDataLabel" Text="{Loc 'atmos-alerts-window-no-data-available'}" HorizontalAlignment="Center" Margin="0 15" FontColorOverride="#a9a9a9" ReservesSpace="False" Visible="False"></Label>

<!-- Silencing progress bar -->
Expand Down
11 changes: 5 additions & 6 deletions Content.Client/Atmos/Consoles/AtmosAlarmEntryContainer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ public void UpdateEntry(AtmosAlertsComputerEntry entry, bool isFocus, AtmosAlert
GasGridContainer.RemoveAllChildren();

var gasData = focusData.Value.GasData.Where(g => g.Key != Gas.Oxygen);
var keyValuePairs = gasData.ToList();

if (gasData.Count() == 0)
if (keyValuePairs.Count == 0)
{
// No other gases
var gasLabel = new Label()
Expand All @@ -158,13 +159,11 @@ public void UpdateEntry(AtmosAlertsComputerEntry entry, bool isFocus, AtmosAlert
else
{
// Add an entry for each gas
foreach ((var gas, (var mol, var percent, var alert)) in gasData)
foreach ((var gas, (var mol, var percent, var alert)) in keyValuePairs)
{
var gasPercent = (FixedPoint2)0f;
gasPercent = percent * 100f;
FixedPoint2 gasPercent = percent * 100f;

if (!_gasShorthands.TryGetValue(gas, out var gasShorthand))
gasShorthand = "X";
var gasShorthand = _gasShorthands.GetValueOrDefault(gas, "X");

var gasLabel = new Label()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ protected override void Open()
_menu = new AtmosAlertsComputerWindow(this, Owner);
_menu.OpenCentered();
_menu.OnClose += Close;

EntMan.TryGetComponent<TransformComponent>(Owner, out var xform);
}

protected override void UpdateState(BoundUserInterfaceState state)
Expand All @@ -24,9 +22,6 @@ protected override void UpdateState(BoundUserInterfaceState state)

var castState = (AtmosAlertsComputerBoundInterfaceState) state;

if (castState == null)
return;

EntMan.TryGetComponent<TransformComponent>(Owner, out var xform);
_menu?.UpdateUI(xform?.Coordinates, castState.AirAlarms, castState.FireAlarms, castState.FocusData);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:ui="clr-namespace:Content.Client.Pinpointer.UI"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
Title="{Loc 'atmos-alerts-window-title'}"
Resizable="False"
SetSize="1120 750"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using Content.Shared.Atmos.Piping;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Client.ResourceManagement;
using Robust.Shared.Serialization.TypeSerializers.Implementations;

namespace Content.Client.Atmos.EntitySystems;

Expand All @@ -19,7 +17,7 @@ public override void Initialize()
base.Initialize();

SubscribeLocalEvent<PipeAppearanceComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<PipeAppearanceComponent, AppearanceChangeEvent>(OnAppearanceChanged, after: new[] { typeof(SubFloorHideSystem) });
SubscribeLocalEvent<PipeAppearanceComponent, AppearanceChangeEvent>(OnAppearanceChanged, after: [typeof(SubFloorHideSystem)]);
}

private void OnInit(EntityUid uid, PipeAppearanceComponent component, ComponentInit args)
Expand Down Expand Up @@ -84,7 +82,8 @@ private void OnAppearanceChanged(EntityUid uid, PipeAppearanceComponent componen

layer.Visible &= visible;

if (!visible) continue;
if (!visible)
continue;

layer.Color = color;
}
Expand Down
9 changes: 2 additions & 7 deletions Content.Client/Atmos/Monitor/AtmosAlarmableVisualsSystem.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using System.Collections.Generic;
using Content.Shared.Atmos.Monitor;
using Content.Shared.Power;
using Robust.Client.GameObjects;
using Robust.Client.Graphics;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;

namespace Content.Client.Atmos.Monitor;

Expand All @@ -27,7 +22,7 @@ protected override void OnAppearanceChange(EntityUid uid, AtmosAlarmableVisualsC
{
foreach (var visLayer in component.HideOnDepowered)
{
if (args.Sprite.LayerMapTryGet(visLayer, out int powerVisibilityLayer))
if (args.Sprite.LayerMapTryGet(visLayer, out var powerVisibilityLayer))
args.Sprite.LayerSetVisible(powerVisibilityLayer, powered);
}
}
Expand All @@ -36,7 +31,7 @@ protected override void OnAppearanceChange(EntityUid uid, AtmosAlarmableVisualsC
{
foreach (var (setLayer, powerState) in component.SetOnDepowered)
{
if (args.Sprite.LayerMapTryGet(setLayer, out int setStateLayer))
if (args.Sprite.LayerMapTryGet(setLayer, out var setStateLayer))
args.Sprite.LayerSetState(setStateLayer, new RSI.StateId(powerState));
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using Content.Shared.Atmos;
using Content.Shared.Atmos.Monitor;
using Content.Shared.Atmos.Monitor.Components;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Log;

namespace Content.Client.Atmos.Monitor.UI;

Expand Down Expand Up @@ -78,6 +74,7 @@ protected override void Dispose(bool disposing)
{
base.Dispose(disposing);

if (disposing) _window?.Dispose();
if (disposing)
_window?.Dispose();
}
}
21 changes: 8 additions & 13 deletions Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Content.Shared.Atmos.Piping.Unary.Components;
using Content.Shared.Temperature;
using Robust.Client.AutoGenerated;
using Robust.Client.GameObjects;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;

Expand Down Expand Up @@ -59,7 +58,7 @@ public AirAlarmWindow()
AirAlarmMode.Fill => "air-alarm-ui-mode-fill",
AirAlarmMode.Panic => "air-alarm-ui-mode-panic",
AirAlarmMode.None => "air-alarm-ui-mode-none",
_ => "error"
_ => "error",
};
_modes.AddItem(Loc.GetString(text));
}
Expand All @@ -70,7 +69,7 @@ public AirAlarmWindow()
AirAlarmModeChanged!.Invoke((AirAlarmMode) args.Id);
};

_autoMode.OnToggled += args =>
_autoMode.OnToggled += _ =>
{
AutoModeChanged!.Invoke(_autoMode.Pressed);
};
Expand Down Expand Up @@ -176,22 +175,18 @@ public void UpdateDeviceData(string addr, IAtmosDeviceData device)

public static Color ColorForThreshold(float amount, AtmosAlarmThreshold threshold)
{
threshold.CheckThreshold(amount, out AtmosAlarmType curAlarm);
threshold.CheckThreshold(amount, out var curAlarm);
return ColorForAlarm(curAlarm);
}

public static Color ColorForAlarm(AtmosAlarmType curAlarm)
{
if(curAlarm == AtmosAlarmType.Danger)
return curAlarm switch
{
return StyleNano.DangerousRedFore;
}
else if(curAlarm == AtmosAlarmType.Warning)
{
return StyleNano.ConcerningOrangeFore;
}

return StyleNano.GoodGreenFore;
AtmosAlarmType.Danger => StyleNano.DangerousRedFore,
AtmosAlarmType.Warning => StyleNano.ConcerningOrangeFore,
_ => StyleNano.GoodGreenFore,
};
}


Expand Down
8 changes: 2 additions & 6 deletions Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
using System;
using Content.Shared.Atmos.Monitor;
using Content.Shared.Atmos.Monitor.Components;
using Content.Shared.Atmos.Piping.Unary.Components;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Localization;

namespace Content.Client.Atmos.Monitor.UI.Widgets;

Expand All @@ -25,7 +21,7 @@ public sealed partial class PumpControl : BoxContainer
private OptionButton _pressureCheck => CPressureCheck;
private FloatSpinBox _externalBound => CExternalBound;
private FloatSpinBox _internalBound => CInternalBound;
private Button _copySettings => CCopySettings;
private Button _copySettings => CCopySettings;

public PumpControl(GasVentPumpData data, string address)
{
Expand Down Expand Up @@ -86,7 +82,7 @@ public PumpControl(GasVentPumpData data, string address)
_data.PressureChecks = (VentPressureBound) args.Id;
PumpDataChanged?.Invoke(_address, _data);
};

_copySettings.OnPressed += _ =>
{
PumpDataCopied?.Invoke(_data);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Content.Shared.Atmos;
using Content.Shared.Atmos.Monitor;
using Content.Shared.Atmos.Monitor.Components;
using Content.Shared.Atmos.Piping.Unary.Components;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Localization;

namespace Content.Client.Atmos.Monitor.UI.Widgets;

Expand All @@ -27,7 +21,7 @@ public sealed partial class ScrubberControl : BoxContainer
private OptionButton _pumpDirection => CPumpDirection;
private FloatSpinBox _volumeRate => CVolumeRate;
private CheckBox _wideNet => CWideNet;
private Button _copySettings => CCopySettings;
private Button _copySettings => CCopySettings;

private GridContainer _gases => CGasContainer;
private Dictionary<Gas, Button> _gasControls = new();
Expand Down Expand Up @@ -77,7 +71,7 @@ public ScrubberControl(GasVentScrubberData data, string address)
_data.PumpDirection = (ScrubberPumpDirection) args.Id;
ScrubberDataChanged?.Invoke(_address, _data);
};

_copySettings.OnPressed += _ =>
{
ScrubberDataCopied?.Invoke(_data);
Expand Down
13 changes: 8 additions & 5 deletions Content.Client/Atmos/Monitor/UI/Widgets/SensorInfo.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public SensorInfo(AtmosSensorData data, string address)
var label = new RichTextLabel();

var fractionGas = amount / data.TotalMoles;
label.SetMarkup(Loc.GetString("air-alarm-ui-gases-indicator", ("gas", $"{gas}"),
label.SetMarkup(Loc.GetString("air-alarm-ui-gases-indicator",
("gas", $"{gas}"),
("color", AirAlarmWindow.ColorForThreshold(fractionGas, data.GasThresholds[gas])),
("amount", $"{amount:0.####}"),
("percentage", $"{(100 * fractionGas):0.##}")));
Expand All @@ -53,9 +54,9 @@ public SensorInfo(AtmosSensorData data, string address)
var threshold = data.GasThresholds[gas];
var gasThresholdControl = new ThresholdControl(Loc.GetString($"air-alarm-ui-thresholds-gas-title", ("gas", $"{gas}")), threshold, AtmosMonitorThresholdType.Gas, gas, 100);
gasThresholdControl.Margin = new Thickness(20, 2, 2, 2);
gasThresholdControl.ThresholdDataChanged += (type, threshold, arg3) =>
gasThresholdControl.ThresholdDataChanged += (type, alarmThreshold, arg3) =>
{
OnThresholdUpdate!(_address, type, threshold, arg3);
OnThresholdUpdate!(_address, type, alarmThreshold, arg3);
};

_gasThresholds.Add(gas, gasThresholdControl);
Expand All @@ -64,7 +65,8 @@ public SensorInfo(AtmosSensorData data, string address)

_pressureThreshold = new ThresholdControl(Loc.GetString("air-alarm-ui-thresholds-pressure-title"), data.PressureThreshold, AtmosMonitorThresholdType.Pressure);
PressureThresholdContainer.AddChild(_pressureThreshold);
_temperatureThreshold = new ThresholdControl(Loc.GetString("air-alarm-ui-thresholds-temperature-title"), data.TemperatureThreshold,
_temperatureThreshold = new ThresholdControl(Loc.GetString("air-alarm-ui-thresholds-temperature-title"),
data.TemperatureThreshold,
AtmosMonitorThresholdType.Temperature);
TemperatureThresholdContainer.AddChild(_temperatureThreshold);

Expand Down Expand Up @@ -103,7 +105,8 @@ public void ChangeData(AtmosSensorData data)
}

var fractionGas = amount / data.TotalMoles;
label.SetMarkup(Loc.GetString("air-alarm-ui-gases-indicator", ("gas", $"{gas}"),
label.SetMarkup(Loc.GetString("air-alarm-ui-gases-indicator",
("gas", $"{gas}"),
("color", AirAlarmWindow.ColorForThreshold(fractionGas, data.GasThresholds[gas])),
("amount", $"{amount:0.####}"),
("percentage", $"{(100 * fractionGas):0.##}")));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Content.Client.Message;
using Content.Shared.Atmos;
using Content.Shared.Atmos.Monitor;
using Content.Shared.Temperature;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
Expand Down
Loading
Loading