Files
AetherBags/KamiToolKit/Nodes/Basic/IconImageNode.cs
T
KnackAtNite 8db4ce6094
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Initial commit: AetherBags + KamiToolKit for FC Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 14:46:31 -05:00

29 lines
730 B
C#

using System.Numerics;
using KamiToolKit.Classes;
namespace KamiToolKit.Nodes;
/// <summary>
/// A simple image node for use with displaying game icons.
/// </summary>
/// <remarks>This node is not intended to be used with multiple <see cref="Part" />'s.</remarks>
public unsafe class IconImageNode : SimpleImageNode {
public IconImageNode() {
TextureSize = new Vector2(32.0f, 32.0f);
}
public uint IconId {
get;
set {
if (value != field) {
field = value;
PartsList[0]->LoadIcon(value);
}
}
}
public bool IsTextureReady => PartsList[0]->IsTextureReady;
public uint? LoadedIconId => Node->IconId;
}