[AlternateIKSystem] Add HalfBody Configuration page

This commit is contained in:
NotAKidoS 2023-07-14 04:09:22 -05:00
parent 074a408b01
commit 3f4de3ed7f

View file

@ -6,6 +6,8 @@ namespace NAK.AlternateIKSystem.Integrations;
public static class BTKUIAddon
{
#region Initialization
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Initialize()
{
@ -17,9 +19,13 @@ public static class BTKUIAddon
SetupGeneralIKConfigurationPage(ref miscCategory);
SetupDesktopIKConfigurationPage(ref miscCategory);
//SetupHalfBodyIKConfigurationPage(ref miscCategory);
SetupHalfBodyIKConfigurationPage(ref miscCategory);
}
#endregion
#region Pages Setup
private static void SetupGeneralIKConfigurationPage(ref Category parentCategory)
{
Page generalIKPage = parentCategory.AddPage("General IK Settings", "", "Configure the settings for general IK.", ModSettings.SettingsCategory);
@ -63,9 +69,11 @@ public static class BTKUIAddon
{
Page halfBodyIKPage = parentCategory.AddPage("HalfBody IK Settings", "", "Configure the settings for halfbody IK.", ModSettings.SettingsCategory);
halfBodyIKPage.MenuTitle = "HalfBody IK Settings";
Category halfBodyIKCategory = halfBodyIKPage.AddCategory(halfBodyIKPage.MenuTitle);
//Category halfBodyIKCategory = halfBodyIKPage.AddCategory(halfBodyIKPage.MenuTitle);
}
#endregion
#region Melon Pref Helpers
private static void AddMelonToggle(ref Category category, MelonLoader.MelonPreferences_Entry<bool> entry)