mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
i dont remember
This commit is contained in:
parent
73762e7241
commit
933913bb11
7 changed files with 606 additions and 350 deletions
14
DesktopVRSwitch/UIExpansionKitAddon.cs
Normal file
14
DesktopVRSwitch/UIExpansionKitAddon.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using UIExpansionKit.API;
|
||||
|
||||
namespace DesktopVRSwitch;
|
||||
public static class UiExtensionsAddon
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.NoInlining)]
|
||||
public static void Init()
|
||||
{
|
||||
var settings = ExpansionKitApi.GetSettingsCategory(DesktopVRSwitch.SettingsCategory);
|
||||
settings.AddSimpleButton("Switch VRMode", SwitchModeButton);
|
||||
}
|
||||
internal static void SwitchModeButton() => DesktopVRSwitchHelper.Instance.SwitchMode(true);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue