-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathBetterUI.cs
47 lines (36 loc) · 1.52 KB
/
BetterUI.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
38
39
40
41
42
43
44
45
46
47
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using BepInEx;
using MonoMod.RuntimeDetour;
using System.Reflection;
namespace BetterUI
{
[BepInDependency("dev.ontrigger.itemstats", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("com.xoxfaby.BetterAPI", BepInDependency.DependencyFlags.SoftDependency)]
[BepInPlugin(GUID, Name, Version)]
public class BetterUIPlugin : BetterUnityPlugin.BetterUnityPlugin<BetterUIPlugin>
{
public const string GUID = "com.xoxfaby.BetterUI";
public const string Name = "BetterUI";
public const string Version = "2.7.2";
internal static BetterUIPlugin instance;
internal delegate void HUDAwakeEvent(RoR2.UI.HUD self);
internal static event HUDAwakeEvent onHUDAwake;
internal static bool BetterAPIModIntegration = false;
internal static RoR2.UI.HUD hud;
internal static RoR2.UI.ObjectivePanelController objectivePanelController;
public static StringBuilder sharedStringBuilder = new StringBuilder();
public override BaseUnityPlugin typeReference => throw new NotImplementedException();
protected override void Awake()
{
base.Awake();
instance = this;
this.gameObject.hideFlags |= UnityEngine.HideFlags.HideAndDontSave;
this.gameObject.AddComponent<BetterUI.Language.UpdateChecker>();
BetterUI.Language.LoadLanguages();
BetterUIWindow.Init();
}
}
}