[IKFixes] Updates for 2023r171

Removed unneeded settings. Fixed halfbody fake root angle option.
Added Reset Settings UIExpansionKit button.
This commit is contained in:
NotAKidoS 2023-09-15 21:15:50 -05:00
parent 3c52f8c60c
commit e31bf87609
7 changed files with 141 additions and 202 deletions

View file

@ -0,0 +1,21 @@
using System.Runtime.CompilerServices;
using MelonLoader;
using UIExpansionKit.API;
namespace NAK.IKFixes.Integrations;
public static class UIExKitAddon
{
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Initialize()
{
var settings = ExpansionKitApi.GetSettingsCategory(IKFixes.SettingsCategory);
settings.AddSimpleButton("Reset Settings (Only visually updates bool values, UIExpansionKit bug!)", ResetSettings);
}
private static void ResetSettings()
{
foreach (MelonPreferences_Entry setting in IKFixes.Category.Entries)
setting.ResetToDefault();
}
}