add petnicknames to list of optional plugins
This commit is contained in:
		| @@ -75,6 +75,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase | |||||||
|     private bool _isOneDrive = false; |     private bool _isOneDrive = false; | ||||||
|  |  | ||||||
|     private bool _penumbraExists = false; |     private bool _penumbraExists = false; | ||||||
|  |     private bool _petNamesExists = false; | ||||||
|  |  | ||||||
|     private int _serverSelectionIndex = -1; |     private int _serverSelectionIndex = -1; | ||||||
|  |  | ||||||
| @@ -116,6 +117,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase | |||||||
|             _customizePlusExists = _ipcManager.CustomizePlus.APIAvailable; |             _customizePlusExists = _ipcManager.CustomizePlus.APIAvailable; | ||||||
|             _heelsExists = _ipcManager.Heels.APIAvailable; |             _heelsExists = _ipcManager.Heels.APIAvailable; | ||||||
|             _honorificExists = _ipcManager.Honorific.APIAvailable; |             _honorificExists = _ipcManager.Honorific.APIAvailable; | ||||||
|  |             _petNamesExists = _ipcManager.PetNames.APIAvailable; | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -795,6 +797,7 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase | |||||||
|         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 honorificColor = _honorificExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; |         var honorificColor = _honorificExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; | ||||||
|  |         var petNamesColor = _petNamesExists ? ImGuiColors.ParsedGreen : ImGuiColors.DalamudRed; | ||||||
|         var check = FontAwesomeIcon.Check.ToIconString(); |         var check = FontAwesomeIcon.Check.ToIconString(); | ||||||
|         var cross = FontAwesomeIcon.SquareXmark.ToIconString(); |         var cross = FontAwesomeIcon.SquareXmark.ToIconString(); | ||||||
|  |  | ||||||
| @@ -861,6 +864,14 @@ public partial class UiSharedService : DisposableMediatorSubscriberBase | |||||||
|         AttachToolTip($"Honorific is " + (_honorificExists ? "available and up to date." : "unavailable or not up to date.")); |         AttachToolTip($"Honorific is " + (_honorificExists ? "available and up to date." : "unavailable or not up to date.")); | ||||||
|         ImGui.Spacing(); |         ImGui.Spacing(); | ||||||
|  |  | ||||||
|  |         ImGui.SameLine(); | ||||||
|  |         ImGui.TextUnformatted("PetNicknames"); | ||||||
|  |         ImGui.SameLine(); | ||||||
|  |         FontText(_petNamesExists ? check : cross, UiBuilder.IconFont,petNamesColor); | ||||||
|  |         ImGui.SameLine(); | ||||||
|  |         AttachToolTip($"PetNicknames is " + (_petNamesExists ? "available and up to date." : "unavailable or not up to date.")); | ||||||
|  |         ImGui.Spacing(); | ||||||
|  |  | ||||||
|         if (!_penumbraExists || !_glamourerExists) |         if (!_penumbraExists || !_glamourerExists) | ||||||
|         { |         { | ||||||
|             ImGui.TextColored(ImGuiColors.DalamudRed, "You need to install both Penumbra and Glamourer and keep them up to date to use Loporrit."); |             ImGui.TextColored(ImGuiColors.DalamudRed, "You need to install both Penumbra and Glamourer and keep them up to date to use Loporrit."); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant