add moodles integration (temporary)

get ready for moodles

don't ignore moodles warning

apply moodles after forced redraw
This commit is contained in:
rootdarkarchon
2024-02-29 13:04:12 +01:00
committed by Loporrit
parent da10895987
commit 98a0327294
13 changed files with 174 additions and 17 deletions

View File

@@ -110,6 +110,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
_heelsExists = _ipcManager.Heels.APIAvailable;
_honorificExists = _ipcManager.Honorific.APIAvailable;
_petNamesExists = _ipcManager.PetNames.APIAvailable;
_moodlesExists = _ipcManager.Moodles.APIAvailable;
});
UidFont = _pluginInterface.UiBuilder.FontAtlas.NewDelegateFontHandle(e =>
@@ -792,6 +793,13 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
AttachToolTip($"PetNicknames is " + (_petNamesExists ? "available and up to date." : "unavailable or not up to date."));
ImGui.Spacing();
ImGui.TextUnformatted("Moodles");
ImGui.SameLine();
IconText(_moodlesExists ? check : cross, GetBoolColor(_moodlesExists));
ImGui.SameLine();
AttachToolTip($"Moodles is " + (_moodlesExists ? "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 Loporrit.");