From 4c308302a9e2eed6b2915d4d064c6c89ad234792 Mon Sep 17 00:00:00 2001 From: Stanley Dimant Date: Tue, 10 Sep 2024 13:07:09 +0200 Subject: [PATCH] add petnicknames to list of optional plugins --- MareSynchronos/UI/UISharedService.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MareSynchronos/UI/UISharedService.cs b/MareSynchronos/UI/UISharedService.cs index 976e952..94d7212 100644 --- a/MareSynchronos/UI/UISharedService.cs +++ b/MareSynchronos/UI/UISharedService.cs @@ -75,6 +75,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase private bool _isPenumbraDirectory = false; private bool _moodlesExists = false; private bool _penumbraExists = false; + private bool _petNamesExists = false; private int _serverSelectionIndex = -1; @@ -107,6 +108,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase _heelsExists = _ipcManager.Heels.APIAvailable; _honorificExists = _ipcManager.Honorific.APIAvailable; _moodlesExists = _ipcManager.Moodles.APIAvailable; + _petNamesExists = _ipcManager.PetNames.APIAvailable; }); UidFont = _pluginInterface.UiBuilder.FontAtlas.NewDelegateFontHandle(e => @@ -694,6 +696,14 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase AttachToolTip($"Moodles is " + (_moodlesExists ? "available and up to date." : "unavailable or not up to date.")); ImGui.Spacing(); + ImGui.SameLine(); + ImGui.TextUnformatted("PetNicknames"); + ImGui.SameLine(); + IconText(_petNamesExists ? check : cross, GetBoolColor(_petNamesExists)); + ImGui.SameLine(); + AttachToolTip($"PetNicknames is " + (_petNamesExists ? "available and up to date." : "unavailable or not up to date.")); + ImGui.Spacing(); + if (!_penumbraExists || !_glamourerExists) { ImGui.TextColored(ImGuiColors.DalamudRed, "You need to install both Penumbra and Glamourer and keep them up to date to use Mare Synchronos.");