// Token: 0x06013110 RID: 78096 RVA: 0x004DD858 File Offset: 0x004DBA58 private void UpdateSharePlayerInfo() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateSharePlayerInfo_hotfix != null) { this.m_UpdateSharePlayerInfo_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.m_playerNameText.text = projectLPlayerContext.GetPlayerName(); this.m_playerLvText.text = projectLPlayerContext.GetPlayerLevel().ToString(); this.m_serverNameText.text = LoginUITask.GetCurrentSelectServerInfo().m_name; }
// Token: 0x06009667 RID: 38503 RVA: 0x002B07C4 File Offset: 0x002AE9C4 protected override void OnBindFiledsCompleted() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null) { this.m_OnBindFiledsCompleted_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; base.OnBindFiledsCompleted(); this.m_playerContext = (GameManager.Instance.PlayerContext as ProjectLPlayerContext); this.m_returnButton.onClick.AddListener(new UnityAction(this.OnReturnClick)); this.m_ssrToggle.onValueChanged.AddListener(delegate(bool isSelect) { if (isSelect) { this.SwitchRankShowClick(this.m_ssrToggle.gameObject); } }); this.m_srToggle.onValueChanged.AddListener(delegate(bool isSelect) { if (isSelect) { this.SwitchRankShowClick(this.m_srToggle.gameObject); } }); this.m_rToggle.onValueChanged.AddListener(delegate(bool isSelect) { if (isSelect) { this.SwitchRankShowClick(this.m_rToggle.gameObject); } }); GameObject asset = this.m_resourceContainer.GetAsset <GameObject>("ShareButton"); GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(asset); gameObject.transform.SetParent(this.m_shareButtonDummy.transform, false); this.m_weiBoButton = GameObjectUtility.FindComponentByName <Button>(gameObject.transform, "WeiBoButton"); this.m_weChatButton = GameObjectUtility.FindComponentByName <Button>(gameObject.transform, "WeChatButton"); CommonUIStateController commonUIStateController = gameObject.GetComponent <CommonUIStateController>(); if (commonUIStateController != null) { commonUIStateController.SetToUIState("BgOff", false, true); } asset = this.m_resourceContainer.GetAsset <GameObject>("SharePhoto"); gameObject = UnityEngine.Object.Instantiate <GameObject>(asset); gameObject.transform.SetParent(this.m_sharePhotoDummy.transform, false); commonUIStateController = gameObject.GetComponentInChildren <CommonUIStateController>(); if (commonUIStateController != null) { commonUIStateController.SetToUIState("Normal", false, true); } this.m_nameText = GameObjectUtility.FindComponentByName <Text>(gameObject.transform, "NameText"); this.m_lvText = GameObjectUtility.FindComponentByName <Text>(gameObject.transform, "LvValueText"); this.m_serverNameText = GameObjectUtility.FindComponentByName <Text>(gameObject.transform, "ServerNameText"); this.m_weiBoButton.onClick.AddListener(new UnityAction(this.OnWeiBoClick)); this.m_weChatButton.onClick.AddListener(new UnityAction(this.OnWeChatClick)); this.m_nameText.text = this.m_playerContext.GetPlayerName(); this.m_lvText.text = this.m_playerContext.GetPlayerLevel().ToString(); this.m_serverNameText.text = LoginUITask.GetCurrentSelectServerInfo().m_name; this.m_sharePhotoDummy.SetActive(false); this.m_herosRGameObject.SetActive(false); this.m_herosSRGameObject.SetActive(false); this.m_herosSSRGameObject.SetActive(false); }