mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
wip
This commit is contained in:
1 parent
2ee8730ba4
commit
b4e30b2b68
8 files changed
+393
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using BepInEx.Configuration;
|
||||
using MiraAPI.LocalSettings;
|
||||
using MiraAPI.LocalSettings.Attributes;
|
||||
using Reactor.Utilities;
|
||||
|
||||
namespace MiraAPI.Example;
|
||||
|
||||
public static class ExampleLocalSetings
|
||||
{
|
||||
public static LocalSettingsTab ModTab { get; } = new LocalSettingsTab("Example Tab");
|
||||
|
||||
[LocalSettingToggle]
|
||||
public static ConfigEntry<bool> ExampleToggleSetting { get; set; }
|
||||
|
||||
internal static void BindSettings(ConfigFile config)
|
||||
{
|
||||
ExampleToggleSetting = config.Bind("General", "Example Toggle", false);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user