From f61de36a2e8c9c3ed42b49ebeca7f64f1b07207a Mon Sep 17 00:00:00 2001 From: Absotively Date: Wed, 30 Sep 2026 05:52:07 +0000 Subject: [PATCH 01/69] Minor gas device UI tweaks (#42710) * Use FancyWindow, margin of 10 for most gas devices * Use FancyWindow, margin of 10 for gas analyzer, gas canister UI * Adjust gas UI min sizes, resizeability, keyboard handling --------- Co-authored-by: beck-thompson --- Content.Client/Atmos/UI/GasAnalyzerWindow.xaml | 7 ++++--- Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs | 2 +- Content.Client/Atmos/UI/GasCanisterWindow.xaml | 7 ++++--- Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs | 3 ++- Content.Client/Atmos/UI/GasFilterWindow.xaml | 6 +++--- Content.Client/Atmos/UI/GasFilterWindow.xaml.cs | 3 ++- Content.Client/Atmos/UI/GasMixerWindow.xaml | 10 +++++----- Content.Client/Atmos/UI/GasMixerWindow.xaml.cs | 3 ++- Content.Client/Atmos/UI/GasPressurePumpWindow.xaml | 6 +++--- Content.Client/Atmos/UI/GasThermomachineWindow.xaml | 2 +- Content.Client/Atmos/UI/GasVolumePumpWindow.xaml | 4 ++-- Content.Client/Atmos/UI/SpaceHeaterWindow.xaml | 10 +++++----- Content.Client/Atmos/UI/SpaceHeaterWindow.xaml.cs | 3 ++- 13 files changed, 36 insertions(+), 30 deletions(-) diff --git a/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml b/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml index 160b6fa281..4d93f3d4e5 100644 --- a/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml +++ b/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml @@ -1,7 +1,8 @@ - - + @@ -43,4 +44,4 @@ - + diff --git a/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs b/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs index 3680c82a55..0c78344348 100644 --- a/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasAnalyzerWindow.xaml.cs @@ -15,7 +15,7 @@ using Direction = Robust.Shared.Maths.Direction; namespace Content.Client.Atmos.UI { [GenerateTypedNameReferences] - public sealed partial class GasAnalyzerWindow : DefaultWindow + public sealed partial class GasAnalyzerWindow : FancyWindow { private readonly SharedAtmosphereSystem _atmosphere; private NetEntity _currentEntity = NetEntity.Invalid; diff --git a/Content.Client/Atmos/UI/GasCanisterWindow.xaml b/Content.Client/Atmos/UI/GasCanisterWindow.xaml index 3c7647385a..576685060e 100644 --- a/Content.Client/Atmos/UI/GasCanisterWindow.xaml +++ b/Content.Client/Atmos/UI/GasCanisterWindow.xaml @@ -1,8 +1,9 @@ - - + - + diff --git a/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs b/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs index b21aa737ac..2638d91c74 100644 --- a/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasCanisterWindow.xaml.cs @@ -1,4 +1,5 @@ using System; +using Content.Client.UserInterface.Controls; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; @@ -13,7 +14,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a canister. /// [GenerateTypedNameReferences] - public sealed partial class GasCanisterWindow : DefaultWindow + public sealed partial class GasCanisterWindow : FancyWindow { private readonly ButtonGroup _buttonGroup = new(); diff --git a/Content.Client/Atmos/UI/GasFilterWindow.xaml b/Content.Client/Atmos/UI/GasFilterWindow.xaml index 5077fddc61..a5a12c5d1d 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml @@ -1,8 +1,8 @@ - - + - + diff --git a/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs b/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs index fb5d1e871e..afe7290b79 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Globalization; +using Content.Client.UserInterface.Controls; using Content.Shared.Atmos.Prototypes; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; @@ -14,7 +15,7 @@ namespace Content.Client.Atmos.UI /// Client-side UI used to control a gas filter. /// [GenerateTypedNameReferences] - public sealed partial class GasFilterWindow : DefaultWindow + public sealed partial class GasFilterWindow : FancyWindow { private readonly ButtonGroup _buttonGroup = new(); diff --git a/Content.Client/Atmos/UI/GasMixerWindow.xaml b/Content.Client/Atmos/UI/GasMixerWindow.xaml index c36b53798a..1468ff55a3 100644 --- a/Content.Client/Atmos/UI/GasMixerWindow.xaml +++ b/Content.Client/Atmos/UI/GasMixerWindow.xaml @@ -1,8 +1,8 @@ - - + Resizable="False" Title="Gas Mixer"> +