示例#1
0
        private static void ShowRewardPanel(CUIFormScript form, COMDT_RANKDETAIL data)
        {
            if (data == null)
            {
                return;
            }
            Text component = form.GetWidget(5).GetComponent <Text>();
            uint num;

            if (data.bMaxSeasonGrade > 0)
            {
                num = (uint)data.bMaxSeasonGrade;
            }
            else
            {
                num = (uint)CLadderSystem.GetGradeDataByLogicGrade(1).bGrade;
            }
            component.set_text(Singleton <CLadderSystem> .GetInstance().GetRewardDesc((byte)num));
            GameObject widget            = form.GetWidget(12);
            CUseable   skinRewardUseable = Singleton <CLadderSystem> .GetInstance().GetSkinRewardUseable();

            CUICommonSystem.SetItemCell(form, widget, skinRewardUseable, true, false, false, false);
            GameObject widget2 = form.GetWidget(14);

            widget2.CustomSetActive(Singleton <CLadderSystem> .GetInstance().IsGotSkinReward());
            CLadderView.ShowSeasonEndRewardPanel(form);
        }