Files
AetherBags/KamiToolKit/Nodes/Basic/TreeListHeaderNode.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

46 lines
1.3 KiB
C#

using System.Numerics;
using FFXIVClientStructs.FFXIV.Component.GUI;
using KamiToolKit.Classes;
using Lumina.Text.ReadOnly;
namespace KamiToolKit.Nodes;
public class TreeListHeaderNode : ResNode {
public readonly NineGridNode DecorationNode;
public readonly TextNode LabelNode;
public TreeListHeaderNode() {
DecorationNode = new SimpleNineGridNode {
TexturePath = "ui/uld/journal_Separator.tex",
TextureCoordinates = new Vector2(0.0f, 0.0f),
TextureSize = new Vector2(424.0f, 24.0f),
Size = new Vector2(24.0f, 24.0f),
LeftOffset = 25.0f,
RightOffset = 20.0f,
};
DecorationNode.AttachNode(this);
LabelNode = new TextNode {
Position = new Vector2(22.0f, 1.0f),
TextColor = ColorHelper.GetColor(7),
AlignmentType = AlignmentType.Left,
FontSize = 12,
FontType = FontType.Axis,
};
LabelNode.AttachNode(this);
}
public ReadOnlySeString String {
get => LabelNode.String;
set => LabelNode.String = value;
}
protected override void OnSizeChanged() {
base.OnSizeChanged();
DecorationNode.Size = Size;
LabelNode.Size = new Vector2(Width - 22.0f, Height);
}
}