-
Notifications
You must be signed in to change notification settings - Fork 1
/
Btd6Plus.cs
47 lines (41 loc) · 1.36 KB
/
Btd6Plus.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 Assets.Main.Scenes;
using Assets.Scripts.Unity.UI_New;
using Assets.Scripts.Unity.UI_New.Main;
using MelonLoader;
using BTD_Mod_Helper;
using Btd6Plus;
using HarmonyLib;
[assembly: MelonInfo(typeof(Btd6Plus.Btd6Plus), ModHelperData.Name, ModHelperData.Version, ModHelperData.RepoOwner)]
[assembly: MelonGame("Ninja Kiwi", "BloonsTD6")]
namespace Btd6Plus;
public class Btd6Plus : BloonsTD6Mod
{
[HarmonyPatch(typeof(TitleScreen), nameof(TitleScreen.Start))]
internal static class TitleScreen_Start
{
[HarmonyPostfix]
private static void Postfix(TitleScreen __instance)
{
__instance.arcadePlus.SetActive(true);
}
}
[HarmonyPatch(typeof(MainMenu), nameof(MainMenu.Start))]
internal static class MainMenu_Start
{
[HarmonyPostfix]
private static void Postfix(MainMenu __instance)
{
__instance.storeBtn.gameObject.SetActive(false);
}
}
[HarmonyPatch(typeof(CommonForegroundScreen), nameof(CommonForegroundScreen.Update))]
internal static class CommonForegroundScreen_Show
{
[HarmonyPostfix]
private static void Postfix(CommonForegroundScreen __instance)
{
__instance.buyMoreMonkeyMoneyButton.gameObject.SetActive(false);
__instance.buyKnowledgeButton.gameObject.SetActive(false);
}
}
}