public void UiManagerInit() { InviteButton.Setup(); FriendButton.Setup(); WorldButton.Setup(); WorldDownloadStatus.Setup(); HudIcon.Setup(); }
public override void VRChat_OnUiManagerInit() { InviteButton.Setup(); FriendButton.Setup(); WorldButton.Setup(); WorldDownloadStatus.Setup(); HudIcon.Setup(); CacheManager.UpdateDirectories(); }
public override void VRChat_OnUiManagerInit() { GameObject.Find("UserInterface/QuickMenu/QuickModeMenus/QuickModeNotificationsMenu/ScrollRect/ViewPort/Content/NotificationUiPrefab/Row_NotificationActions").AddComponent <SelectedNotificationListener>(); GameObject.Find("UserInterface/QuickMenu/QuickModeMenus/QuickModeInviteResponseMoreOptionsMenu").AddComponent <NotificationMoreListener>(); InviteButton.Setup(); FriendButton.Setup(); WorldButton.Setup(); WorldDownloadStatus.Setup(); HudIcon.Setup(); }
public static void Prefix(Notification __0) { selectedNotification = __0; InviteButton.UpdateText(); }
public static void Prefix(Notification __0) { selectedNotification = __0; MelonLogger.Msg("Called patch"); InviteButton.UpdateText(); }
private static async void OnRecompress() { await TaskUtilities.YieldToMainThread(); CacheManager.CreateInfoFileFor(file); if (ModSettings.showHudMessages) { Utilities.QueueHudMessage("Download Finished"); } if (ModSettings.hideQMStatusWhenInActive) { WorldDownloadStatus.Disable(); } Downloading = false; CacheManager.AddDirectory(CacheManager.ComputeAssetHash(DownloadInfo.ApiWorld.id)); HudIcon.Disable(); InviteButton.UpdateTextDownloadStopped(); FriendButton.UpdateTextDownloadStopped(); WorldButton.UpdateTextDownloadStopped(); WorldDownloadStatus.gameObject.SetText(Constants.DOWNLOAD_STATUS_IDLE_TEXT); switch (DownloadInfo.DownloadType) { case DownloadType.Friend: if (!ModSettings.autoFollowFriends) { if (ModSettings.showPopupsOnComplete) { DisplayFriendPopup(); } } else { Utilities.GoToWorld(DownloadInfo.ApiWorld, DownloadInfo.InstanceIDTags, false); } break; case DownloadType.Invite: if (!ModSettings.autoFollowInvites) { if (ModSettings.showPopupsOnComplete) { DisplayInvitePopup(); } } else { Utilities.GoToWorld(DownloadInfo.ApiWorld, DownloadInfo.InstanceIDTags, true); } break; case DownloadType.World: if (!ModSettings.autoFollowWorlds) { if (ModSettings.showPopupsOnComplete) { DisplayWorldPopup(); } } else { Utilities.GoToWorld(DownloadInfo.ApiWorld, DownloadInfo.InstanceIDTags, false); } break; } }
private void OnEnable() => InviteButton.UpdateText();