Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
c19234f
Fix CharacterPickerButton.xaml.cs
Spatison Sep 23, 2025
545021a
Fix for inspecting entities in the stripping window (#33644)
Plykiya Nov 30, 2024
f351e3f
Fix window positions not saving (#35055)
metalgearsloth Feb 23, 2025
8ddcad4
Predict vending machine UI (#33412)
metalgearsloth Mar 2, 2025
2050690
Cleanup some Client atmos systems (#33634)
MilenVolf Nov 30, 2024
fe14acb
Crew Monitor filter (#31659)
Errant-4 Sep 19, 2024
533f48e
Make crew monitor update blips at consistent rates (#32555)
eoineoineoin Jan 27, 2025
a2e4856
Show battery level for selected devices in Power Monitoring Console (…
ArtisticRoomba Dec 19, 2024
4421df8
Use new engine APIs for setting the scroll target of views (#35401)
sowelipililimute Feb 23, 2025
f0583fb
Remove client state from server AirAlarmComponent (#31236)
eoineoineoin Aug 25, 2024
35bc1ff
Add copy threshold button to air alarms (#34346)
southbridge-fur Jan 10, 2025
a4cb985
Dehardcoded Space Heaters UI window title (#34884)
Menshin Feb 4, 2025
a6caabf
Fixes debug assertion crash when inserting cash (#34812)
Plykiya Feb 2, 2025
7bda84e
tyvm, tysm (#28577)
Ghagliiarghii Jun 4, 2024
d318d4e
rn, atp (#28674)
MerrytheManokit Jun 8, 2024
3417fdd
Istg, rq, and dw (#30216)
MerrytheManokit Jul 22, 2024
ed3f87b
WRU and FS autocompletion (#30508)
TropicalHibi Aug 2, 2024
e4b8c57
Add Ngl to chatsan (#30589)
OrangeMoronage9622 Aug 3, 2024
5127fc5
fml to chatsan (#30651)
OrangeMoronage9622 Aug 4, 2024
11137d4
added a few chatsan entries (#31085)
tosatur Aug 19, 2024
e445a95
Sanitize shorthand emotes throughought the whole message (#28645)
Aeshus Oct 17, 2024
bef6db9
Move replacement chance from ReplacementAccentComponent to Replacemen…
lzk228 May 17, 2024
68e23e3
Split ``ReplacementAccentPrototype`` and ``ReplacementAccentComponen…
Winkarst-cpu Feb 12, 2025
d788ed6
Fix role ban loading bugs (#32725)
PJB3005 Oct 14, 2024
17f6ac7
Light verb is now predicted (#33622)
beck-thompson Nov 28, 2024
c81ca7b
Nuke Timer MinimumTime (#34734)
southbridge-fur Jan 29, 2025
b87471b
fix pie throwing sound not playing (#33017)
slarticodefast Oct 27, 2024
701786c
Fixed trash not being spawned when throwing pies (#33013)
reesque Nov 1, 2024
237ddd4
Network BaseEmitSoundComponent (#29400)
metalgearsloth Jun 24, 2024
760f044
add SpawnTableOnUse (#32620)
deltanedas Dec 16, 2024
2a48d41
Refactor audio system to send collection IDs over the network (#33610)
sowelipililimute Feb 23, 2025
973d598
Buckling an entity requires a do-after (#29621)
Plykiya Aug 9, 2024
2a4c356
Use screen local north for buckling/unbuckling layering, plus #31625 …
SaphireLattice Feb 13, 2025
4ec60e3
Predict appraisal tool verb! (#32496)
beck-thompson Sep 28, 2024
0c3250f
Added pricegun sound (#34119)
DylanWhittingham Jan 2, 2025
5cfa352
Add history tab to bounty console (#33932)
BarryNorfolk Jan 30, 2025
e76e457
Fix plant mutations carrying over to other plants and future rounds (…
drakewill-CRL Sep 17, 2024
58ad3c3
Fix HTN/NPC better plan selection (#30017)
osjarw Jul 14, 2024
16e4ff8
Allow the creation of recursive HTNs (#30138)
osjarw Jul 30, 2024
92a27d3
Add Explosion Resistance to SecBelts (#33253)
Vexerot Dec 16, 2024
1c8a5cc
Samurai dogi is now major contraband (#33699)
K-Dynamic Dec 6, 2024
faf3747
Fixed minor spelling mistake in Noir Trenchcoat description. (#34519)
Tezzaide Jan 19, 2025
9bf95d2
Ninja throwing star ability fix (#31684)
godisdeadLOL Sep 3, 2024
fbffa81
Several Ninja Suit power cell upgrade fixes. (#32902)
BramvanZijp Oct 22, 2024
d233130
CorrectContraband levels on each type of magboots (#30960)
TyAshley Sep 4, 2024
3b0264c
Toggle clothing fix (#32826)
ArZarLordOfMango Nov 19, 2024
241d241
Security Clown Mask is now security restricted. (#32335)
GoldenCan Sep 20, 2024
fa1355b
Fix: Web Clothing Butcher Issues (#33121)
thetolbean Nov 4, 2024
4323011
Budget insuls leaves behind frayed insulative fibers instead of insul…
ArtisticRoomba Sep 9, 2024
a7d892a
Silly teal gloves for realsies this time :3 (#31865)
Thinbug0 Sep 9, 2024
c0dd488
Added clown skirt (#31207)
Dutch-VanDerLinde Aug 23, 2024
affe50b
dark green jumpsuit recolor, casual green jumpsuits added (#31710)
Boaz1111 Nov 8, 2024
ef1641b
Combat and survival knife storage/inhand sprites (#33111)
SpaceRox1244 Nov 2, 2024
f799219
Throwing Knife description tweak (#33349)
ThatGuyUSA Nov 17, 2024
b6d0d04
Makes knives fly straight when thrown (#33615)
SpaceRox1244 Nov 28, 2024
849ea99
Makes kukri not use combat knife's storage sprite (#33661)
SpaceRox1244 Dec 3, 2024
46ab640
Mercenary gear contraband tweaks. (#33647)
RedBookcase Dec 18, 2024
29e43a8
silent footsteps for ninja (#33280)
muburu Dec 23, 2024
aa301f8
minor fix to "silent footsteps for ninja" (#34040)
slarticodefast Dec 23, 2024
3e0c9f8
clean up security lathe recipes (#31523)
deltanedas Sep 12, 2024
547a9c9
Rework the Flare Gun & add a Security Shell Gun. (#32829)
BramvanZijp Nov 6, 2024
b30a613
Require Wield To Activate Double-bladed ESword (#32869)
thetolbean Nov 30, 2024
6e0bd3d
Job contraband rework (#33385)
sporkyz Jan 21, 2025
f6d21a6
add test for lathe recipes having results (#32100)
deltanedas Sep 14, 2024
8d24fc4
Add a test to check that lathe recipes are possible (#33868)
Tayrtahn Dec 16, 2024
0eb24ec
fix light bulbs not fitting into the trash bag (#32452)
slarticodefast Oct 5, 2024
b93dbf7
Dim light bulbs (#33383)
UbaserB Nov 18, 2024
f1e9bbf
Change siren.ogg to gamma.ogg (#30836)
Unkn0wnGh0st333 Aug 10, 2024
ef6f0a4
Adds bullet collision to station lights (#34070)
SpaceRox1244 Jan 5, 2025
04ac45f
Ore Processors can now produce Reinforced Glass (#32069)
PeccNeck Sep 11, 2024
d48f71d
Separate RGlass recipe for autolathe and ore processor (#33876)
Tayrtahn Dec 15, 2024
df5c14c
makes advanced atmospherics require the basic atmospherics tech (#32048)
Boaz1111 Sep 10, 2024
b8d2673
Removed Power Monitoring Computer boards from research and lathe reci…
Alpaccalypse Dec 28, 2024
85a4653
Add Holopad Circuit Board to A/V Communication Technology (#34150)
amatwiedle Dec 31, 2024
e7bf25a
make conveyor belt assemblies cheaper (#32444)
Ilya246 Sep 29, 2024
34f72c3
clean up random lathe recipes (#31525)
deltanedas Dec 6, 2024
eba98a8
Amber Station - Fixes and Warm Lights (#34324)
southbridge-fur Jan 9, 2025
dc29864
Ammo boxes now have sprites for being parially filled! (#32930)
Moomoobeef Oct 22, 2024
d406b78
Predict Scent-Tracking Verbs and Actions. (#2546)
MarkerWicker Sep 25, 2025
3f9b391
Adds new sprites for shotgun shell boxes (#33176)
SpaceRox1244 Nov 12, 2024
9f96eae
Cabinetification (#34293)
ps3moira Feb 4, 2025
7104542
Remove the ability to print the station anchor circuit board (#34358)
ArtisticRoomba Jan 15, 2025
f821f48
clean up clothing lathe recipes (#31520)
deltanedas Sep 14, 2024
c9b95ac
Printable bedsheets (#34034)
kosticia Jan 15, 2025
25075d8
Moved Cyborg Recharging Circuit Board from Lathe to Circuit Imprinter…
Velken Jan 24, 2025
12ea566
Blueprint double emergency tank (#34232)
Nimfar11 Jan 21, 2025
31b3635
Removes burnt tiles (#33422)
Flareguy Nov 28, 2024
4d2936f
Astro Asteroid Sand (#34463)
southbridge-fur Jan 30, 2025
6f36746
move lathe recipes into packs (easier for forks and maintaining) (#33…
deltanedas Feb 7, 2025
edcecb1
Hasten handcraft gauze recipe & decrease techfab gauze cost (#32744)
K-Dynamic Nov 2, 2024
878c35c
clean up tools lathe recipes (#31521)
deltanedas Nov 2, 2024
51da6ca
improve BiomeDunGen (#33113)
TheShuEd Nov 12, 2024
2f29b95
Weather fix (#30857)
TheShuEd Aug 25, 2024
38af9ab
Ignore weather on rooved tiles (#35214)
metalgearsloth Feb 16, 2025
ad0b721
fix lava expeds (#33042)
deltanedas Oct 29, 2024
ecb90f5
Fixed the guide book entry for Diona's blood type (#29805)
JIPDawg Jul 8, 2024
c52b23d
Flora clean up (#33839)
TheShuEd Dec 16, 2024
e3fe695
Roof data rework (#35388)
metalgearsloth Feb 23, 2025
53043f1
DungeonSystem.Rooms bugfix (#30125)
TheShuEd Jul 17, 2024
121973c
RoomSpawner mask (#33110)
TheShuEd Feb 12, 2025
cec07e0
Localization of encryption keys (#30172)
chavonadelal Jul 20, 2024
cd9d999
Convert story generation to use LocalizedDatasets (#28402)
Tayrtahn May 30, 2024
967403f
Fix prototypes so they pass analyzer checks (#35435)
Tayrtahn Feb 24, 2025
8b09c62
Made forensic scanner classified as contraband. (#35512)
ToastEnjoyer Feb 26, 2025
72fe8df
add button to print logprobe logs (#32255)
deltanedas Feb 27, 2025
1300d4a
Make Mime PDA interactions silent (#34426)
ArtisticRoomba Jan 15, 2025
f657b96
Corrected all ghost role names to title case. (#34155)
Alpaccalypse Jan 1, 2025
7bee698
enable search filters on drinks guidebook (#28815)
EmoGarbage404 Jun 10, 2024
688f722
Create In-Guidebook Errors (#28942)
Aeshus Aug 9, 2024
c1eb3f1
Minor antagonist guidebook changes (#32824)
UBlueberry Nov 2, 2024
8ebf3fb
Fixed Guidebook Sorting / Ordering (#34960)
GrownSamoyedDog Feb 23, 2025
dc824b1
Swapped butter w/ olive oil for making spaghetti (#34904)
SG6732 Feb 6, 2025
d94cd42
Grilled Cheese Sandwich Entity and Recipe (#33807)
AgentSmithRadio Feb 13, 2025
151bf2b
Add microwave recipes to the guidebook (#34105)
sowelipililimute Feb 23, 2025
7fa33ff
Add admin log for codewords (#32531)
SlamBamActionman Oct 9, 2024
89ece83
Don't show Reinforcement codewords on round end (#33181)
Errant-4 Nov 5, 2024
31d4352
Stable Merge (#33218)
Jezithyr Nov 8, 2024
9bdf624
fix aller at once desc (#32129)
lzk228 Sep 14, 2024
e020da1
Remove kessler and zombeteors gamemodes from the secret pool (#34051)
ArtisticRoomba Jan 7, 2025
de8fa98
THE WIZARD (#35406)
keronshb Feb 26, 2025
03d1151
Remove plushie_lizard_mirrored.png (#33855)
LevitatingTree Dec 19, 2024
88b9986
Fix rainbow lizard plushie inhands (#34128)
ArtisticRoomba Jan 5, 2025
4c473d6
Fix diona plushie bloom visuals (#34832)
Tayrtahn Feb 2, 2025
2a08581
Add Communications Console button tooltips (#31217)
redmushie Aug 19, 2024
65b8c69
Sprites defined for all non-generic computer boards. Added new syndic…
Alpaccalypse Jan 2, 2025
bb2c562
Wizard shuttle preperation (#34932)
ScarKy0 Feb 8, 2025
1c932bb
fix RGA and YAML map scheme validators
Spatison Sep 27, 2025
5ae81f7
Wizmerge (#2548)
VMSolidus Sep 29, 2025
43561eb
Automatic Changelog Update (#2548)
SimpleStation14 Sep 29, 2025
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/Schemas/mapfile_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyyaml==6.0.2
20 changes: 20 additions & 0 deletions .github/Schemas/rga.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# If this gets updated, make sure to also update https://github.com/space-wizards/RobustToolboxSpecifications

list(include('attribution'), min=1)
---
attribution:
files: list(str())
license: license()
copyright: str()
source: url()

# Example
# - files: ["deprecated.png"]
# license: "MIT"
# copyright: "created by 20kdc"
# source: "https://github.com/ParadiseSS13/Paradise"
#
# - files: ["arcadeblue2.png", "boxing.png", "carpetclown.png", "carpetoffice.png", "gym.png", "metaldiamond.png"]
# license: "CC-BY-NC-SA-3.0"
# copyright: "by WALPVRGIS for Goonstation, taken at commit 236551b95a5b24917c72f3069223026b2dc4e690 from floors.dmi"
# source: "https://github.com/goonstation/goonstation"
2 changes: 2 additions & 0 deletions .github/Schemas/rga_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
validators
pyyaml==6.0.2
29 changes: 29 additions & 0 deletions .github/Schemas/rga_validators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from yamale.validators import Validator
import validators

class License(Validator):
tag = "license"
licenses = [
"CC-BY-3.0",
"CC-BY-4.0",
"CC-BY-SA-3.0",
"CC-BY-SA-4.0",
"CC-BY-NC-3.0",
"CC-BY-NC-4.0",
"CC-BY-NC-SA-3.0",
"CC-BY-NC-SA-4.0",
"CC-BY-ND-4.0",
"CC0-1.0",
"MIT",
"Custom" # implies that the license is described in the copyright field.
]

def _is_valid(self, value):
return value in self.licenses

class Url(Validator):
tag = "url"

def _is_valid(self, value):
# Source field is required to ensure its not neglected, but there may be no applicable URL
return (value == "NA") or validators.url(value)
4 changes: 2 additions & 2 deletions .github/workflows/validate-rgas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: space-wizards/submodule-dependency@v0.1.5
- uses: PaulRitter/yaml-schema-validator@v1
with:
schema: RobustToolbox/Schemas/rga.yml
schema: .github/Schemas/rga.yml
path_pattern: .*attributions.ya?ml$
validators_path: RobustToolbox/Schemas/rga_validators.py
validators_requirements: RobustToolbox/Schemas/rga_requirements.txt
validators_requirements: .github/Schemas/rga_requirements.txt
2 changes: 1 addition & 1 deletion .github/workflows/validate_mapfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
schema: RobustToolbox/Schemas/mapfile.yml
path_pattern: .*Resources/Maps/.*
validators_path: RobustToolbox/Schemas/mapfile_validators.py
validators_requirements: RobustToolbox/Schemas/mapfile_requirements.txt
validators_requirements: .github/Schemas/mapfile_requirements.txt
5 changes: 5 additions & 0 deletions Content.Client/Advertise/Systems/SpeakOnUIClosedSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Content.Shared.Advertise.Systems;

namespace Content.Client.Advertise.Systems;

public sealed class SpeakOnUIClosedSystem : SharedSpeakOnUIClosedSystem;
6 changes: 1 addition & 5 deletions Content.Client/Atmos/Components/PipeColorVisualsComponent.cs
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;
3 changes: 1 addition & 2 deletions Content.Client/Atmos/Consoles/AtmosAlarmEntryContainer.xaml
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
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,7 +159,7 @@ 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)
{
FixedPoint2 gasPercent = percent * 100f;
var gasAbbreviation = Atmospherics.GasAbbreviations.GetValueOrDefault(gas, Loc.GetString("gas-unknown-abbreviation"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,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 @@ -26,9 +24,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
28 changes: 2 additions & 26 deletions Content.Client/Atmos/Consoles/AtmosAlertsComputerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -502,39 +502,15 @@ private void AutoScrollToFocus()
if (scroll == null)
return;

if (!TryGetVerticalScrollbar(scroll, out var vScrollbar))
return;

if (!TryGetNextScrollPosition(out float? nextScrollPosition))
return;

vScrollbar.ValueTarget = nextScrollPosition.Value;
scroll.VScrollTarget = nextScrollPosition.Value;

if (MathHelper.CloseToPercent(vScrollbar.Value, vScrollbar.ValueTarget))
if (MathHelper.CloseToPercent(scroll.VScroll, scroll.VScrollTarget))
_autoScrollActive = false;
}

private bool TryGetVerticalScrollbar(ScrollContainer scroll, [NotNullWhen(true)] out VScrollBar? vScrollBar)
{
vScrollBar = null;

foreach (var child in scroll.Children)
{
if (child is not VScrollBar)
continue;

var castChild = child as VScrollBar;

if (castChild != null)
{
vScrollBar = castChild;
return true;
}
}

return false;
}

private bool TryGetNextScrollPosition([NotNullWhen(true)] out float? nextScrollPosition)
{
nextScrollPosition = null;
Expand Down
24 changes: 2 additions & 22 deletions Content.Client/Atmos/Consoles/AtmosMonitoringConsoleWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,35 +350,15 @@ private void AutoScrollToFocus()
if (scroll == null)
return;

if (!TryGetVerticalScrollbar(scroll, out var vScrollbar))
return;

if (!TryGetNextScrollPosition(out float? nextScrollPosition))
return;

vScrollbar.ValueTarget = nextScrollPosition.Value;
scroll.VScrollTarget = nextScrollPosition.Value;

if (MathHelper.CloseToPercent(vScrollbar.Value, vScrollbar.ValueTarget))
if (MathHelper.CloseToPercent(scroll.VScroll, scroll.VScrollTarget))
_autoScrollActive = false;
}

private bool TryGetVerticalScrollbar(ScrollContainer scroll, [NotNullWhen(true)] out VScrollBar? vScrollBar)
{
vScrollBar = null;

foreach (var control in scroll.Children)
{
if (control is not VScrollBar)
continue;

vScrollBar = (VScrollBar)control;

return true;
}

return false;
}

private bool TryGetNextScrollPosition([NotNullWhen(true)] out float? nextScrollPosition)
{
nextScrollPosition = null;
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
13 changes: 2 additions & 11 deletions Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs
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 All @@ -30,7 +26,6 @@ protected override void Open()
_window.AirAlarmModeChanged += OnAirAlarmModeChanged;
_window.AutoModeChanged += OnAutoModeChanged;
_window.ResyncAllRequested += ResyncAllDevices;
_window.AirAlarmTabChange += OnTabChanged;
}

private void ResyncAllDevices()
Expand Down Expand Up @@ -63,11 +58,6 @@ private void OnThresholdChanged(string address, AtmosMonitorThresholdType type,
SendMessage(new AirAlarmUpdateAlarmThresholdMessage(address, type, threshold, gas));
}

private void OnTabChanged(AirAlarmTab tab)
{
SendMessage(new AirAlarmTabSetMessage(tab));
}

protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
Expand All @@ -84,6 +74,7 @@ protected override void Dispose(bool disposing)
{
base.Dispose(disposing);

if (disposing) _window?.Dispose();
if (disposing)
_window?.Dispose();
}
}
Loading
Loading