feat: add tooltip to unload frown

This commit is contained in:
goat 2021-08-11 02:56:47 +02:00
parent 133646332f
commit bdbc9334f4
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -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