internal virtual void Init() { field_Public_String_0 = "SCREEN"; field_Protected_CanvasGroup_0 = GetComponent <CanvasGroup>(); leaveButton = transform.Find("Footer/LeaveButton").GetComponent <Button>(); enterButton = transform.Find("Footer/EnterButton").GetComponent <Button>(); blackListButton = transform.Find("Footer/BlackListButton").GetComponent <Button>(); titleText = transform.Find("TitlePanel/TitleText").GetComponent <Text>(); leaveButton.onClick = new Button.ButtonClickedEvent(); leaveButton.onClick.AddListener(new Action(() => UiManager.CloseBigMenu())); enterButton.onClick = new Button.ButtonClickedEvent(); enterButton.onClick.AddListener(new Action(() => PortalUtils.EnterPortal(portal, dropper, worldId, roomId))); blackListButton.onClick = new Button.ButtonClickedEvent(); blackListButton.onClick.AddListener(new Action(() => { if (dropper.id == "") { UiManager.OpenAlertPopup("Cant blacklist this user"); } else { AskToPortalMod.blacklistedUserIds.Add(dropper.id); UiManager.CloseBigMenu(); } })); }
public static void ToQuickMenu() { UserInfoExtensionsMod.HideAllPopups(); foreach (Player player in PlayerManager.prop_PlayerManager_0.field_Private_List_1_Player_0) { if (player.prop_APIUser_0 == null) { continue; } if (player.prop_APIUser_0.id == VRCUtils.ActiveUserInUserInfoMenu.id) { UiManager.CloseBigMenu(); UiManager.OpenQuickMenu(); UiManager.OpenUserInQuickMenu(player); return; } } UiManager.OpenSmallPopup("Notice:", "You cannot show this user on the Quick Menu because they are not in the same instance", "Close", new Action(UiManager.ClosePopup)); }