mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 22:39:22 +00:00
more
This commit is contained in:
parent
21f8893095
commit
a92e478eb9
22 changed files with 2 additions and 80 deletions
21
.DepricatedMods/IKFixes/Integrations/UIExKitAddon.cs
Normal file
21
.DepricatedMods/IKFixes/Integrations/UIExKitAddon.cs
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue