NAK_CVR_Mods/Blackout/UIExpansionKitAddon.cs
NotAKidoS e6784b967e Initial Release
Added UIExpansionKit support, moved Harmony patches to own cs, added accidental feature that disables automatic state change, added option to lower FPS while in sleep state.
2022-10-14 02:00:05 -05:00

15 lines
No EOL
521 B
C#

using System.Runtime.CompilerServices;
using UIExpansionKit.API;
namespace Blackout;
public static class UiExtensionsAddon
{
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Init()
{
var settings = ExpansionKitApi.GetSettingsCategory(Blackout.SettingsCategory);
settings.AddSimpleButton("Awake State", Blackout.AwakeState);
settings.AddSimpleButton("Drowsy State", Blackout.DrowsyState);
settings.AddSimpleButton("Sleep State", Blackout.SleepingState);
}
}