示例#1
0
    private void SetViewSolGuide(byte bSeason, byte bPage)
    {
        NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo();

        List <SolSlotData> list = null;

        if (this.dicSlotData.ContainsKey(bSeason))
        {
            this.dicSlotData.TryGetValue(bSeason, out list);
            int num   = (int)((bPage - 1) * 27);
            int count = list.Count;
            this.bMaxPage = (byte)(count / 27);
            if (count % 27 > 0)
            {
                this.bMaxPage += 1;
            }
            for (int i = 0; i < 27; i++)
            {
                if (count > num)
                {
                    NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(list[num].i32KindInfo);

                    long charSubData = myCharInfo.GetCharSubData((int)list[num].bBitFlag + eCHAR_SUBDATA.CHAR_SUBDATA_SOLGUIDE_0 - 1);
                    if (charKindInfo != null)
                    {
                        this.m_Sol_Slot[i].IT_Slot.SetSolImageTexure(eCharImageType.SMALL, charKindInfo.GetCharKind(), (int)(list[num].bSolGrade - 1));
                    }
                    else
                    {
                        this.m_Sol_Slot[i].IT_Slot.SetTexture("Win_T_ItemEmpty");
                    }
                    this.m_Sol_Slot[i].DT_Event.Hide(true);
                    this.m_Sol_Slot[i].Box_New.Hide(true);
                    if ((charSubData & 1L << (int)list[num].bBitFlagCount) != 0L)
                    {
                        this.m_Sol_Slot[i].DT_BlackSlot.Hide(true);
                        long charSolGuide = myCharInfo.GetCharSolGuide((int)(list[num].bBitFlag - 1));
                        if ((charSolGuide & 1L << (int)list[num].bBitFlagCount) != 0L)
                        {
                            this.m_Sol_Slot[i].Box_New.Hide(false);
                        }
                        else
                        {
                            this.m_Sol_Slot[i].Box_New.Hide(true);
                        }
                    }
                    else
                    {
                        this.m_Sol_Slot[i].DT_BlackSlot.Hide(false);
                        this.m_Sol_Slot[i].Box_New.Hide(true);
                    }
                    if (NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(charKindInfo.GetCharKind(), list[num].bSolGrade) == null)
                    {
                        UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(charKindInfo.GetCharKind(), (int)(list[num].bSolGrade - 1));

                        if (legendFrame != null)
                        {
                            this.m_Sol_Slot[i].DT_Slot.SetTexture(legendFrame);
                        }
                        else
                        {
                            this.m_Sol_Slot[i].DT_Slot.SetTexture("Win_T_ItemEmpty");
                        }
                    }
                    else
                    {
                        this.m_Sol_Slot[i].DT_Event.Hide(false);
                        this.m_Sol_Slot[i].DT_Slot.SetTexture("Win_I_EventSol");
                    }
                }
                else
                {
                    this.m_Sol_Slot[i].IT_Slot.ClearData();
                    this.m_Sol_Slot[i].IT_Slot.SetTexture("Win_T_ItemEmpty");
                    this.m_Sol_Slot[i].DT_BlackSlot.Hide(false);
                    this.m_Sol_Slot[i].Box_New.Hide(true);
                    this.m_Sol_Slot[i].DT_Event.Hide(true);
                    this.m_Sol_Slot[i].DT_Slot.SetTexture("Win_T_ItemEmpty");
                }
                num++;
            }
        }
        else
        {
            TsLog.LogWarning("!!!!!!!!!!!!!!! Not NDT File", new object[0]);
        }
        this.ChageClickText();
    }