WIP changes for layout engine and config

This commit is contained in:
Shawrkie Williams
2025-12-22 17:18:44 -05:00
parent fff0578b74
commit bc9a7b9122
6 changed files with 341 additions and 10 deletions
@@ -0,0 +1,39 @@
using AetherBags.Configuration;
using FFXIVClientStructs.FFXIV.Component.GUI;
using KamiToolKit.Classes;
using KamiToolKit.Nodes;
using System.Numerics;
namespace AetherBags.Nodes.Configuration.Layout;
internal sealed class CompactLookaheadNode : SimpleComponentNode
{
public readonly NumericInputNode CompactLookahead = null!;
public unsafe CompactLookaheadNode()
{
GeneralSettings config = System.Config.General;
var titleNode = new LabelTextNode
{
Size = Size with { Y = 24 },
String = "Compact Lookahead",
};
titleNode.AttachNode(this);
CompactLookahead = new NumericInputNode
{
Position = Position with { X = 240 },
Size = Size with { X = 88 },
IsVisible = true,
Value = config.CompactLookahead,
OnValueUpdate = value =>
{
config.CompactLookahead = value;
System.AddonInventoryWindow.ManualRefresh();
}
};
CompactLookahead.ComponentBase->SetEnabledState(config.CompactPackingEnabled);
CompactLookahead.AttachNode(this);
}
}