Skip to content

Commit

Permalink
Disable invite predownloading, Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
gompocp committed Aug 23, 2021
1 parent ba9bd6c commit d3f8668
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion WorldPredownload/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down
4 changes: 4 additions & 0 deletions WorldPredownload/UI/InviteButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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--)
{
Expand Down
2 changes: 1 addition & 1 deletion WorldPredownload/WorldPredownload.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<VrcReferences>true</VrcReferences>
<Version>1.5.3.0</Version>
<Version>1.6.0.0</Version>
<LangVersion>9</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>annotations</Nullable>
Expand Down

0 comments on commit d3f8668

Please sign in to comment.