From bdbc9334f4c1f7ff6e669345ce2cc3566171f807 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 11 Aug 2021 02:56:47 +0200 Subject: [PATCH] feat: add tooltip to unload frown --- Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index 9f36843c8..7f8b80af2 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -979,6 +979,9 @@ namespace Dalamud.Interface.Internal.Windows else if (plugin.State == PluginState.UnloadError) { ImGuiComponents.DisabledButton(FontAwesomeIcon.Frown); + + if (ImGui.IsItemHovered()) + ImGui.SetTooltip(Locs.PluginButtonToolTip_UnloadFailed); } } @@ -1553,6 +1556,8 @@ namespace Dalamud.Interface.Internal.Windows public static string PluginButtonToolTip_UpdateSingle(string version) => Loc.Localize("InstallerUpdateSingle", "Update to {0}").Format(version); + public static string PluginButtonToolTip_UnloadFailed => Loc.Localize("InstallerUnloadFailedTooltip", "Plugin unload failed, please restart your game and try again."); + #endregion #region Footer