mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-14 03:47:43 +01:00
fix: 512x512 icons
This commit is contained in:
parent
ec06fa5f1e
commit
4921c289e0
2 changed files with 16 additions and 14 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,19 +27,19 @@ namespace Dalamud.Plugin.Internal.Types
|
|||
/// Gets a punchline of the plugins functions.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
public string Punchline { get; init; }
|
||||
public string? Punchline { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a description of the plugins functions.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
public string Description { get; init; }
|
||||
public string? Description { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of tags defined on the plugin.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
public List<string> Tags { get; init; }
|
||||
public List<string>? Tags { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
public Version TestingAssemblyVersion { get; init; }
|
||||
public Version? TestingAssemblyVersion { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the <see cref="AssemblyVersion"/> is not null.
|
||||
|
|
@ -88,14 +88,14 @@ namespace Dalamud.Plugin.Internal.Types
|
|||
/// Gets an URL to the website or source code of the plugin.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
public string RepoUrl { get; init; }
|
||||
public string? RepoUrl { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the version of the game this plugin works with.
|
||||
/// </summary>
|
||||
[JsonProperty]
|
||||
[JsonConverter(typeof(GameVersionConverter))]
|
||||
public GameVersion ApplicableVersion { get; init; } = GameVersion.Any;
|
||||
public GameVersion? ApplicableVersion { get; init; } = GameVersion.Any;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the API level of this plugin. For the current API level, please see <see cref="PluginManager.DalamudApiLevel"/>
|
||||
|
|
@ -143,11 +143,11 @@ namespace Dalamud.Plugin.Internal.Types
|
|||
/// <summary>
|
||||
/// Gets a list of screenshot image URLs to show in the plugin installer.
|
||||
/// </summary>
|
||||
public List<string> ImageUrls { get; init; }
|
||||
public List<string>? ImageUrls { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets an URL for the plugin's icon.
|
||||
/// </summary>
|
||||
public string IconUrl { get; init; }
|
||||
public string? IconUrl { get; init; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue