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
57c842ece6
commit
5fb59408fa
8 files changed
+105
-55
No files matched your search
@@ -7,13 +7,8 @@ namespace MiraAPI.Example;
|
||||
|
||||
public static class ExampleLocalSetings
|
||||
{
|
||||
public static LocalSettingsTab ModTab { get; } = new LocalSettingsTab("Example Tab");
|
||||
public static LocalSettingsTab ModTab { get; } = new("Example Tab");
|
||||
|
||||
[LocalSettingToggle]
|
||||
public static ConfigEntry<bool> ExampleToggleSetting { get; set; }
|
||||
|
||||
internal static void BindSettings(ConfigFile config)
|
||||
{
|
||||
ExampleToggleSetting = config.Bind("General", "Example Toggle", false);
|
||||
}
|
||||
}
|
||||
[LocalSetting]
|
||||
public static ConfigEntry<bool> ExampleToggleSetting { get; private set; }
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using BepInEx;
|
||||
using System.Linq;
|
||||
using BepInEx;
|
||||
using BepInEx.Configuration;
|
||||
using BepInEx.Unity.IL2CPP;
|
||||
using HarmonyLib;
|
||||
@@ -21,8 +22,9 @@ public partial class ExamplePlugin : BasePlugin, IMiraPlugin
|
||||
public ConfigFile GetConfigFile() => Config;
|
||||
public override void Load()
|
||||
{
|
||||
ExampleLocalSetings.BindSettings(Config);
|
||||
ExampleEventHandlers.Initialize();
|
||||
Harmony.PatchAll();
|
||||
|
||||
Config.Keys.
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user