fixes the solarcontrolwindow
updates submodule (just realized i didn't need to, whatever)
This commit is contained in:
@@ -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<SolarControlConsoleBoundInterfaceState>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user