Add settings button

This commit is contained in:
Zeffuro
2025-12-23 05:42:18 +01:00
parent de5079644d
commit 20a2b0a819
+11
View File
@@ -10,6 +10,7 @@ using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using FFXIVClientStructs.FFXIV.Component.GUI;
using KamiToolKit;
using KamiToolKit.Classes;
using KamiToolKit.Nodes;
namespace AetherBags.Addons;
@@ -20,6 +21,7 @@ public class AddonInventoryWindow : NativeAddon
private WrappingGridNode<InventoryCategoryNode> _categoriesNode = null!;
private TextInputWithHintNode _searchInputNode = null!;
private CircleButtonNode _settingsButtonNode = null!;
private InventoryFooterNode _footerNode = null!;
// Window constraints
@@ -72,6 +74,15 @@ public class AddonInventoryWindow : NativeAddon
};
_searchInputNode.AttachNode(this);
_settingsButtonNode = new CircleButtonNode
{
Position = new Vector2(headerW - 48f, y),
Size = new Vector2(28f),
Icon = ButtonIcon.GearCog,
OnClick = System.AddonConfigurationWindow.Toggle
};
_settingsButtonNode.AttachNode(this);
_footerNode = new InventoryFooterNode
{
Size = ContentSize with { Y = FooterHeight },