示例#1
0
        private void OnBrowseAllRewards(CUIEvent uiEvent)
        {
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm("UGUI/Form/System/Achieve/Form_Trophy_Rewards.prefab", false, true);

            CAchieveInfo2 masterAchieveInfo = CAchieveInfo2.GetMasterAchieveInfo();
            CUIListScript component         = cUIFormScript.GetWidget(0).GetComponent <CUIListScript>();

            if (component != null)
            {
                this.m_TrophyRewardInfoWithRewardList = masterAchieveInfo.GetTrophyRewardInfoWithRewards();
                this.m_TrophyRewardInfoWithRewardList.Sort(new CTrophyRewardInfoSort());
                component.SetElementAmount(this.m_TrophyRewardInfoWithRewardList.Count);
            }
        }