mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
Add Honorific Support (#49)
* Add Honorific support * Update MareAPI * Update SettingsUi.cs
This commit is contained in:
parent
2667a0b5d9
commit
6669247e22
11 changed files with 135 additions and 3 deletions
|
|
@ -307,7 +307,18 @@ public class SettingsUi : WindowMediatorSubscriberBase
|
|||
_lastTab = "Debug";
|
||||
|
||||
UiSharedService.FontText("Debug", _uiShared.UidFont);
|
||||
|
||||
#if DEBUG
|
||||
if (LastCreatedCharacterData != null && ImGui.TreeNode("Last created character data"))
|
||||
{
|
||||
|
||||
foreach (var l in JsonSerializer.Serialize(LastCreatedCharacterData, new JsonSerializerOptions() { WriteIndented = true }).Split('\n'))
|
||||
{
|
||||
ImGui.Text($"{l}");
|
||||
}
|
||||
|
||||
ImGui.TreePop();
|
||||
}
|
||||
#endif
|
||||
if (UiSharedService.IconTextButton(FontAwesomeIcon.Copy, "[DEBUG] Copy Last created Character Data to clipboard"))
|
||||
{
|
||||
if (LastCreatedCharacterData != null)
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
|
||||
private bool _palettePlusExists = false;
|
||||
|
||||
private bool _honorificExists = false;
|
||||
|
||||
private bool _penumbraExists = false;
|
||||
|
||||
private int _serverSelectionIndex = -1;
|
||||
|
|
@ -103,6 +105,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
_customizePlusExists = _ipcManager.CheckCustomizePlusApi();
|
||||
_heelsExists = _ipcManager.CheckHeelsApi();
|
||||
_palettePlusExists = _ipcManager.CheckPalettePlusApi();
|
||||
_honorificExists = _ipcManager.CheckHonorificApi();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -601,6 +604,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
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;
|
||||
ImGui.Text("Penumbra:");
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(penumbraColor, _penumbraExists ? "Available" : "Unavailable");
|
||||
|
|
@ -621,6 +625,10 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase
|
|||
ImGui.Text("Palette+:");
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(paletteColor, _palettePlusExists ? "Available" : "Unavailable");
|
||||
ImGui.SameLine();
|
||||
ImGui.Text("Honorific:");
|
||||
ImGui.SameLine();
|
||||
ImGui.TextColored(honorificColor, _honorificExists ? "Available" : "Unavailable");
|
||||
|
||||
if (!_penumbraExists || !_glamourerExists)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue