protected void ReloadCurrentTab() { base.CancelLoaderAndResetGrid(); SocialTabInfo tabInfo = base.GetTabInfo(this.curTab); tabInfo.LoadAction(); }
protected void TabClicked(bool selected, SocialTabs clickedTab) { if (!selected) { return; } if (this.curTab != clickedTab) { this.curTab = clickedTab; SocialTabInfo tabInfo = this.GetTabInfo(clickedTab); this.DoTabClickedReset(tabInfo.TabGridLoadHelper); tabInfo.LoadAction(); string cookie = (tabInfo.EventActionId == null) ? this.GetSelectedFactionString() : tabInfo.EventActionId; Service.EventManager.SendEvent(tabInfo.TabEventId, cookie); Service.UXController.MiscElementsManager.TryCloseNonFatalAlertScreen(); this.PositionScrollViewForTop50(); foreach (KeyValuePair <SocialTabs, SocialTabInfo> current in this.tabs) { if (current.Key == clickedTab) { current.Value.TabLabel.TextColor = UXUtils.COLOR_NAV_TAB_ENABLED; } else { current.Value.TabLabel.TextColor = UXUtils.COLOR_NAV_TAB_DISABLED; } } } }
protected void PlanetChanged(PlanetVO planet) { if (!this.Visible) { return; } Service.EventManager.SendEvent(EventId.SquadSelect, null); SocialTabInfo tabInfo = base.GetTabInfo(this.curTab); tabInfo.LoadAction(); this.top50Button.Enabled = false; this.findMeButton.Enabled = true; this.LogLeaderboardPlanetSelection(); }