From 40d2d384f75c606d84d6a1e3d8b4033531caa4ac Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Thu, 18 Jan 2024 10:41:16 +0100 Subject: [PATCH] don't warn for palette+, remove display from ui --- .../PlayerData/Pairs/OptionalPluginWarning.cs | 1 - .../Services/PluginWarningNotificationService.cs | 7 ------- MareSynchronos/UI/UISharedService.cs | 10 ---------- 3 files changed, 18 deletions(-) diff --git a/MareSynchronos/PlayerData/Pairs/OptionalPluginWarning.cs b/MareSynchronos/PlayerData/Pairs/OptionalPluginWarning.cs index 2aaa72e..d2f64c0 100644 --- a/MareSynchronos/PlayerData/Pairs/OptionalPluginWarning.cs +++ b/MareSynchronos/PlayerData/Pairs/OptionalPluginWarning.cs @@ -4,6 +4,5 @@ public record OptionalPluginWarning { public bool ShownHeelsWarning { get; set; } = false; public bool ShownCustomizePlusWarning { get; set; } = false; - public bool ShownPalettePlusWarning { get; set; } = false; public bool ShownHonorificWarning { get; set; } = false; } \ No newline at end of file diff --git a/MareSynchronos/Services/PluginWarningNotificationService.cs b/MareSynchronos/Services/PluginWarningNotificationService.cs index 23925bd..c4510a0 100644 --- a/MareSynchronos/Services/PluginWarningNotificationService.cs +++ b/MareSynchronos/Services/PluginWarningNotificationService.cs @@ -30,7 +30,6 @@ public class PluginWarningNotificationService { ShownCustomizePlusWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, ShownHeelsWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, - ShownPalettePlusWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, ShownHonorificWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, }; } @@ -47,12 +46,6 @@ public class PluginWarningNotificationService warning.ShownCustomizePlusWarning = true; } - if (changes.Contains(PlayerChanges.Palette) && !warning.ShownPalettePlusWarning && !_ipcManager.CheckPalettePlusApi()) - { - missingPluginsForData.Add("Palette+"); - warning.ShownPalettePlusWarning = true; - } - if (changes.Contains(PlayerChanges.Honorific) && !warning.ShownHonorificWarning && !_ipcManager.CheckHonorificApi()) { missingPluginsForData.Add("Honorific"); diff --git a/MareSynchronos/UI/UISharedService.cs b/MareSynchronos/UI/UISharedService.cs index ac32007..08c4681 100644 --- a/MareSynchronos/UI/UISharedService.cs +++ b/MareSynchronos/UI/UISharedService.cs @@ -102,7 +102,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase _glamourerExists = _ipcManager.CheckGlamourerApi(); _customizePlusExists = _ipcManager.CheckCustomizePlusApi(); _heelsExists = _ipcManager.CheckHeelsApi(); - _palettePlusExists = _ipcManager.CheckPalettePlusApi(); _honorificExists = _ipcManager.CheckHonorificApi(); }); } @@ -703,7 +702,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase var glamourerColor = _glamourerExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var heelsColor = _heelsExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var customizeColor = _customizePlusExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; - var paletteColor = _palettePlusExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var honorificColor = _honorificExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var check = FontAwesomeIcon.Check.ToIconString(); var cross = FontAwesomeIcon.SquareXmark.ToIconString(); @@ -742,14 +740,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase AttachToolTip($"Customize+ is " + (_customizePlusExists ? "available and up to date." : "unavailable or not up to date.")); ImGui.Spacing(); - ImGui.SameLine(); - ImGui.TextUnformatted("Palette+"); - ImGui.SameLine(); - FontText(_palettePlusExists ? check : cross, UiBuilder.IconFont, paletteColor); - ImGui.SameLine(); - AttachToolTip($"Palette+ is " + (_palettePlusExists ? "available and up to date." : "unavailable or not up to date.")); - ImGui.Spacing(); - ImGui.SameLine(); ImGui.TextUnformatted("Honorific"); ImGui.SameLine();