/// <summary> /// 设置限时活动详细列表当前页 /// </summary> /// <param name="id"></param> private void SetLimitActivityInfoListCurrentPageByID(int id) { for (int i = 0; i < m_listLimitActivityInfoData.Count; i++) { if (m_listLimitActivityInfoData[i].ID == id) { if (i <= m_infoGridListMogoListImproved.MaxPageIndex) { m_infoGridListMogoListImproved.TweenTo(i, true); } return; } } }
void OnNext() { m_vipInfo.SetActive(false); m_vipInfoNext.SetActive(true); m_listImproveVIPInfoNext.TweenTo(0, true); }
/// <summary> /// 设置排名数据 /// </summary> void RankingMainDataListResourceLoaded() { var m_dataList = m_mainRankDataMogoListImproved.DataList; m_mainRankDataMogoSingleButtonList.SingleButtonList.Clear(); for (int i = 0; i < m_dataList.Count; i++) { RankingUIRankData rankingUIRankData = (RankingUIRankData)m_dataList[i]; rankingUIRankData.Index = i; rankingUIRankData.RankingUIMainRankData1 = m_rankingMainDataList[i].uniqieRank.ToString(); rankingUIRankData.RankingUIMainRankData2Name = m_rankingMainDataList[i].recordName; rankingUIRankData.RankingUIMainRankData3 = m_rankingMainDataList[i].level; rankingUIRankData.RankingUIMainRankData4 = m_rankingMainDataList[i].attrib.ToString("N0"); rankingUIRankData.RankingUIMainRankData5FansCount = m_rankingMainDataList[i].fansCount; rankingUIRankData.AvatarID = m_rankingMainDataList[i].tdbID; // SingleButtonList m_mainRankDataMogoSingleButtonList.SingleButtonList.Add(rankingUIRankData.GetComponentsInChildren <MogoSingleButton>(true)[0]); // BoxCollider区域添加滑动 MogoButton mogoButton = rankingUIRankData.GetComponent <MogoButton>(); if (mogoButton == null) { mogoButton = rankingUIRankData.gameObject.AddComponent <MogoButton>(); } mogoButton.pressHandler = m_mainRankDataMogoListImproved.PressHandlerOutSide; mogoButton.dragHandler = m_mainRankDataMogoListImproved.DragHandlerOutSide; } m_mainRankDataMogoListImproved.StopTween(); m_mainRankDataMogoListImproved.ResetCameraPos(); if (m_mainRankDataMogoListImproved.gameObject.activeSelf) { if (CurrentPage >= 0 && CurrentPage <= m_mainRankDataMogoListImproved.MaxPageIndex) { //Debug.LogError("1.CurrentPage is " + CurrentPage); m_mainRankDataMogoListImproved.TweenTo(CurrentPage, true); // 数据返回时滑动到标记页 } else if (m_playerRankDataMogoListImproved.CurrentPage <= m_playerRankDataMogoListImproved.MaxPageIndex) { //Debug.LogError("2.CurrentPage is " + m_playerRankDataMogoListImproved.CurrentPage); m_mainRankDataMogoListImproved.TweenTo(m_playerRankDataMogoListImproved.CurrentPage, true); CurrentPage = m_playerRankDataMogoListImproved.CurrentPage; } else { //Debug.LogError("3.CurrentPage is " + 0); m_mainRankDataMogoListImproved.TweenTo(0, true); CurrentPage = 0; } } else { m_mainRankDataMogoListImproved.TweenTo(m_playerRankDataMogoListImproved.CurrentPage, true); CurrentPage = m_playerRankDataMogoListImproved.CurrentPage; } MogoGlobleUIManager.Instance.ShowWaitingTip(false); RankingUIViewManager.Instance.ShowRankingUIWaitingTip(false); }