NAK_CVR_Mods/IKFixes/Integrations/UIExKitAddon.cs
NotAKidoS e31bf87609 [IKFixes] Updates for 2023r171
Removed unneeded settings. Fixed halfbody fake root angle option.
Added Reset Settings UIExpansionKit button.
2023-09-15 21:15:50 -05:00

21 lines
No EOL
634 B
C#

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();
}
}