Skip to content

Commit b13759a

Browse files
Fix menu
1 parent 3904892 commit b13759a

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

Classes/Menu/ButtonInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public class ButtonInfo
3232

3333
public Action method; // Every frame before GTPlayer.LateUpdate is called
3434
public Action postMethod; // Every frame after GTPlayer.LateUpdate is called
35-
public Action awakeMethod; // Once on awake (before entire game initialization)
3635

3736
public Action enableMethod; // Once before method on enable
3837
public Action disableMethod; // Once on disable

Menu/Buttons.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public static class Buttons
467467

468468
new ButtonInfo { buttonText = "Oculus Report Menu <color=grey>[</color><color=green>X</color><color=grey>]</color>", method = Important.OculusReportMenu, toolTip = "Opens the Oculus report menu when holding <color=green>X</color>."},
469469

470-
new ButtonInfo { buttonText = "Accept TOS", awakeMethod =() => TOSPatches.enabled = true, method = Important.AcceptTOS, disableMethod =() => TOSPatches.enabled = false, toolTip = "Accepts the Terms of Service for you."},
470+
new ButtonInfo { buttonText = "Accept TOS", enableMethod =() => TOSPatches.enabled = true, method = Important.AcceptTOS, disableMethod =() => TOSPatches.enabled = false, toolTip = "Accepts the Terms of Service for you."},
471471
new ButtonInfo { buttonText = "Bypass K-ID Restrictions", overlapText = "Bypass k-ID Restrictions", method =() => PermissionPatch.enabled = true, disableMethod =() => PermissionPatch.enabled = false, toolTip = "Bypasses the permission restrictions held by k-ID for underage users."},
472472
new ButtonInfo { buttonText = "Redeem Shiny Rocks", method =() => CoroutineManager.instance.StartCoroutine(Important.RedeemShinyRocks()), isTogglable = false, toolTip = "Redeems the 500 Shiny Rocks k-ID gives you."},
473473

Plugin.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
using iiMenu.Managers;
2626
using iiMenu.Menu;
2727
using iiMenu.Patches;
28+
using iiMenu.Patches.Menu;
2829
using System.ComponentModel;
2930
using System.IO;
3031
using System.Linq;
@@ -86,14 +87,11 @@ private void Awake()
8687
Directory.CreateDirectory(DirectoryTarget);
8788
}
8889

90+
// Ugily hard-coded but works so well
8991
if (File.Exists($"{PluginInfo.BaseDirectory}/iiMenu_Preferences.txt"))
9092
{
91-
string[] mods = File.ReadAllLines($"{PluginInfo.BaseDirectory}/iiMenu_Preferences.txt")[0].Split(";;");
92-
foreach (string mod in mods)
93-
{
94-
var button = Buttons.GetIndex(mod);
95-
button?.awakeMethod?.Invoke();
96-
}
93+
if (File.ReadAllLines($"{PluginInfo.BaseDirectory}/iiMenu_Preferences.txt")[0].Split(";;").Contains("Accept TOS"))
94+
TOSPatches.enabled = true;
9795
}
9896

9997
if (File.Exists($"{PluginInfo.BaseDirectory}/iiMenu_DisableTelemetry.txt"))

PluginInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class PluginInfo
2626
public const string GUID = "org.iidk.gorillatag.iimenu";
2727
public const string Name = "ii's Stupid Menu";
2828
public const string Description = "Created by @crimsoncauldron with love <3";
29-
public const string BuildTimestamp = "2026-02-08T01:16:25Z";
29+
public const string BuildTimestamp = "2026-02-08T01:48:53Z";
3030
public const string Version = "8.2.3";
3131

3232
public const string BaseDirectory = "iisStupidMenu";

0 commit comments

Comments
 (0)