36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System.Numerics;
|
|
using AetherBags.Addons;
|
|
using KamiToolKit.Nodes;
|
|
|
|
namespace AetherBags.Nodes.Configuration.Category;
|
|
|
|
public sealed class CategoryScrollingAreaNode : ScrollingListNode
|
|
{
|
|
private AddonCategoryConfigurationWindow? _categoryConfigurationAddon;
|
|
private readonly TextButtonNode _categoryConfigurationButtonNode;
|
|
|
|
public CategoryScrollingAreaNode()
|
|
{
|
|
InitializeCategoryAddon();
|
|
|
|
AddNode(new CategoryGeneralConfigurationNode());
|
|
|
|
_categoryConfigurationButtonNode = new TextButtonNode
|
|
{
|
|
Size = new Vector2(300, 28),
|
|
String = "Configure Categories",
|
|
OnClick = () => _categoryConfigurationAddon?.Toggle(),
|
|
};
|
|
AddNode(_categoryConfigurationButtonNode);
|
|
}
|
|
|
|
private void InitializeCategoryAddon() {
|
|
if (_categoryConfigurationAddon is not null) return;
|
|
|
|
_categoryConfigurationAddon = new AddonCategoryConfigurationWindow {
|
|
Size = new Vector2(700.0f, 500.0f),
|
|
InternalName = "AetherBags_CategoryConfig",
|
|
Title = "Category Configuration Window",
|
|
};
|
|
}
|
|
} |