Initial commit: AetherBags + KamiToolKit for FC Gitea
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-08 14:46:31 -05:00
commit 8db4ce6094
375 changed files with 34124 additions and 0 deletions
@@ -0,0 +1,66 @@
using System.Linq;
using KamiToolKit.Enums;
namespace KamiToolKit.Nodes;
public class HorizontalListNode : LayoutListNode {
public HorizontalListAnchor Alignment {
get;
set {
field = value;
RecalculateLayout();
}
}
public override float Width {
get => base.Width;
set {
base.Width = value;
RecalculateLayout();
}
}
/// <summary>
/// Adjusts contained nodes heights to match this nodes height
/// </summary>
public bool FitHeight { get; set; }
/// <summary>
/// Resizes the horizontal list node to fit all contents
/// </summary>
public bool FitToContentHeight { get; set; }
protected override void OnRecalculateLayout() {
var startX = Alignment switch {
HorizontalListAnchor.Left => 0.0f + FirstItemSpacing,
HorizontalListAnchor.Right => Width - FirstItemSpacing,
_ => 0.0f,
};
foreach (var node in NodeList) {
if (!node.IsVisible) continue;
if (Alignment is HorizontalListAnchor.Right) {
startX -= node.Width + ItemSpacing;
}
node.X = startX;
AdjustNode(node);
if (Alignment is HorizontalListAnchor.Left) {
startX += node.Width + ItemSpacing;
}
if (FitHeight) {
node.Height = Height;
}
}
if (FitToContentHeight) {
Height = NodeList.Max(node => node.Height);
}
}
public float AreaRemaining => Width - NodeList.Sum(node => node.Width + ItemSpacing) - ItemSpacing;
}