mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
21
.Deprecated/IKFixes/Integrations/UIExKitAddon.cs
Normal file
21
.Deprecated/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