public void GoToGroups()
 {
     FriendsPanel.SetActive(true);
     RequestsPanel.SetActive(false);
     InRequestsTopTab.SetActive(false);
     InGroupsTopTab.SetActive(true);
 }
 public void SetInitialState()
 {
     panel.SetActive(false);
     TopPanel.SetActive(false);
     FriendsPanel.SetActive(true);
     ParentPanel.GetComponent <ScrollRect>().content = FriendsPanel.GetComponent <RectTransform>();
     RequestsPanel.SetActive(false);
     tabsSpread   = false;
     mapIsToggled = false;
     openPanelButton.SetActive(false);
     StandUpButton.SetActive(false);
     SitDownCameraChange.SetActive(false);
     SitDownButton.SetActive(false);
     closePanelButton.SetActive(false);
     FullGamePanel.SetActive(false);
     SpeakingPanel.SetActive(true);
     Coins.SetActive(true);
     OpenTabsToggle.SetActive(true);
     EditOrGoHomePanel.SetActive(false);
     GamePanel.SetActive(false);
     CameraButton.SetActive(true);
     JoinGameB.SetActive(false);
     SitDownCameraChange.SetActive(false);
     if (inMyRoom)
     {
         goBackHome.SetActive(false);
     }
     else
     {
         editWorld.SetActive(false);
         goBackHome.SetActive(true);
     }
 }
 public void GoToGroups()
 {
     FriendsPanel.SetActive(true);
     ParentPanel.GetComponent <ScrollRect>().content = FriendsPanel.GetComponent <RectTransform>();
     RequestsPanel.SetActive(false);
     InRequestsTopTab.SetActive(false);
     InGroupsTopTab.SetActive(true);
 }
 public void CloseGamePanel()
 {
     FriendsPanel.SetActive(true);
     FullGamePanel.SetActive(false);
     isGamePanelOpen = false;
     GoToGroups();
     BackToGroups();
 }
 public void BackToGroups()
 {
     // add invite to group button at top of group
     BackToGroupsTopTab.SetActive(false);
     InGroupsTopTab.SetActive(true);
     GroupFriendsPanel.SetActive(false);
     FriendsPanel.SetActive(true);
 }
 public void OpenGroup()
 {
     GroupFriendsPanel.SetActive(true);
     FriendsPanel.SetActive(false);
     RequestsPanel.SetActive(false); // only for precaution
     BackToGroupsTopTab.SetActive(true);
     InGroupsTopTab.SetActive(false);
 }
 public void OpenGroup()
 {
     GroupFriendsPanel.SetActive(true);
     ParentPanel.GetComponent <ScrollRect>().content = GroupFriendsPanel.GetComponent <RectTransform>();
     FriendsPanel.SetActive(false);
     RequestsPanel.SetActive(false); // only for precaution
     BackToGroupsTopTab.SetActive(true);
     InGroupsTopTab.SetActive(false);
 }
 public void OpenGamesPanel()
 {
     isGamePanelOpen = true;
     FriendsPanel.SetActive(false);
     RequestsPanel.SetActive(false);
     GroupFriendsPanel.SetActive(false);
     FullGamePanel.SetActive(true);
     TogglePanel(true);
 }
 public void BackToGroups()
 {
     BackToGroupsTopTab.SetActive(false);
     InGroupsTopTab.SetActive(true);
     GroupFriendsPanel.SetActive(false);
     FriendsPanel.SetActive(true);
     PublicWorldsPanel.SetActive(false);
     ParentPanel.GetComponent <ScrollRect>().content = FriendsPanel.GetComponent <RectTransform>();
     LoadingNewMemberToggle(false);
 }
 private void OnAcceptFriendRequestResult(LogEventResponse response)
 {
     if (!response.HasErrors)
     {
         // remove pending request from list
         GameObject.Destroy(GameObject.Find(playerID + "pending"));
         FriendsPanel friendsPanelScript = GetComponentInParent <FriendsPanel>();
         friendsPanelScript.GetPendingFriendsList();
     }
 }
Exemple #11
0
 public FriendsPage(bool showDevice)
     : base(showDevice, MediaType.UserCard)
 {
     if (showDevice)
     {
         Deviceland.InitDevicePage(this);
         this.PivotPreference  = Shell.MainFrame.Device.Friends;
         this.ShowComputerIcon = ComputerIconState.Show;
     }
     else
     {
         this.PivotPreference = Shell.MainFrame.Social.Friends;
     }
     this.TransportControlStyle = TransportControlStyle.Music;
     this.PlaybackContext       = PlaybackContext.Music;
     this.IsRootPage            = true;
     this.UI            = FriendsPageTemplate;
     this.UIPath        = "Social\\Friends";
     this._friendsPanel = new FriendsPanel(this);
 }
Exemple #12
0
 public void SetInitialState()
 {
     panel.SetActive(false);
     TopPanel.SetActive(false);
     FriendsPanel.SetActive(true);
     RequestsPanel.SetActive(false);
     tabsSpread   = false;
     mapIsToggled = false;
     openPanelButton.SetActive(false);
     closePanelButton.SetActive(false);
     SpeakingPanel.SetActive(false);
     OpenTabsToggle.SetActive(true);
     EditOrGoHomePanel.SetActive(false);
     if (inMyRoom)
     {
         goBackHome.SetActive(false);
     }
     else
     {
         editWorld.SetActive(false);
         goBackHome.SetActive(true);
     }
 }
 public void OpenPublicWorldsPanel()
 {
     FriendsPanel.SetActive(false);
     PublicWorldsPanel.SetActive(true);
     BackToGroupsTopTab.SetActive(true);
 }
 public void ToggleRequestAndFriendsPanel()
 {
     RequestsPanel.SetActive(friendsPanelOpen);
     FriendsPanel.SetActive(!friendsPanelOpen);
     friendsPanelOpen = !friendsPanelOpen;
 }