public void VRCUI() { QMNestedButton TabButton = new QMNestedButton("Hentai", Icon); _invisbleToggleButton = new QMToggleButton(TabButton, 1, 0, "Safe Invisble On", delegate() { _goInvisble = true; }, "Safe Invisble Off", delegate() { _goInvisble = false; }, "Toggle for joining worlds either Invisble or Visble", Color.cyan, Color.white); new QMSingleButton(TabButton, 2, 0, "Join World\n(Clipboard)", delegate() { _goInvisble = true; string ImGay = GUIUtility.systemCopyBuffer; new PortalInternal().Method_Private_Void_String_String_PDM_0(ImGay.Split(':')[0], ImGay.Split(':')[1]); }, "Tries to join world from clipboard"); InvisLabel = GameObject.Instantiate(QMStuff.GetQuickMenuInstance().transform.Find("QuickMenu_NewElements/_InfoBar/EarlyAccessText").gameObject, QMStuff.GetQuickMenuInstance().transform.Find("QuickMenu_NewElements/_InfoBar/")); InvisLabel.name = "Oga Boga Indicator"; InvisLabel.transform.localScale = new Vector3(1, 1, 1); InvisLabel.GetComponent <RectTransform>().anchoredPosition = new Vector2(780, -230); InvisTXT = InvisLabel.GetComponent <Text>(); InvisTXT.fontStyle = FontStyle.Bold; }
public Menu() : base("UserInteractMenu", 4, -2, "", "Open Anti Crash", Color.white, Color.white) { new QMSingleButton(this, 1, 0, "Blacklist avatar", delegate { var avid = QMStuff.GetQuickMenuInstance().field_Private_MonoBehaviourPublicAPObBoVRBoObApAPInBoUnique_0.prop_ApiAvatar_0.id; File.AppendAllText(Cache.path, "\n" + avid); Cache.blacklisted_avatars += "\n" + avid; }, "Blacklists the avatar."); new QMSingleButton(this, 2, 0, "Remove avatar\nfrom\nblacklist", delegate { File.WriteAllText(Cache.path, File.ReadAllText(Cache.path). Replace(QMStuff.GetQuickMenuInstance().field_Private_MonoBehaviourPublicAPObBoVRBoObApAPInBoUnique_0.prop_ApiAvatar_0.id, "")); }, "Removes avatar from blacklist."); new QMSingleButton(this, 3, 0, "Show avatar", delegate { var player = QMStuff.GetQuickMenuInstance().field_Private_MonoBehaviourPublicAPObBoVRBoObApAPInBoUnique_0; if (!Cache.blacklisted_avatars.Contains(player.prop_MonoBehaviour2PublicObSiObStTeObBoHaObSiUnique_0.prop_ApiAvatar_0.id)) { player.prop_MonoBehaviour2PublicObSiObStTeObBoHaObSiUnique_0.GetComponentInChildren <VRC_AvatarDescriptor>(includeInactive: true).transform.parent.gameObject.SetActive(true); } }, "Will only show avatar if the avatar is not blacklisted."); new QMSingleButton(this, 4, 0, "Copy avatar\nID", delegate { System.Windows.Forms.Clipboard.SetText(QMStuff.GetQuickMenuInstance().field_Private_MonoBehaviourPublicAPObBoVRBoObApAPInBoUnique_0.prop_ApiAvatar_0.id); }, "Copys avatar id to clipboard."); foreach (var button in QMButtonAPI.allSingleButtons) { button.getGameObject().GetComponentInChildren <Image>().sprite = Cache.button; button.getGameObject().GetComponentInChildren <Button>().colors = new ColorBlock { colorMultiplier = 1f, disabledColor = Color.grey, highlightedColor = Color.grey * 1.5f, normalColor = Color.grey, pressedColor = Color.grey * 1.5f }; } getMainButton().getGameObject().GetComponentInChildren <Image>().sprite = Cache.logo; }