Add settings button
This commit is contained in:
@@ -10,6 +10,7 @@ using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
|||||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
using KamiToolKit;
|
using KamiToolKit;
|
||||||
using KamiToolKit.Classes;
|
using KamiToolKit.Classes;
|
||||||
|
using KamiToolKit.Nodes;
|
||||||
|
|
||||||
namespace AetherBags.Addons;
|
namespace AetherBags.Addons;
|
||||||
|
|
||||||
@@ -20,6 +21,7 @@ public class AddonInventoryWindow : NativeAddon
|
|||||||
|
|
||||||
private WrappingGridNode<InventoryCategoryNode> _categoriesNode = null!;
|
private WrappingGridNode<InventoryCategoryNode> _categoriesNode = null!;
|
||||||
private TextInputWithHintNode _searchInputNode = null!;
|
private TextInputWithHintNode _searchInputNode = null!;
|
||||||
|
private CircleButtonNode _settingsButtonNode = null!;
|
||||||
private InventoryFooterNode _footerNode = null!;
|
private InventoryFooterNode _footerNode = null!;
|
||||||
|
|
||||||
// Window constraints
|
// Window constraints
|
||||||
@@ -72,6 +74,15 @@ public class AddonInventoryWindow : NativeAddon
|
|||||||
};
|
};
|
||||||
_searchInputNode.AttachNode(this);
|
_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
|
_footerNode = new InventoryFooterNode
|
||||||
{
|
{
|
||||||
Size = ContentSize with { Y = FooterHeight },
|
Size = ContentSize with { Y = FooterHeight },
|
||||||
|
|||||||
Reference in New Issue
Block a user