diff --git a/Dalamud/Interface/Internal/Windows/PluginImageCache.cs b/Dalamud/Interface/Internal/Windows/PluginImageCache.cs index aadf93571..d25c3a7f0 100644 --- a/Dalamud/Interface/Internal/Windows/PluginImageCache.cs +++ b/Dalamud/Interface/Internal/Windows/PluginImageCache.cs @@ -58,9 +58,10 @@ namespace Dalamud.Interface.Internal.Windows var dalamud = Service.Get(); var interfaceManager = Service.Get(); - this.DefaultIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "defaultIcon.png")); - this.TroubleIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "troubleIcon.png")); - this.UpdateIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "updateIcon.png")); + this.DefaultIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "defaultIcon.png"))!; + this.TroubleIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "troubleIcon.png"))!; + this.UpdateIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "updateIcon.png"))!; + this.InstalledIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "installedIcon.png"))!; this.downloadThread = new Thread(this.DownloadTask); this.downloadThread.Start(); @@ -81,12 +82,18 @@ namespace Dalamud.Interface.Internal.Windows /// public TextureWrap UpdateIcon { get; } + /// + /// Gets the plugin installed icon overlay. + /// + public TextureWrap InstalledIcon { get; set; } + /// public void Dispose() { this.DefaultIcon?.Dispose(); this.TroubleIcon?.Dispose(); this.UpdateIcon?.Dispose(); + this.InstalledIcon?.Dispose(); this.downloadToken?.Cancel(); diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index 14893966a..04226d858 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -1072,6 +1072,12 @@ namespace Dalamud.Interface.Internal.Windows ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize); ImGui.SameLine(); } + else if (plugin != null) + { + ImGui.SetCursorPos(cursorBeforeImage); + ImGui.Image(this.imageCache.InstalledIcon.ImGuiHandle, iconSize); + ImGui.SameLine(); + } ImGuiHelpers.ScaledDummy(5); ImGui.SameLine();