This repository was archived by the owner on Jul 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVecterModCore.cs
More file actions
82 lines (64 loc) · 2.3 KB
/
Copy pathVecterModCore.cs
File metadata and controls
82 lines (64 loc) · 2.3 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unity;
using System.Reflection;
using UnityEngine;
using BepInEx;
namespace BepVecterModCore
{
[BepInPlugin("vecterModCore", "VecterModCore", "1.0.3")]
[BepInProcess("Vecter.exe")]
public class VecterModCore : BaseUnityPlugin
{
static string modSection;
static bool HasAddedUI = false;
public bool musicPathChangerEnabled;
public static bool rainbowLiteEnabled;
public ColourScheme scheme;
public MusicPlayer player;
public static List<string> ModSettings = new List<string>();
void Start()
{
Debug.Log("I'm working with bep");
HasAddedUI = false;
ModSettings.Add("- ModCore");
}
void Update()
{
ChangeMenuUI();
}
public static void ChangeMenuUI()
{
if (go.GeneralGameState.isOptionsMenuShowing)
{
OptionsMenu2 menu;
menu = Resources.FindObjectsOfTypeAll<OptionsMenu2>().First();
if (HasAddedUI == false)
{
FieldInfo field_options = typeof(OptionsMenu2).GetField("options", BindingFlags.NonPublic | BindingFlags.Instance);
List<string> options;
options = field_options.GetValue(menu) as List<string>;
//MenuOptions
modSection = "------- Mods -------";
options.Add(modSection);
options.AddRange(ModSettings);
HasAddedUI = true;
}
switch (menu.SelectedOption)
{
case "ModCore":
menu.SelectedOption += "\n\nThanks for getting ModCore! Now other mods can piggyback off of\nthis one :)). \n\n'enter' to go to the modding discord :)\n[ Go To Discord ]".ToLowerInvariant();
if (Input.GetKeyDown(KeyCode.Return))
{
Application.OpenURL("https://discord.gg/HbntSZn");
Application.Quit();
}
break;
}
}
}
}
}