From d3f86683537720a2cc2cf3b78af1a9c29f3dbe49 Mon Sep 17 00:00:00 2001 From: gompocp <73906388+gompocp@users.noreply.github.com> Date: Mon, 23 Aug 2021 21:26:24 +0100 Subject: [PATCH] Disable invite predownloading, Bump version --- WorldPredownload/Main.cs | 2 +- WorldPredownload/UI/InviteButton.cs | 4 ++++ WorldPredownload/WorldPredownload.csproj | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WorldPredownload/Main.cs b/WorldPredownload/Main.cs index ccea2b9..c2bd552 100644 --- a/WorldPredownload/Main.cs +++ b/WorldPredownload/Main.cs @@ -2,7 +2,7 @@ using UIExpansionKit.API; using WorldPredownload.UI; -[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.5.3", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] +[assembly: MelonInfo(typeof(WorldPredownload.WorldPredownload), "WorldPredownload", "1.6.0", "gompo", "https://github.com/gompocp/VRChatMods/releases/")] [assembly: MelonGame("VRChat", "VRChat")] [assembly: VerifyLoaderVersion(0, 4, 3, true)] diff --git a/WorldPredownload/UI/InviteButton.cs b/WorldPredownload/UI/InviteButton.cs index d9dad48..b97abf8 100644 --- a/WorldPredownload/UI/InviteButton.cs +++ b/WorldPredownload/UI/InviteButton.cs @@ -60,6 +60,7 @@ public class InviteButton public static void Setup() { + return; Button = Utilities.CloneGameObject(PATH_TO_GAMEOBJECT_TO_CLONE, PATH_TO_CLONE_PARENT); Button.GetRectTrans().SetAnchoredPos(Constants.InviteButtonPos); Button.SetName(Constants.INVITE_BUTTON_NAME); @@ -73,12 +74,14 @@ public static void Setup() public static void UpdateTextDownloadStopped() { + return; Button.SetText(Constants.BUTTON_IDLE_TEXT); CanChangeText = true; } public static void UpdateText() { + return; if (Utilities.GetSelectedNotification().notificationType.Equals("invite")) { Button.SetActive(true); @@ -110,6 +113,7 @@ public static void UpdateText() public static IEnumerator InviteButtonTimer(int time) { + yield break; canDownload = false; for (var i = time; i >= 0; i--) { diff --git a/WorldPredownload/WorldPredownload.csproj b/WorldPredownload/WorldPredownload.csproj index be8ab28..8ff5a45 100644 --- a/WorldPredownload/WorldPredownload.csproj +++ b/WorldPredownload/WorldPredownload.csproj @@ -3,7 +3,7 @@ net472 true - 1.5.3.0 + 1.6.0.0 9 true annotations