mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
feat(PluginInstaller): add third party plugin badge
This commit is contained in:
parent
7128bc166b
commit
463caf84e2
2 changed files with 14 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
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.ThirdIcon = interfaceManager.LoadImage(Path.Combine(dalamud.AssetDirectory.FullName, "UIRes", "thirdIcon.png"))!;
|
||||
|
||||
this.downloadThread = new Thread(this.DownloadTask);
|
||||
this.downloadThread.Start();
|
||||
|
|
@ -85,7 +86,12 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
/// <summary>
|
||||
/// Gets the plugin installed icon overlay.
|
||||
/// </summary>
|
||||
public TextureWrap InstalledIcon { get; set; }
|
||||
public TextureWrap InstalledIcon { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the third party plugin icon overlay.
|
||||
/// </summary>
|
||||
public TextureWrap ThirdIcon { get; }
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
|
|
@ -94,6 +100,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
this.TroubleIcon?.Dispose();
|
||||
this.UpdateIcon?.Dispose();
|
||||
this.InstalledIcon?.Dispose();
|
||||
this.ThirdIcon?.Dispose();
|
||||
|
||||
this.downloadToken?.Cancel();
|
||||
|
||||
|
|
|
|||
|
|
@ -1074,6 +1074,12 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
ImGui.Image(this.imageCache.TroubleIcon.ImGuiHandle, iconSize);
|
||||
ImGui.SameLine();
|
||||
}
|
||||
else if (isThirdParty)
|
||||
{
|
||||
ImGui.SetCursorPos(cursorBeforeImage);
|
||||
ImGui.Image(this.imageCache.ThirdIcon.ImGuiHandle, iconSize);
|
||||
ImGui.SameLine();
|
||||
}
|
||||
else if (plugin != null)
|
||||
{
|
||||
ImGui.SetCursorPos(cursorBeforeImage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue