don't warn for palette+, remove display from ui

This commit is contained in:
rootdarkarchon
2024-01-18 10:41:16 +01:00
committed by Loporrit
parent 0a31da07b1
commit b8cac8f010
3 changed files with 0 additions and 18 deletions

View File

@@ -4,6 +4,5 @@ public record OptionalPluginWarning
{ {
public bool ShownHeelsWarning { get; set; } = false; public bool ShownHeelsWarning { get; set; } = false;
public bool ShownCustomizePlusWarning { get; set; } = false; public bool ShownCustomizePlusWarning { get; set; } = false;
public bool ShownPalettePlusWarning { get; set; } = false;
public bool ShownHonorificWarning { get; set; } = false; public bool ShownHonorificWarning { get; set; } = false;
} }

View File

@@ -30,7 +30,6 @@ public class PluginWarningNotificationService
{ {
ShownCustomizePlusWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, ShownCustomizePlusWarning = _mareConfigService.Current.DisableOptionalPluginWarnings,
ShownHeelsWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, ShownHeelsWarning = _mareConfigService.Current.DisableOptionalPluginWarnings,
ShownPalettePlusWarning = _mareConfigService.Current.DisableOptionalPluginWarnings,
ShownHonorificWarning = _mareConfigService.Current.DisableOptionalPluginWarnings, ShownHonorificWarning = _mareConfigService.Current.DisableOptionalPluginWarnings,
}; };
} }
@@ -47,12 +46,6 @@ public class PluginWarningNotificationService
warning.ShownCustomizePlusWarning = true; 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()) if (changes.Contains(PlayerChanges.Honorific) && !warning.ShownHonorificWarning && !_ipcManager.CheckHonorificApi())
{ {
missingPluginsForData.Add("Honorific"); missingPluginsForData.Add("Honorific");

View File

@@ -103,7 +103,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
_glamourerExists = _ipcManager.CheckGlamourerApi(); _glamourerExists = _ipcManager.CheckGlamourerApi();
_customizePlusExists = _ipcManager.CheckCustomizePlusApi(); _customizePlusExists = _ipcManager.CheckCustomizePlusApi();
_heelsExists = _ipcManager.CheckHeelsApi(); _heelsExists = _ipcManager.CheckHeelsApi();
_palettePlusExists = _ipcManager.CheckPalettePlusApi();
_honorificExists = _ipcManager.CheckHonorificApi(); _honorificExists = _ipcManager.CheckHonorificApi();
}); });
} }
@@ -718,7 +717,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
var glamourerColor = _glamourerExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var glamourerColor = _glamourerExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed;
var heelsColor = _heelsExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; var heelsColor = _heelsExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed;
var customizeColor = _customizePlusExists ? 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 honorificColor = _honorificExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed;
var check = FontAwesomeIcon.Check.ToIconString(); var check = FontAwesomeIcon.Check.ToIconString();
var cross = FontAwesomeIcon.SquareXmark.ToIconString(); var cross = FontAwesomeIcon.SquareXmark.ToIconString();
@@ -778,14 +776,6 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
AttachToolTip($"Customize+ is " + (_customizePlusExists ? "available and up to date." : "unavailable or not up to date.")); AttachToolTip($"Customize+ is " + (_customizePlusExists ? "available and up to date." : "unavailable or not up to date."));
ImGui.Spacing(); 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.SameLine();
ImGui.TextUnformatted("Honorific"); ImGui.TextUnformatted("Honorific");
ImGui.SameLine(); ImGui.SameLine();