diff --git a/.gitignore b/.gitignore index a1a223f..5420b56 100644 --- a/.gitignore +++ b/.gitignore @@ -478,3 +478,4 @@ dkms.conf /project/SamSWAT.TimeWeatherChanger/Key.snk /project/Shared/Keys +/project/SamSWAT.TimeWeatherChanger/SamSWAT.TimeWeatherChanger.sln diff --git a/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs b/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs index ed14ddb..617b590 100644 --- a/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs +++ b/project/SamSWAT.TimeWeatherChanger/TimeWeatherController.cs @@ -2,12 +2,12 @@ using UnityEngine; using EFT; using EFT.UI; +using EFT.Communications; using EFT.Weather; using Comfort.Common; using RegexCMD = GClass2296; using GameDateTime = GClass1258; using Notifier = GClass1691; -using NotifierParams = GClass1690; using CursorSettings = GClass2299; using Random = UnityEngine.Random; @@ -51,7 +51,7 @@ namespace SamSWAT.TimeWeatherChanger if (gameWorld == null) { string log = "In order to change the weather, you have to go in a raid first."; - Notifier.DisplayNotification(new NotifierParams(log)); + Notifier.DisplayWarningNotification(log, ENotificationDurationType.Long); PreloaderUI.Instance.Console.AddLog(" " + log, "[TWChanger]:"); } else @@ -59,7 +59,7 @@ namespace SamSWAT.TimeWeatherChanger if (GameObject.Find("Weather") == null) { string log = "An error occurred when executing command, seems like you are either in the hideout or factory."; - Notifier.DisplayNotification(new NotifierParams(log)); + Notifier.DisplayWarningNotification(log, ENotificationDurationType.Default); PreloaderUI.Instance.Console.AddLog(" " + log, "[TWChanger]:"); } else @@ -108,7 +108,7 @@ namespace SamSWAT.TimeWeatherChanger if (GameObject.Find("Weather") == null) { //Notify player with bottom-right error popup - Notifier.DisplayNotification(new NotifierParams("An error occurred when opening weather panel, seems like you are either in the hideout or factory.")); + Notifier.DisplayWarningNotification("An error occurred when opening weather panel, seems like you are either in the hideout or factory."); } else { @@ -185,6 +185,7 @@ namespace SamSWAT.TimeWeatherChanger modifiedDateTime = currentDateTime.AddHours((double)targetTimeHours - currentDateTime.Hour); modifiedDateTime = modifiedDateTime.AddMinutes((double)targetTimeMinutes - currentDateTime.Minute); gameDateTime.Reset(modifiedDateTime); + Notifier.DisplayMessageNotification("Time was set to: " + modifiedDateTime.ToString("HH:mm")); Singleton.Instance.PlayUISound(EUISoundType.MenuInspectorWindowClose); }