Initial commit: AetherBags + KamiToolKit for FC Gitea
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using System.Numerics;
|
||||
using KamiToolKit.Classes;
|
||||
|
||||
namespace KamiToolKit.Nodes;
|
||||
|
||||
public unsafe class SimpleNineGridNode : NineGridNode {
|
||||
public SimpleNineGridNode() {
|
||||
PartsList.Add(new Part());
|
||||
}
|
||||
|
||||
public float U {
|
||||
get => PartsList[0]->U;
|
||||
set => PartsList[0]->U = (ushort)value;
|
||||
}
|
||||
|
||||
public float V {
|
||||
get => PartsList[0]->V;
|
||||
set => PartsList[0]->V = (ushort)value;
|
||||
}
|
||||
|
||||
public Vector2 TextureCoordinates {
|
||||
get => new(U, V);
|
||||
set {
|
||||
U = value.X;
|
||||
V = value.Y;
|
||||
}
|
||||
}
|
||||
|
||||
public float TextureWidth {
|
||||
get => PartsList[0]->Width;
|
||||
set => PartsList[0]->Width = (ushort)value;
|
||||
}
|
||||
|
||||
public float TextureHeight {
|
||||
get => PartsList[0]->Height;
|
||||
set => PartsList[0]->Height = (ushort)value;
|
||||
}
|
||||
|
||||
public Vector2 TextureSize {
|
||||
get => new(TextureWidth, TextureHeight);
|
||||
set {
|
||||
TextureWidth = value.X;
|
||||
TextureHeight = value.Y;
|
||||
}
|
||||
}
|
||||
|
||||
public string TexturePath {
|
||||
get => PartsList[0]->LoadedPath;
|
||||
set => PartsList[0]->LoadTexture(value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user