private void CreateObjects() { this.mFriendRequestTable = base.transform.FindChild("feiendRequestPanel/friendRequestContents").gameObject.AddComponent<FriendCommonGrid>(); this.mFriendRequestTable.maxPerLine = 2; this.mFriendRequestTable.arrangement = UICustomGrid.Arrangement.Vertical; this.mFriendRequestTable.cellWidth = 450f; this.mFriendRequestTable.cellHeight = 120f; this.mFriendRequestTable.gapHeight = 2f; this.mFriendRequestTable.gapWidth = 2f; this.mFriendRequestTable.focusID = GameUIManager.mInstance.uiState.SelectFriendID; }
private void CreateObjects() { this.mTips = base.transform.Find("friendPanel/tips").gameObject; this.mTips.SetActive(false); this.mSendBtn = base.transform.Find("sendBtn").GetComponent<UIButton>(); this.mGetBtn = base.transform.Find("getBtn").GetComponent<UIButton>(); this.mSendBtn.gameObject.SetActive(false); this.mGetBtn.gameObject.SetActive(false); this.mFriendCountBg = base.transform.Find("friendCount").GetComponent<UILabel>(); this.mFriendCount = this.mFriendCountBg.transform.Find("Label").GetComponent<UILabel>(); this.mKeyBg = base.transform.Find("keyCount").GetComponent<UILabel>(); this.mKeyCount = this.mKeyBg.transform.Find("label").GetComponent<UILabel>(); this.mFriendCountBg.enabled = false; this.mFriendCount.enabled = false; this.mKeyBg.enabled = false; this.mKeyCount.enabled = false; GameUITools.RegisterClickEvent("addBtn", new UIEventListener.VoidDelegate(this.OnAddBtnClick), base.gameObject); UIEventListener expr_152 = UIEventListener.Get(this.mSendBtn.gameObject); expr_152.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_152.onClick, new UIEventListener.VoidDelegate(this.OnSendBtnClick)); UIEventListener expr_183 = UIEventListener.Get(this.mGetBtn.gameObject); expr_183.onClick = (UIEventListener.VoidDelegate)Delegate.Combine(expr_183.onClick, new UIEventListener.VoidDelegate(this.OnGetBtnClick)); this.mCommonFriendTable = base.transform.FindChild("friendPanel/friendContents").gameObject.AddComponent<FriendCommonGrid>(); this.mCommonFriendTable.maxPerLine = 2; this.mCommonFriendTable.arrangement = UICustomGrid.Arrangement.Vertical; this.mCommonFriendTable.cellWidth = 450f; this.mCommonFriendTable.cellHeight = 120f; this.mCommonFriendTable.gapHeight = 2f; this.mCommonFriendTable.gapWidth = 2f; this.mCommonFriendTable.focusID = GameUIManager.mInstance.uiState.SelectFriendID; }
private void CreateObjects() { this.changeBtn = GameUITools.RegisterClickEvent("changeBtn", new UIEventListener.VoidDelegate(this.OnChangeBtnClick), base.gameObject); this.BtnRefresh = base.transform.FindChild("refresh").gameObject; this.BtnRefreshText = this.BtnRefresh.transform.FindChild("Label").GetComponent<UILabel>(); this.changeBtn.SetActive(true); this.BtnRefresh.gameObject.SetActive(false); this.mFriendRecommendTable = base.transform.FindChild("friendRecommendPanel/friendContents").gameObject.AddComponent<FriendCommonGrid>(); this.mFriendRecommendTable.maxPerLine = 2; this.mFriendRecommendTable.arrangement = UICustomGrid.Arrangement.Vertical; this.mFriendRecommendTable.cellWidth = 450f; this.mFriendRecommendTable.cellHeight = 120f; this.mFriendRecommendTable.gapHeight = 2f; this.mFriendRecommendTable.gapWidth = 2f; this.mFriendRecommendTable.focusID = GameUIManager.mInstance.uiState.SelectFriendID; }
private void CreateObjects() { this.mTxt = base.transform.Find("blackListCount").GetComponent<UILabel>(); this.mBlackListCount = this.mTxt.transform.Find("Label").GetComponent<UILabel>(); this.mTxt.enabled = false; this.mBlackListCount.enabled = false; this.mFriendBlackListTable = base.transform.FindChild("blackListPanel/blackListContents").gameObject.AddComponent<FriendCommonGrid>(); this.mFriendBlackListTable.maxPerLine = 2; this.mFriendBlackListTable.arrangement = UICustomGrid.Arrangement.Vertical; this.mFriendBlackListTable.cellWidth = 450f; this.mFriendBlackListTable.cellHeight = 120f; this.mFriendBlackListTable.gapHeight = 2f; this.mFriendBlackListTable.gapWidth = 2f; this.mFriendBlackListTable.focusID = GameUIManager.mInstance.uiState.SelectFriendID; }