Initial commit: AetherBags + KamiToolKit for FC Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user