diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index 634b5e676..6ca74230c 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -34,8 +34,8 @@ namespace Dalamud.Interface.Internal.Windows private const int PluginImageWidth = 730; private const int PluginImageHeight = 380; - private const int PluginIconWidth = 300; - private const int PluginIconHeight = 300; + private const int PluginIconWidth = 512; + private const int PluginIconHeight = 512; private static readonly ModuleLog Log = new("PLUGINW"); @@ -532,7 +532,7 @@ namespace Dalamud.Interface.Internal.Windows var isOpen = this.openPluginCollapsibles.Contains(index); - var sectionSize = ImGuiHelpers.GlobalScale * 42; + var sectionSize = ImGuiHelpers.GlobalScale * 66; var startCursor = ImGui.GetCursorPos(); ImGui.PushStyleColor(ImGuiCol.Button, isOpen ? new Vector4(0.5f, 0.5f, 0.5f, 0.1f) : Vector4.Zero); @@ -571,20 +571,22 @@ namespace Dalamud.Interface.Internal.Windows iconTex = icon.Texture; } + var iconSize = ImGuiHelpers.ScaledVector2(64, 64); + var cursorBeforeImage = ImGui.GetCursorPos(); - ImGui.Image(iconTex.ImGuiHandle, ImGuiHelpers.ScaledVector2(40, 40)); + ImGui.Image(iconTex.ImGuiHandle, iconSize); ImGui.SameLine(); if (trouble) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.troubleIcon.ImGuiHandle, ImGuiHelpers.ScaledVector2(40, 40)); + ImGui.Image(this.troubleIcon.ImGuiHandle, iconSize); ImGui.SameLine(); } else if (updateAvailable) { ImGui.SetCursorPos(cursorBeforeImage); - ImGui.Image(this.updateIcon.ImGuiHandle, ImGuiHelpers.ScaledVector2(40, 40)); + ImGui.Image(this.updateIcon.ImGuiHandle, iconSize); ImGui.SameLine(); } diff --git a/Dalamud/Plugin/Internal/Types/PluginManifest.cs b/Dalamud/Plugin/Internal/Types/PluginManifest.cs index 78aa8c130..420055d64 100644 --- a/Dalamud/Plugin/Internal/Types/PluginManifest.cs +++ b/Dalamud/Plugin/Internal/Types/PluginManifest.cs @@ -27,19 +27,19 @@ namespace Dalamud.Plugin.Internal.Types /// Gets a punchline of the plugins functions. /// [JsonProperty] - public string Punchline { get; init; } + public string? Punchline { get; init; } /// /// Gets a description of the plugins functions. /// [JsonProperty] - public string Description { get; init; } + public string? Description { get; init; } /// /// Gets a list of tags defined on the plugin. /// [JsonProperty] - public List Tags { get; init; } + public List? Tags { get; init; } /// /// Gets a value indicating whether or not the plugin is hidden in the plugin installer. @@ -64,7 +64,7 @@ namespace Dalamud.Plugin.Internal.Types /// Gets the current testing assembly version of the plugin. /// [JsonProperty] - public Version TestingAssemblyVersion { get; init; } + public Version? TestingAssemblyVersion { get; init; } /// /// Gets a value indicating whether the is not null. @@ -88,14 +88,14 @@ namespace Dalamud.Plugin.Internal.Types /// Gets an URL to the website or source code of the plugin. /// [JsonProperty] - public string RepoUrl { get; init; } + public string? RepoUrl { get; init; } /// /// Gets the version of the game this plugin works with. /// [JsonProperty] [JsonConverter(typeof(GameVersionConverter))] - public GameVersion ApplicableVersion { get; init; } = GameVersion.Any; + public GameVersion? ApplicableVersion { get; init; } = GameVersion.Any; /// /// Gets the API level of this plugin. For the current API level, please see @@ -143,11 +143,11 @@ namespace Dalamud.Plugin.Internal.Types /// /// Gets a list of screenshot image URLs to show in the plugin installer. /// - public List ImageUrls { get; init; } + public List? ImageUrls { get; init; } /// /// Gets an URL for the plugin's icon. /// - public string IconUrl { get; init; } + public string? IconUrl { get; init; } } }