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

upstream merge 7/12 #2389

Merged
merged 220 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
2b227b5
Edited Snow White reaction to output proper amount of drink. (#33331)
RedBookcase Nov 15, 2024
f88cd33
Automatic changelog update
PJBot Nov 15, 2024
22984f6
Add succumb action 10 sec delay (#32985)
lzk228 Nov 15, 2024
86edb19
Automatic changelog update
PJBot Nov 15, 2024
05fe5b7
Adds gorilla gauntlet storage sprite and updates hit sound (#33167)
SpaceRox1244 Nov 15, 2024
8abdafc
Clumsy system refactor (#31147)
beck-thompson Nov 15, 2024
321361c
Automatic changelog update
PJBot Nov 15, 2024
c86c203
S: Awaiting Changes
ScarKy0 Nov 16, 2024
c65ab51
Improve crayon UI to not be stuck in 1996 (#33101)
SaphireLattice Nov 16, 2024
3fd5080
Automatic changelog update
PJBot Nov 16, 2024
da4e63f
BRB sign in the Bureaucracy Crate (#33341)
southbridge-fur Nov 16, 2024
968ea7b
Automatic changelog update
PJBot Nov 16, 2024
8e0b24b
Fix utensils not being thrown away (#33326)
SaphireLattice Nov 16, 2024
fda37fe
Automatic changelog update
PJBot Nov 16, 2024
875ab71
Fix server crash when the seed extractor is used on the dev map (#33312)
MossyGreySlope Nov 16, 2024
818342f
Solar assembly crate buff (#33019)
K-Dynamic Nov 16, 2024
a8c6df7
Automatic changelog update
PJBot Nov 16, 2024
d13b240
Add admin remarks button to lobby (#31761)
dffdff2423 Nov 16, 2024
eba0496
Automatic changelog update
PJBot Nov 16, 2024
363e9aa
Temporarily make singularity a bit harder to loose as non-antag
SaphireLattice Nov 16, 2024
a8a9c2f
Fix Fluent string ID copypaste fail
SaphireLattice Nov 16, 2024
f7b57d2
Fix the component defaults
SaphireLattice Nov 16, 2024
52db831
Throwing Knife description tweak (#33349)
ThatGuyUSA Nov 17, 2024
5702679
Adds paper label visuals to closets and lockers (#33318)
SpaceRox1244 Nov 17, 2024
315262d
Automatic changelog update
PJBot Nov 17, 2024
6fe0d46
Wizard Summon Guns/Magic (#32692)
ActiveMammmoth Nov 17, 2024
d383ee6
Changes + Cleanup
ScarKy0 Nov 17, 2024
d7fc946
Chemical synthesis kit tweak (#33345)
ThatGuyUSA Nov 17, 2024
057dd59
Reduced cost of coloured light fixtures
SpaceLizard24 Nov 17, 2024
8eefeba
Dim light bulbs (#33383)
UbaserB Nov 18, 2024
e83826b
Automatic changelog update
PJBot Nov 18, 2024
b4ca3de
Shift air alarm sprites to better reflect their direction (#33379)
SpaceManiac Nov 18, 2024
4b3bdc9
Replace direct uses of GameTicker dictionary with `TryGetValue` (#33222)
ficcialfaint Nov 18, 2024
d9f8382
Service Worker Job Icon Change (#33361)
spanky-spanky Nov 18, 2024
f6ff4c7
Bump the failsafe timer down
SaphireLattice Nov 19, 2024
eba8a40
fix viewing nav slowing shuttle down (#32381)
Ilya246 Nov 19, 2024
50400ea
Automatic changelog update
PJBot Nov 19, 2024
bb9a9aa
Welded secret doors no longer say they are welded shut. (#33365)
ScarKy0 Nov 19, 2024
c90ea42
Automatic changelog update
PJBot Nov 19, 2024
48921a6
Toggle clothing fix (#32826)
ArZarLordOfMango Nov 19, 2024
f566d5e
Automatic changelog update
PJBot Nov 19, 2024
7ece549
.NET 9 forward compatibility changes (#33421)
PJB3005 Nov 20, 2024
e7c48b4
Fix security riot crate (#33415)
Plykiya Nov 20, 2024
abac268
Localize planet dataset names (#33398)
MilenVolf Nov 20, 2024
4cd4bfb
Automatic changelog update
PJBot Nov 20, 2024
a660427
Remove drag & drop dropping items from containers (#32706)
SlamBamActionman Nov 20, 2024
93fa195
Automatic changelog update
PJBot Nov 20, 2024
965d58b
Crew monitoring crate updated to contain flatpacks, science access in…
Plykiya Nov 20, 2024
6c6b0e1
Automatic changelog update
PJBot Nov 20, 2024
0ede705
Add emag functionality
SlamBamActionman Nov 19, 2024
c437a5d
Move some of the new singularity code into shared
SaphireLattice Nov 20, 2024
c80f150
Fix toggle verbs (#32138)
beck-thompson Nov 20, 2024
6868320
Construction menu grid view (#32577)
qwerltaz Nov 20, 2024
e82b19e
Automatic changelog update
PJBot Nov 20, 2024
793c890
Automatic changelog update
PJBot Nov 20, 2024
5548606
Automatic changelog update
PJBot Nov 20, 2024
8bcd3de
Actually make the emagging popup work properly
SaphireLattice Nov 20, 2024
078dbfb
Move PlayerBeforeSpawnEvent and PlayerSpawnCompleteEvent to Shared
DrSmugleaf Nov 20, 2024
12781b4
Fix imports
DrSmugleaf Nov 20, 2024
c260126
Automatic changelog update
PJBot Nov 20, 2024
684b685
Automatic changelog update
PJBot Nov 20, 2024
35862c3
Automatic changelog update
PJBot Nov 20, 2024
a89b40d
Set airlock unlit layers as invisible (#32484)
metalgearsloth Nov 20, 2024
a44b50d
Syndicate item fix ups (#33435)
ThatGuyUSA Nov 21, 2024
1689950
Coal presents and chrimmas tree options. Presents no longer itemify (…
IProduceWidgets Nov 21, 2024
54e0e66
Automatic changelog update
PJBot Nov 21, 2024
f6dda6b
electrification hud
slarticodefast Nov 21, 2024
4ba7569
Fix admin ghosts not being able to see items in pockets or interact w…
DrSmugleaf Nov 22, 2024
3212e8a
Automatic changelog update
PJBot Nov 22, 2024
48ad7a9
Gas pipe sensors (#33128)
chromiumboy Nov 22, 2024
acaa992
Automatic changelog update
PJBot Nov 22, 2024
588357d
Add telegram to the server info-links (#33459)
c4llv07e Nov 22, 2024
b7a7cec
cleanup
slarticodefast Nov 22, 2024
7768bea
rename
slarticodefast Nov 22, 2024
639b405
another rename
slarticodefast Nov 22, 2024
d4f4f62
baby proof the terminal (#33281)
IProduceWidgets Nov 22, 2024
d86e9a6
Automatic changelog update
PJBot Nov 22, 2024
b6d1ad3
Automatic changelog update
PJBot Nov 23, 2024
168dbae
Automatic changelog update
PJBot Nov 23, 2024
c1792c6
Disable submit admin note button on switch to note (#33456)
Winkarst-cpu Nov 23, 2024
a569885
Automatic changelog update
PJBot Nov 23, 2024
147cd40
Fix startingGear storage (#33394)
MetalSage Nov 23, 2024
a10464a
Minor improvements & fixes to Shuttle Console UI (#31623)
eoineoineoin Nov 23, 2024
78f256b
Fix door animations mispredicting if closing is interrupted (#33481)
metalgearsloth Nov 23, 2024
dce71a4
Automatic changelog update
PJBot Nov 23, 2024
8aab044
Don't show drag-drop outline if climbing (#33477)
metalgearsloth Nov 23, 2024
c671a7f
Automatic changelog update
PJBot Nov 23, 2024
62cf573
Ensure wires can always be cut (#32447)
goet Nov 23, 2024
cfd6106
Automatic changelog update
PJBot Nov 23, 2024
8c33e1e
babyproof arrivals shuttle (#33284)
IProduceWidgets Nov 23, 2024
8073c5d
Automatic changelog update
PJBot Nov 23, 2024
2b8a773
Add delay to AutoOrient (#33479)
metalgearsloth Nov 23, 2024
10f0874
Automatic changelog update
PJBot Nov 23, 2024
357f8a7
Draw muzzle flash below mobs (#33465)
Winkarst-cpu Nov 24, 2024
ae3e026
Automatic changelog update
PJBot Nov 24, 2024
5e8009c
Allow shuttles on planets to make FTL jump (#33507)
MilenVolf Nov 24, 2024
60122e3
Automatic changelog update
PJBot Nov 24, 2024
d9a5073
fix exped caves generation (#32890)
deltanedas Nov 24, 2024
4941a55
Automatic changelog update
PJBot Nov 24, 2024
5f0c684
various material & ore inhands (#33342)
muburu Nov 24, 2024
76a72bf
Delete HOS headset from warden's locker (#33234)
kosticia Nov 25, 2024
872da7d
fix airlocks inconsistently auto-closing after unbolting (#33524)
slarticodefast Nov 25, 2024
d43d2a5
Automatic changelog update
PJBot Nov 25, 2024
97fe9b1
[BUGFIX] "Ghost" in the lobby lets you see the whole chat (#33529)
Schrodinger71 Nov 25, 2024
dc3712f
removed obsolete netmessage creator (#33542)
benev0 Nov 25, 2024
c129540
Fix RA0003 warning for ChatBox (#33531)
CrafterKolyan Nov 25, 2024
b246bc7
Shark plushies now goes rawr on hit. (#33540)
Minemoder5000 Nov 25, 2024
7870b59
Automatic changelog update
PJBot Nov 25, 2024
810880d
Turn off PointLights on VendingMachines when broken or off. (#33513)
red15 Nov 25, 2024
2be2c15
Automatic changelog update
PJBot Nov 25, 2024
80a07fe
Adds more diona names (#33066)
Flareguy Nov 25, 2024
a7d4d98
minor AI cleanup (#33555)
slarticodefast Nov 25, 2024
33fa47e
Simplify separated screen top menu (#33047)
metalgearsloth Nov 26, 2024
91ee381
Automatic changelog update
PJBot Nov 26, 2024
db85e1c
Ghost role drop-down alignment (#33397)
Intoxicating-Innocence Nov 26, 2024
f193b67
Greytide Virus station event (#33547)
slarticodefast Nov 26, 2024
f0fe85d
Make shuttle airlocks not snapcardinals (#33557)
Winkarst-cpu Nov 26, 2024
9b55284
Automatic changelog update
PJBot Nov 26, 2024
9985152
Fix space ambient music (#33594)
slarticodefast Nov 27, 2024
4a98501
Automatic changelog update
PJBot Nov 27, 2024
86d3dcb
Fix windoor and high security door not showing electrocution HUD (#33…
slarticodefast Nov 27, 2024
6995acd
Automatic changelog update
PJBot Nov 27, 2024
8980440
Removes burnt tiles (#33422)
Flareguy Nov 28, 2024
581a51e
Added Oppenhopper poster to the game. (#33588)
ScarKy0 Nov 28, 2024
a106137
Fix version for electril_grill meta.json (#33611)
AlexUm418 Nov 28, 2024
7560ae6
Fix gauze eyepatch flying pixel (#33564)
fqqf Nov 28, 2024
08e1a15
Fix swapped uniform printer east/west sprites (#33442)
SpaceManiac Nov 28, 2024
ce9a535
Makes knives fly straight when thrown (#33615)
SpaceRox1244 Nov 28, 2024
df595e1
Light verb is now predicted (#33622)
beck-thompson Nov 28, 2024
894101e
Automatic changelog update
PJBot Nov 28, 2024
cbd3f4d
Update `Content.PatreonParser` to use `net8.0` `TargetFramework` (#33…
CrafterKolyan Nov 28, 2024
df0cc19
Fix gender, maybe (#33631)
Alpha-Two Nov 29, 2024
7f5188f
Display GPS coordinates on their own line (#33625)
arimah Nov 29, 2024
e217653
Automatic changelog update
PJBot Nov 29, 2024
863b965
Add admin log for ghost warping (#33636)
DrSmugleaf Nov 29, 2024
ead4676
Automatic changelog update
PJBot Nov 29, 2024
024b871
Rename nitrogen internals crate (#33545)
MossyGreySlope Nov 29, 2024
2e7c385
Automatic changelog update
PJBot Nov 29, 2024
b345664
Cleanup some Client atmos systems (#33634)
MilenVolf Nov 30, 2024
eb45cad
Fix for arrivals deleting nuke (#33659)
GansuLalan Nov 30, 2024
bb7b22f
Automatic changelog update
PJBot Nov 30, 2024
da047e5
add locale to Shuttle Console Map tab (#33651)
VlaDOS1408 Nov 30, 2024
99a5b98
Automatic changelog update
PJBot Nov 30, 2024
d1b427b
fix PermanentBlindnessComponent to be not so permanent (#33292)
lunarcomets Nov 30, 2024
32981de
Automatic changelog update
PJBot Nov 30, 2024
4299bcf
Fix for handcuffing someone more than once (#33646)
Plykiya Nov 30, 2024
efa2c69
Automatic changelog update
PJBot Nov 30, 2024
a8e0295
Fix for inspecting entities in hand (#33642)
Plykiya Nov 30, 2024
7225836
Automatic changelog update
PJBot Nov 30, 2024
f8d7995
Fix for inspecting entities in the stripping window (#33644)
Plykiya Nov 30, 2024
84ea983
Automatic changelog update
PJBot Nov 30, 2024
4471e17
Fix borgs not getting names on roundstart (#33578)
Winkarst-cpu Nov 30, 2024
b699ea2
Automatic changelog update
PJBot Nov 30, 2024
5f07969
Require Wield To Activate Double-bladed ESword (#32869)
thetolbean Nov 30, 2024
be0fece
Automatic changelog update
PJBot Nov 30, 2024
0cd0206
Fix makeghostroleraffle command where 4 arguments (#31836)
TokenStyle Nov 30, 2024
98f183b
Automatic changelog update
PJBot Nov 30, 2024
42c4bb0
this isnt needed anymore
Dec 7, 2024
511a3ac
Fix formatting IDE0055 warnings in VS Code (#33669)
CrafterKolyan Dec 1, 2024
9b4b264
Replace obsolete GetTilesIntersecting methods (#32455)
MilenVolf Dec 1, 2024
00d2e32
Automatic changelog update
PJBot Dec 1, 2024
c05a974
Fix wrong system usage (#33679)
MilenVolf Dec 1, 2024
6e02846
Fix BuckleSystem always marking InteractHandEvent as Handled (#33602)
MilenVolf Dec 1, 2024
6c94e2a
Automatic changelog update
PJBot Dec 1, 2024
9f871d3
Fixed ghost role rules for some syndicate familiars (#32457)
JIPDawg Dec 2, 2024
3ac38a4
Automatic changelog update
PJBot Dec 2, 2024
d5e53e9
Fix lobby countdown not showing hours (#33685)
SpaceManiac Dec 2, 2024
1a300a1
Automatic changelog update
PJBot Dec 3, 2024
f5dc4b5
Makes kukri not use combat knife's storage sprite (#33661)
SpaceRox1244 Dec 3, 2024
e42addd
Adds a morgue locked maints airlock (#33693)
IamVelcroboy Dec 3, 2024
6dac602
Juiceable slimeballs (#33660)
luizwritescode Dec 3, 2024
ce7c4b1
Add missing nacho recipes (#33637)
CheddaCheez Dec 3, 2024
16c9dc8
Automatic changelog update
PJBot Dec 3, 2024
5fdfa2a
Fix sinks and toilets not draining (#33691)
Partmedia Dec 4, 2024
f268bc0
Automatic changelog update
PJBot Dec 4, 2024
04862df
Fix layout on wires UI (#33714)
PJB3005 Dec 4, 2024
78e737f
Automatic changelog update
PJBot Dec 4, 2024
95d6819
Fix for towels not having a cooldown for cleaning (#33700)
tapiocaphobe Dec 4, 2024
6a54467
Add cooldown to buttons in borg's laws UI (#31490)
Hreno Dec 4, 2024
ef52ced
Adds Store on Collide and Wand of the Locker (#33710)
keronshb Dec 4, 2024
c00fb53
Automatic changelog update
PJBot Dec 4, 2024
42be836
More device configurator serialization fixes (#33664)
ElectroJr Dec 5, 2024
566e840
Fix meteor's ArithmeticException (#33556)
Winkarst-cpu Dec 5, 2024
b888527
Give vox health regen for poison below 20 damage (#33722)
PJB3005 Dec 5, 2024
f11dbc2
Automatic changelog update
PJBot Dec 5, 2024
e8f57b4
set n2 survival box sprite layers (#33733)
IProduceWidgets Dec 5, 2024
7a24a09
Automatic changelog update
PJBot Dec 5, 2024
e41f317
fix a station event weighting bug (#33584)
IProduceWidgets Dec 6, 2024
668f42a
Automatic changelog update
PJBot Dec 6, 2024
2aa6e82
Adds Station Anchor Beacon (#33711)
IamVelcroboy Dec 6, 2024
365f7be
Fix name duplications (#33740)
MilenVolf Dec 6, 2024
3ae3c4d
Add a maintenance panel to bar signs (#33467)
Winkarst-cpu Dec 6, 2024
68e15f9
Automatic changelog update
PJBot Dec 6, 2024
75918fc
Derelict Borg Revival (#33433)
ScarKy0 Dec 6, 2024
70033fc
Automatic changelog update
PJBot Dec 6, 2024
ac7bd89
vox guidebook update poison regen (#33739)
Errant-4 Dec 6, 2024
94b09d6
Revert "fix debris having nothing (#2280)"
Dec 7, 2024
360db55
Fix debris chunks loot spawning (#33747)
TheShuEd Dec 6, 2024
32437ab
Automatic changelog update
PJBot Dec 6, 2024
d6ba36a
Added several variables to make ClumsyComponent more modular for deve…
widgetbeck Dec 6, 2024
a0ac066
Add Sprite changes to Logic Gates to show the input/output state (#33…
0tito Dec 6, 2024
7bb8140
Samurai dogi is now major contraband (#33699)
K-Dynamic Dec 6, 2024
93eeca4
snake_case to PascalCase for name datasets
MilenVolf Dec 6, 2024
3b57458
clean up random lathe recipes (#31525)
deltanedas Dec 6, 2024
394a1eb
Make unknown shuttle events trigger an announcement (#33450)
Winkarst-cpu Dec 6, 2024
76f8a19
Predicted gas pumps (#33717)
metalgearsloth Dec 7, 2024
adda0e0
Automatic changelog update
PJBot Dec 7, 2024
abc2421
Christmas Nuke Song (#33752)
Piras314 Dec 7, 2024
e1127e1
Automatic changelog update
PJBot Dec 7, 2024
04a126a
infiltrator update (#33759)
Emisse Dec 7, 2024
8851193
Organize the Sandbox Panel window (#33684)
SpaceManiac Dec 7, 2024
40362d2
what
Dec 13, 2024
8484420
Ion storm refactor (#33311)
metalgearsloth Nov 20, 2024
3247cae
reenable greytide virus with changed announcement
Dec 13, 2024
79a58be
move gun execution system to deltav folder, fix it
Dec 13, 2024
c18791f
epic fail
Dec 13, 2024
475cc5b
uncurse energy gun laser
Dec 13, 2024
2a677f1
localize AI names
Dec 14, 2024
6676405
Merge branch 'master' into upstream-ops
deltanedas Dec 14, 2024
8f2587e
Revert "Removes burnt tiles (#33422)"
Dec 17, 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
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions Content.Client/Actions/ActionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ public void UnlinkAllActions()

public void LinkAllActions(ActionsComponent? actions = null)
{
if (_playerManager.LocalEntity is not { } user ||
!Resolve(user, ref actions, false))
{
return;
}
if (_playerManager.LocalEntity is not { } user ||
!Resolve(user, ref actions, false))
{
return;
}

LinkActions?.Invoke(actions);
LinkActions?.Invoke(actions);
}

public override void Shutdown()
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
23 changes: 23 additions & 0 deletions Content.Client/Atmos/EntitySystems/GasPressurePumpSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Content.Client.Atmos.UI;
using Content.Shared.Atmos.Components;
using Content.Shared.Atmos.EntitySystems;
using Content.Shared.Atmos.Piping.Binary.Components;

namespace Content.Client.Atmos.EntitySystems;

public sealed class GasPressurePumpSystem : SharedGasPressurePumpSystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<GasPressurePumpComponent, AfterAutoHandleStateEvent>(OnPumpUpdate);
}

private void OnPumpUpdate(Entity<GasPressurePumpComponent> ent, ref AfterAutoHandleStateEvent args)
{
if (UserInterfaceSystem.TryGetOpenUi<GasPressurePumpBoundUserInterface>(ent.Owner, GasPressurePumpUiKey.Key, out var bui))
{
bui.Update();
}
}
}
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