From ed384fbc91d89338ff1ef4b484c9b5ce458af356 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 22 Jul 2021 20:02:18 +0200 Subject: [PATCH] fixes the solarcontrolwindow updates submodule (just realized i didn't need to, whatever) --- Content.Client/Power/SolarControlWindow.xaml | 4 ++-- Content.Client/Power/SolarControlWindow.xaml.cs | 16 +++++++--------- RobustToolbox | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/Content.Client/Power/SolarControlWindow.xaml b/Content.Client/Power/SolarControlWindow.xaml index 8918a87d1b..f492c97fed 100644 --- a/Content.Client/Power/SolarControlWindow.xaml +++ b/Content.Client/Power/SolarControlWindow.xaml @@ -1,5 +1,5 @@  @@ -26,7 +26,7 @@ diff --git a/Content.Client/Power/SolarControlWindow.xaml.cs b/Content.Client/Power/SolarControlWindow.xaml.cs index 5ced2ae49d..f56c46ca8f 100644 --- a/Content.Client/Power/SolarControlWindow.xaml.cs +++ b/Content.Client/Power/SolarControlWindow.xaml.cs @@ -1,21 +1,19 @@ using System; -using JetBrains.Annotations; +using Content.Client.GameObjects.Components; using Content.Shared.Solar; +using JetBrains.Annotations; +using Robust.Client.AutoGenerated; using Robust.Client.GameObjects; using Robust.Client.Graphics; -using Robust.Client.AutoGenerated; using Robust.Client.UserInterface; -using Robust.Client.UserInterface.XAML; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.CustomControls; -using Robust.Shared.GameObjects; +using Robust.Client.UserInterface.XAML; using Robust.Shared.IoC; -using Robust.Shared.Log; -using Robust.Shared.Localization; using Robust.Shared.Maths; using Robust.Shared.Timing; -namespace Content.Client.GameObjects.Components.Power +namespace Content.Client.Power { [GenerateTypedNameReferences] public sealed partial class SolarControlWindow : SS14Window, IComputerWindow @@ -31,7 +29,7 @@ namespace Content.Client.GameObjects.Components.Power { PanelRotation.OnTextEntered += (text) => { double value; - if (double.TryParse(text.Text, out value)) + if (double.TryParse((string?) text.Text, out value)) { SolarControlConsoleAdjustMessage msg = new SolarControlConsoleAdjustMessage(); msg.Rotation = Angle.FromDegrees(value); @@ -44,7 +42,7 @@ namespace Content.Client.GameObjects.Components.Power }; PanelVelocity.OnTextEntered += (text) => { double value; - if (double.TryParse(text.Text, out value)) + if (double.TryParse((string?) text.Text, out value)) { SolarControlConsoleAdjustMessage msg = new SolarControlConsoleAdjustMessage(); msg.Rotation = NotARadar.PredictedPanelRotation; diff --git a/RobustToolbox b/RobustToolbox index 325f25c547..3a86c827ea 160000 --- a/RobustToolbox +++ b/RobustToolbox @@ -1 +1 @@ -Subproject commit 325f25c5479434f3174cca48aa4129f307bb9bcc +Subproject commit 3a86c827ea02f46b213f473f6479fbfaed35095e