-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.cs
38 lines (31 loc) · 1.04 KB
/
Plugin.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using BepInEx;
using HarmonyLib;
using HookUILib.Core;
#if BEPINEX_V6
using BepInEx.Unity.Mono;
#endif
public static class mioPLUGIN
{
public const string PLUGIN_GUID = "mio-hotkey-mod";
public const string PLUGIN_NAME = "MioHotkeyMod";
public const string PLUGIN_VERSION = "0.1.2";
}
namespace MioHotkeyMod
{
[BepInPlugin(mioPLUGIN.PLUGIN_GUID, mioPLUGIN.PLUGIN_NAME, mioPLUGIN.PLUGIN_VERSION)]
public class Plugin : BaseUnityPlugin {
private void Awake() {
var harmony = new Harmony(mioPLUGIN.PLUGIN_NAME);
harmony.PatchAll();
Logger.LogInfo($"Plugin {mioPLUGIN.PLUGIN_GUID} is loaded!");
}
}
public class PluginUI : UIExtension {
public new readonly string extensionID = "mio.hotkey";
public new readonly string extensionContent;
public new readonly ExtensionType extensionType = ExtensionType.Panel;
public PluginUI() {
this.extensionContent = this.LoadEmbeddedResource("MioHotkeyMod.dist.bundle.js");
}
}
}