using System.Numerics; using KamiToolKit.Classes; namespace KamiToolKit.Nodes; /// /// A simple image node for use with displaying game icons. /// /// This node is not intended to be used with multiple 's. 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; }