From 85dca3795389dd0931093f5e2dfe60674a421ebc Mon Sep 17 00:00:00 2001 From: SamSWAT Date: Thu, 6 Jan 2022 21:39:21 +0300 Subject: [PATCH] Small changes + updated references to EFT 12.12.16432 --- .gitignore | 2 ++ project/SamSWAT.TimeWeatherChanger/Program.cs | 1 - .../SamSWAT.TimeWeatherChanger.csproj | 3 --- .../TimeWeatherController.cs | 22 +++++++++---------- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 095d92b..a1a223f 100644 --- a/.gitignore +++ b/.gitignore @@ -476,3 +476,5 @@ dkms.conf *.out *.app +/project/SamSWAT.TimeWeatherChanger/Key.snk +/project/Shared/Keys diff --git a/project/SamSWAT.TimeWeatherChanger/Program.cs b/project/SamSWAT.TimeWeatherChanger/Program.cs index f4330d8..189727d 100644 --- a/project/SamSWAT.TimeWeatherChanger/Program.cs +++ b/project/SamSWAT.TimeWeatherChanger/Program.cs @@ -1,5 +1,4 @@ using UnityEngine; -using Object = UnityEngine.Object; namespace SamSWAT.TimeWeatherChanger { diff --git a/project/SamSWAT.TimeWeatherChanger/SamSWAT.TimeWeatherChanger.csproj b/project/SamSWAT.TimeWeatherChanger/SamSWAT.TimeWeatherChanger.csproj index ba50fce..963e9e9 100644 --- a/project/SamSWAT.TimeWeatherChanger/SamSWAT.TimeWeatherChanger.csproj +++ b/project/SamSWAT.TimeWeatherChanger/SamSWAT.TimeWeatherChanger.csproj @@ -40,9 +40,6 @@ ..\Shared\References\Assembly-CSharp.dll - - ..\Shared\References\Assembly-CSharp-firstpass.dll - ..\Shared\References\Comfort.dll diff --git a/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs b/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs index 2d02429..ed14ddb 100644 --- a/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs +++ b/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs @@ -1,21 +1,20 @@ -using UnityEngine; +using System; +using UnityEngine; using EFT; using EFT.UI; using EFT.Weather; -using System; using Comfort.Common; -using RegexCMD = GClass2219; -using GameDateTime = GClass1204; -using Notifier = GClass1624; -using NotifierParams = GClass1623; -using CursorSettings = GClass2222; +using RegexCMD = GClass2296; +using GameDateTime = GClass1258; +using Notifier = GClass1691; +using NotifierParams = GClass1690; +using CursorSettings = GClass2299; using Random = UnityEngine.Random; namespace SamSWAT.TimeWeatherChanger { public class TimeWeatherController : MonoBehaviour { - private static GameObject weather; private static GameObject input; private static WeatherController weatherController; private static GameWorld gameWorld; @@ -44,6 +43,7 @@ namespace SamSWAT.TimeWeatherChanger void Start() { Debug.LogError("SamSWAT - Time and Weather Changer loaded"); + //Duplicate functionality of home key ConsoleScreen.Commands.AddCommand(new RegexCMD("twc", match => { @@ -152,11 +152,11 @@ namespace SamSWAT.TimeWeatherChanger weatherdebugtex = "ON"; else weatherdebugtex = "OFF"; + //Caching WeatherController script for the first time - if (weather == null | weatherController == null) + if (weatherController == null) { - weather = GameObject.Find("Weather"); - weatherController = weather.GetComponent(); + weatherController = GameObject.Find("Weather").GetComponent(); } //Shit ton of different sliders and buttons