Example #1
0
    public override UIPanelBase.PanelData GetPanelData()
    {
        PanelData pd = base.GetPanelData();

        pd.JumpData      = new PanelJumpData();
        pd.JumpData.Tabs = new int[1];
        MallManager mgr = DataManager.Manager <MallManager>();

        switch (mgr.BlackMarketActiveStore)
        {
        case GameCmd.CommonStore.CommonStore_HundredThree:
            pd.JumpData.Tabs[0] = (int)TabMode.YunYou;
            break;
            //case GameCmd.CommonStore.CommonStore_HundredOne:
            //    pd.JumpData.Tabs[0] = (int)TabMode.ShengWang;
            //    break;
            //case GameCmd.CommonStore.CommonStore_HundredTwo:
            //    pd.JumpData.Tabs[0] = (int)TabMode.JiFen;
            //    break;
            //case GameCmd.CommonStore.CommonStore_HundredFour:
            //    pd.JumpData.Tabs[0] = (int)TabMode.ZhanXun;
            //    break;
            //case GameCmd.CommonStore.CommonStore_HundredFive:
            //    pd.JumpData.Tabs[0] = (int)TabMode.ShouLie;
            //    break;
            //default:
            //    pd.JumpData.Tabs[0] = (int)TabMode.ShengWang;
            //    break;
        }
        return(pd);
    }
Example #2
0
        public MainPage()
        {
            this.InitializeComponent();

            this.Malls = new ObservableView <Mall>(MallManager.GetMalls());
            this.Malls.SearchSpecification.Add(mall => mall.Title);
            this.Malls.SearchSpecification.Add(mall => mall.Subtitle);

            this.BindingContext = this;
        }
Example #3
0
        public MainPage()
        {
            this.InitializeComponent();

            var listItems = MallManager.GetMalls();

            this.ListItemsView = new ObservableView <Mall>(listItems);
            this.ListItemsView.AddSearchSpecification(x => x.Title);
            this.ListItemsView.AddSearchSpecification(x => x.Subtitle);

            this.searchBox.Focus(FocusState.Keyboard);
            this.searchBox.TextChanged += this.OnSearchBoxTextChanged; // You could use SearchText data binding in XAML instead

            this.DataContext = this;
        }
Example #4
0
        public ViewController(IntPtr handle)
            : base(handle)
        {
            this.Title = "Malls";

            var malls = MallManager.GetMalls();

            this.ListController            = new ObservableViewTableViewController <Mall>();
            this.ListController.DataSource = new ObservableView <Mall>(malls);
            this.ListController.DataSource.AddSearchSpecification(x => x.Title);
            this.ListController.DataSource.AddSearchSpecification(x => x.Subtitle);
            this.ListController.CreateCellDelegate = this.CreateCell;
            this.ListController.BindCellDelegate   = this.BindCell;

            this.ListController.TableView = this.ListController.TableView; // BUG: TableView is not created
        }
Example #5
0
 // Token: 0x060024E0 RID: 9440 RVA: 0x004243CC File Offset: 0x004225CC
 public void SendAskDownLoad()
 {
     if (this.Type == ETreasureType.ETST_Crystal)
     {
         return;
     }
     if (this.m_AssetBundleKey == 0 && this.PicPackageID1 != 0)
     {
         CString cstring = StringManager.Instance.StaticString1024();
         cstring.IntToFormat((long)this.PicPackageID1, 1, false);
         cstring.AppendFormat("Store/Mallback_{0}");
         if (AssetManager.GetAssetBundleDownload(cstring, AssetPath.Store, AssetType.MallBack, this.PicPackageID1, false))
         {
             this.bDownLoadPic = true;
         }
     }
     if (this.PicPackageID2 != 0)
     {
         MallManager instance = MallManager.Instance;
         ushort      num      = this.PicPackageID2 + 1000;
         CString     cstring2 = StringManager.Instance.StaticString1024();
         cstring2.IntToFormat((long)num, 1, false);
         cstring2.AppendFormat("Store/Mallback_{0}");
         if (AssetManager.GetAssetBundleDownload(cstring2, AssetPath.Store, AssetType.MallBack, num, false) && instance.MainData != null && instance.MainData.PicPackageID2 == this.PicPackageID2)
         {
             instance.LoadMainPackege(num);
             instance.SetMainPackage();
         }
     }
     if (this.m_StrAssetBundleKey == 0 && this.StrPackageID != 0)
     {
         CString cstring3 = StringManager.Instance.StaticString1024();
         cstring3.IntToFormat((long)this.StrPackageID, 1, false);
         cstring3.AppendFormat("Store/Package_{0}");
         if (AssetManager.GetAssetBundleDownload(cstring3, AssetPath.Store, AssetType.MallPackage, this.StrPackageID, false))
         {
             this.bDownLoadStr = true;
         }
     }
     MallManager.Instance.CheckOpenMain();
 }
Example #6
0
        public MainWindow()
        {
            this.InitializeComponent();

            var listItems = MallManager.GetMalls();

            this.ListItemsView = new ObservableView <Mall>(listItems);
            this.ListItemsView.AddSearchSpecification(x => x.Title);
            this.ListItemsView.AddSearchSpecification(x => x.Subtitle);

            this.searchBox.Focus();


            // In this example we use the binding Text = "{Binding ListItemsView.SearchText, Mode=TwoWay}"
            // in order to bind the searchBox.Text to the SearchText property of the ObservableView< Mall >.
            // Therefore, the following OnSearchBoxTextChanged event handler can be removed:

            // this.searchBox.TextChanged += this.OnSearchBoxTextChanged;


            this.DataContext = this;
        }
Example #7
0
 // Token: 0x06001939 RID: 6457 RVA: 0x002A82D0 File Offset: 0x002A64D0
 private void UpDateList()
 {
     this.tmpData = this.DM.ComboBoxTable.GetRecordByKey(this.MM.BackRewardComboBoxID);
     this.Point   = 0u;
     this.MM.BackRewardItemDataCount = 0;
     for (int i = 0; i < this.tmpData.ItemData.Length; i++)
     {
         if (this.tmpData.ItemData[i].ItemID != 0)
         {
             Equip recordByKey = this.DM.EquipTable.GetRecordByKey(this.tmpData.ItemData[i].ItemID);
             if (recordByKey.EquipKind == 11 && recordByKey.PropertiesInfo[0].Propertieskey == 6)
             {
                 this.Point += (uint)(recordByKey.PropertiesInfo[1].Propertieskey * recordByKey.PropertiesInfo[1].PropertiesValue * this.tmpData.ItemData[i].ItemCount);
             }
             else if ((int)this.MM.BackRewardItemDataCount < this.MM.BackRewardItemData.Length)
             {
                 this.MM.BackRewardItemData[(int)this.MM.BackRewardItemDataCount] = (byte)i;
                 MallManager mm = this.MM;
                 mm.BackRewardItemDataCount += 1;
             }
         }
     }
     this.AddCount  = ((this.Point <= 0u) ? 0 : 1);
     this.ItemCount = 0;
     this.NowHeightList.Clear();
     if (this.Point > 0u)
     {
         this.NowHeightList.Add(55f);
         this.ItemCount += 1;
     }
     for (int j = 0; j < (int)this.MM.BackRewardItemDataCount; j++)
     {
         this.NowHeightList.Add(55f);
     }
     this.ItemCount += this.MM.BackRewardItemDataCount;
     this.Scroll.AddNewDataHeight(this.NowHeightList, true, true);
 }
Example #8
0
    // Token: 0x06000DA2 RID: 3490 RVA: 0x0015D17C File Offset: 0x0015B37C
    public override void OnOpen(int arg1, int arg2)
    {
        MallManager instance = MallManager.Instance;

        this.DM          = DataManager.Instance;
        this.GM          = GUIManager.Instance;
        this.SM          = StringManager.Instance;
        this.AM          = ActivityManager.Instance;
        this.m_transform = base.transform;
        Font ttffont = this.GM.GetTTFFont();

        this.m_transform.GetChild(2).GetChild(0).GetComponent <UIButton>().m_Handler = this;
        this.m_transform.GetChild(2).GetComponent <CustomImage>().hander             = this;
        this.m_transform.GetChild(2).GetChild(0).GetComponent <CustomImage>().hander = this;
        this.m_transform.GetChild(3).GetComponent <UIButton>().m_Handler             = this;
        this.m_transform.GetChild(3).gameObject.AddComponent <ArabicItemTextureRot>();
        if (this.GM.bOpenOnIPhoneX)
        {
            this.m_transform.GetChild(2).GetComponent <CustomImage>().enabled = false;
        }
        if (arg1 == 1)
        {
            Transform child = this.m_transform.GetChild(1);
            this.OutText[0]      = child.GetChild(2).GetComponent <UIText>();
            this.OutText[0].font = ttffont;
            this.OutText[0].text = this.DM.mStringTable.GetStringByID(8146u);
            this.OutText[1]      = child.GetChild(3).GetComponent <UIText>();
            this.OutText[1].font = ttffont;
            this.OutText[2]      = child.GetChild(4).GetComponent <UIText>();
            this.OutText[2].font = ttffont;
            this.OutText[2].text = this.DM.mStringTable.GetStringByID(8147u);
            this.OutText[3]      = child.GetChild(5).GetChild(0).GetChild(1).GetComponent <UIText>();
            this.OutText[3].font = ttffont;
            if (arg2 == 100)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(8164u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(8165u);
            }
            else if (arg2 == 0)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(8161u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(8162u);
            }
            else if (arg2 == 1)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(8161u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(8163u);
            }
            else if (arg2 == 201)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(9827u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(8163u);
            }
            else if (arg2 == 202)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(9823u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(9824u);
            }
            else if (arg2 == 203)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(9825u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(8163u);
            }
            else if (arg2 == 204)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(9823u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(9824u);
            }
            else if (arg2 == 205)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(9821u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(9822u);
            }
            else if (arg2 == 207)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(10014u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(10015u);
            }
            else if (arg2 == 208)
            {
                this.OutText[0].text = this.DM.mStringTable.GetStringByID(14523u);
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(14524u);
                this.InfoStr         = StringManager.Instance.SpawnString(1500);
                this.InfoStr.Append(this.DM.mStringTable.GetStringByID(14525u));
                this.InfoStr.Append("\n\n");
                this.InfoStr.Append(this.DM.mStringTable.GetStringByID(14526u));
                this.OutText[3].text = this.InfoStr.ToString();
            }
            else if (arg2 == 209)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(5038u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(5039u);
            }
            else if (arg2 == 211)
            {
                this.OutText[1].rectTransform.sizeDelta        = new Vector2(720f, 51.2f);
                this.OutText[1].rectTransform.anchoredPosition = new Vector2(0f, 164f);
                this.OutText[1].resizeTextForBestFit           = true;
                this.OutText[1].resizeTextMaxSize = 19;
                this.OutText[1].resizeTextMinSize = 10;
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(12230u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(12231u);
            }
            else if (arg2 == 212)
            {
                this.OutText[1].rectTransform.sizeDelta        = new Vector2(720f, 51.2f);
                this.OutText[1].rectTransform.anchoredPosition = new Vector2(0f, 164f);
                this.OutText[1].resizeTextForBestFit           = true;
                this.OutText[1].resizeTextMaxSize = 19;
                this.OutText[1].resizeTextMinSize = 10;
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(12227u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(12228u);
            }
            else if (arg2 == 213)
            {
                this.OutText[0].text = this.DM.mStringTable.GetStringByID(12225u);
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(12223u);
                this.OutText[3].text = this.DM.mStringTable.GetStringByID(12224u);
            }
            this.OutText[3].rectTransform.sizeDelta = new Vector2(this.OutText[3].rectTransform.sizeDelta.x, this.OutText[3].preferredHeight);
            RectTransform component = child.GetChild(5).GetChild(0).GetComponent <RectTransform>();
            component.sizeDelta = new Vector2(component.sizeDelta.x, this.OutText[3].preferredHeight + 12f);
        }
        else if (arg1 == 2)
        {
            this.bPrize = true;
            if (arg2 >= 201 && arg2 <= 205)
            {
                if (arg2 - 201 >= this.AM.KvKActivityData.Length)
                {
                    return;
                }
                this.ActivityIndex = (byte)arg2;
                this.tmpData       = this.AM.KvKActivityData[arg2 - 201];
            }
            else if (arg2 == 206)
            {
                this.PrizeCount    = 5;
                this.ActivityIndex = (byte)arg2;
                this.tmpData       = this.AM.AllyMobilizationData;
            }
            else if (arg2 == 210)
            {
                this.PrizeCount    = 5;
                this.ActivityIndex = (byte)arg2;
                this.tmpData       = this.AM.AllianceWarData;
            }
            else if (arg2 >= 211 && arg2 <= 213)
            {
                if (arg2 - 211 >= this.AM.FIFAData.Length)
                {
                    return;
                }
                this.ActivityIndex = (byte)arg2;
                this.tmpData       = this.AM.FIFAData[arg2 - 211];
            }
            else
            {
                this.tmpData       = this.AM.ActivityData[arg2];
                this.ActivityIndex = (byte)arg2;
            }
            this.STitleText      = new UIText[this.PrizeCount];
            this.SGemCountText   = new UIText[this.PrizeCount];
            this.STotalpriceText = new UIText[this.PrizeCount];
            this.SNoPriceText    = new UIText[this.PrizeCount];
            Transform child = this.m_transform.GetChild(1);
            this.OutText[0]      = child.GetChild(2).GetComponent <UIText>();
            this.OutText[0].font = ttffont;
            this.OutText[0].text = this.DM.mStringTable.GetStringByID(8148u);
            this.OutText[1]      = child.GetChild(3).GetComponent <UIText>();
            this.OutText[1].font = ttffont;
            this.OutText[1].resizeTextForBestFit = true;
            this.OutText[1].resizeTextMaxSize    = 19;
            this.OutText[1].resizeTextMinSize    = 10;
            if (arg2 == 206)
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(1365u);
            }
            else if (arg2 == 210)
            {
                this.OutText[1].rectTransform.anchoredPosition = new Vector2(0f, 169.4f);
                this.OutText[1].rectTransform.sizeDelta        = new Vector2(750f, 65f);
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(17028u);
            }
            else if (arg2 >= 203 && arg2 <= 205 && this.AM.IsMatchKvk())
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(8176u);
            }
            else if (arg2 >= 211 && arg2 <= 213 && this.AM.IsInFIFA(0, false))
            {
                if (this.tmpData.ActiveType == EActivityType.EAT_FIFA_KVK)
                {
                    this.OutText[1].text = this.DM.mStringTable.GetStringByID(8176u);
                }
                else if (arg2 == 211)
                {
                    this.OutText[1].text = this.DM.mStringTable.GetStringByID(12229u);
                }
                else if (arg2 == 212)
                {
                    this.OutText[1].text = this.DM.mStringTable.GetStringByID(12226u);
                }
                else
                {
                    this.OutText[1].text = this.DM.mStringTable.GetStringByID(12226u);
                }
            }
            else
            {
                this.OutText[1].text = this.DM.mStringTable.GetStringByID(8155u);
            }
            this.OutText[2]      = child.GetChild(4).GetComponent <UIText>();
            this.OutText[2].font = ttffont;
            this.OutText[2].text = this.DM.mStringTable.GetStringByID(8149u);
            child.GetChild(5).GetChild(0).GetChild(1).gameObject.SetActive(false);
            this.TitleText      = new CString[this.PrizeCount];
            this.GemCountText   = new CString[this.PrizeCount];
            this.TotalpriceText = new CString[this.PrizeCount];
            this.NoPriceText    = new CString[this.PrizeCount];
            this.ItemCount      = new int[this.PrizeCount];
            for (int i = 0; i < this.PrizeCount; i++)
            {
                this.ItemCount[i] = (int)this.tmpData.RankingPrizeDataLen[i];
            }
            this.ItemCountText  = new CString[this.PrizeCount][];
            this.SItemCountText = new UIText[this.PrizeCount][];
            for (int j = 0; j < this.PrizeCount; j++)
            {
                this.ItemCountText[j]  = new CString[this.ItemCount[j]];
                this.SItemCountText[j] = new UIText[this.ItemCount[j]];
            }
            float num  = 0f;
            float num2 = 30f;
            this.ContentT = child.GetChild(5).GetChild(0);
            int num3 = 0;
            int num4 = 0;
            for (int k = 0; k < this.PrizeCount; k++)
            {
                if (this.ActivityIndex == 210)
                {
                    num4++;
                    GameObject gameObject = UnityEngine.Object.Instantiate(this.ContentT.GetChild(0).gameObject) as GameObject;
                    gameObject.SetActive(true);
                    gameObject.transform.SetParent(this.ContentT, false);
                    Transform transform = gameObject.transform;
                    transform.GetComponent <RectTransform>().anchoredPosition += new Vector2(0f, -num - (181f - num2 + 3f) * (float)k);
                    this.STitleText[k]      = transform.GetChild(3).GetComponent <UIText>();
                    this.STitleText[k].font = ttffont;
                    this.TitleText[k]       = this.SM.SpawnString(30);
                    if (k <= 1)
                    {
                        transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(k);
                        this.TitleText[k].IntToFormat((long)(k + 1), 1, false);
                        this.TitleText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8150u));
                    }
                    else
                    {
                        byte b  = 1;
                        byte b2 = 1;
                        if (k == 2)
                        {
                            b  = 3;
                            b2 = 4;
                        }
                        else if (k == 3)
                        {
                            b  = 5;
                            b2 = 8;
                        }
                        else if (k == 4)
                        {
                            b  = 9;
                            b2 = 16;
                        }
                        transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(3);
                        this.TitleText[k].IntToFormat((long)b, 1, false);
                        this.TitleText[k].IntToFormat((long)b2, 1, false);
                        this.TitleText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8151u));
                    }
                    this.STitleText[k].text    = this.TitleText[k].ToString();
                    this.SGemCountText[k]      = transform.GetChild(2).GetComponent <UIText>();
                    this.SGemCountText[k].font = ttffont;
                    this.GemCountText[k]       = this.SM.SpawnString(30);
                    transform.GetChild(1).gameObject.SetActive(false);
                    transform.GetChild(2).gameObject.SetActive(false);
                    this.STotalpriceText[k]      = transform.GetChild(4).GetComponent <UIText>();
                    this.STotalpriceText[k].font = ttffont;
                    this.TotalpriceText[k]       = this.SM.SpawnString(30);
                    transform.GetChild(4).gameObject.SetActive(false);
                    this.SNoPriceText[k]      = transform.GetChild(5).GetComponent <UIText>();
                    this.SNoPriceText[k].font = ttffont;
                    this.NoPriceText[k]       = this.SM.SpawnString(30);
                    transform.GetChild(5).gameObject.SetActive(false);
                    int       num5   = 0;
                    Transform child2 = transform.GetChild(6);
                    this.GM.InitianHeroItemImg(child2.GetChild(0), eHeroOrItem.Item, 1001, 0, 0, 0, false, true, true, false);
                    child2.GetChild(2).gameObject.AddComponent <UIButtonHint>().m_eHint = EUIButtonHint.UILeBtn;
                    this.GM.InitLordEquipImg(child2.GetChild(2), 0, 0, eLordEquipDisplayKind.OnlyItem, false, true, 0, 0, 0, 0, 0, false);
                    for (int l = 0; l < this.ItemCount[k]; l++)
                    {
                        if (this.tmpData.RankingPrize[num3].ItemID == 0)
                        {
                            num3++;
                        }
                        else
                        {
                            Equip recordByKey = this.DM.EquipTable.GetRecordByKey(this.tmpData.RankingPrize[num3].ItemID);
                            if (recordByKey.EquipKind == 11 && recordByKey.PropertiesInfo[0].Propertieskey == 6)
                            {
                                num3++;
                            }
                            else
                            {
                                GameObject gameObject2 = UnityEngine.Object.Instantiate(child2.gameObject) as GameObject;
                                gameObject2.SetActive(true);
                                gameObject2.transform.SetParent(transform, false);
                                bool flag = this.GM.IsLeadItem(recordByKey.EquipKind);
                                if (flag)
                                {
                                    gameObject2.transform.GetChild(0).gameObject.SetActive(false);
                                    gameObject2.transform.GetChild(2).gameObject.SetActive(true);
                                    this.GM.ChangeLordEquipImg(gameObject2.transform.GetChild(2), this.tmpData.RankingPrize[num3].ItemID, this.tmpData.RankingPrize[num3].Rank, eLordEquipDisplayKind.OnlyItem, 0, 0, 0, 0, 0, false);
                                }
                                else
                                {
                                    this.GM.ChangeHeroItemImg(gameObject2.transform.GetChild(0), eHeroOrItem.Item, this.tmpData.RankingPrize[num3].ItemID, 0, this.tmpData.RankingPrize[num3].Rank, 0);
                                    this.ItemHIBtn.Add(gameObject2.transform.GetChild(0).GetComponent <UIHIBtn>());
                                }
                                if (flag)
                                {
                                    gameObject2.transform.GetChild(2).GetComponent <UIButtonHint>().enabled = true;
                                    gameObject2.transform.GetChild(2).GetComponent <UILEBtn>().m_Handler    = this;
                                }
                                else
                                {
                                    if (instance.CheckCanOpenDetail(this.tmpData.RankingPrize[num3].ItemID))
                                    {
                                        gameObject2.transform.GetChild(0).GetComponent <UIButtonHint>().enabled = false;
                                    }
                                    else
                                    {
                                        gameObject2.transform.GetChild(0).GetComponent <UIButtonHint>().enabled = true;
                                    }
                                    gameObject2.transform.GetChild(0).GetComponent <UIHIBtn>().m_Handler = this;
                                }
                                RectTransform component2 = gameObject2.GetComponent <RectTransform>();
                                component2.localPosition      += new Vector3((float)(91 * (num5 % 5)), -62f * (float)(num5 / 5) + num2, 0f);
                                this.SItemCountText[k][l]      = gameObject2.transform.GetChild(1).GetComponent <UIText>();
                                this.SItemCountText[k][l].font = ttffont;
                                this.ItemCountText[k][l]       = this.SM.SpawnString(30);
                                this.ItemCountText[k][l].IntToFormat((long)this.tmpData.RankingPrize[num3].Num, 1, false);
                                if (this.GM.IsArabic)
                                {
                                    this.ItemCountText[k][l].AppendFormat("{0}x");
                                }
                                else
                                {
                                    this.ItemCountText[k][l].AppendFormat("x{0}");
                                }
                                this.SItemCountText[k][l].text = this.ItemCountText[k][l].ToString();
                                num5++;
                                num3++;
                            }
                        }
                    }
                    UnityEngine.Object.Destroy(child2.gameObject);
                    if (num5 > 5)
                    {
                        float num6 = 62f * (float)(num5 / 5 - 1);
                        if (num5 % 5 > 0)
                        {
                            num6 += 62f;
                        }
                        transform.GetComponent <RectTransform>().sizeDelta += new Vector2(0f, num6);
                        num += num6;
                    }
                }
                else
                {
                    if (num3 < this.tmpData.RankingPrize.Length && this.tmpData.RankingPrize[num3].ItemID == 0)
                    {
                        break;
                    }
                    num4++;
                    GameObject gameObject3 = UnityEngine.Object.Instantiate(this.ContentT.GetChild(0).gameObject) as GameObject;
                    gameObject3.SetActive(true);
                    gameObject3.transform.SetParent(this.ContentT, false);
                    Transform transform = gameObject3.transform;
                    transform.GetComponent <RectTransform>().anchoredPosition += new Vector2(0f, -num - 184f * (float)k);
                    this.SGemCountText[k]      = transform.GetChild(2).GetComponent <UIText>();
                    this.SGemCountText[k].font = ttffont;
                    this.GemCountText[k]       = this.SM.SpawnString(30);
                    if (this.tmpData.RankPrizeWorthData[k].Crystal == 0u)
                    {
                        transform.GetChild(1).gameObject.SetActive(false);
                        transform.GetChild(2).gameObject.SetActive(false);
                    }
                    else
                    {
                        this.GemCountText[k].IntToFormat((long)((ulong)this.tmpData.RankPrizeWorthData[k].Crystal), 1, true);
                        if (this.GM.IsArabic)
                        {
                            this.GemCountText[k].AppendFormat("{0}x");
                        }
                        else
                        {
                            this.GemCountText[k].AppendFormat("x{0}");
                        }
                        this.SGemCountText[k].text = this.GemCountText[k].ToString();
                    }
                    this.STitleText[k]      = transform.GetChild(3).GetComponent <UIText>();
                    this.STitleText[k].font = ttffont;
                    this.TitleText[k]       = this.SM.SpawnString(30);
                    byte b3 = 1;
                    byte b4 = 1;
                    if (this.ActivityIndex == 206)
                    {
                        if (k <= 2)
                        {
                            transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(k);
                        }
                        else
                        {
                            transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(3);
                        }
                        this.TitleText[k].IntToFormat((long)(k + 1), 1, false);
                        this.TitleText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8150u));
                    }
                    else
                    {
                        if (k == 3)
                        {
                            b3 = 4;
                            b4 = 10;
                        }
                        else if (k == 4)
                        {
                            b3 = 11;
                            b4 = 30;
                        }
                        else if (k == 5)
                        {
                            b3 = 31;
                            b4 = 50;
                        }
                        else if (k == 6)
                        {
                            b3 = 51;
                            b4 = 100;
                            this.TitleText[k].IntToFormat(51L, 1, false);
                            this.TitleText[k].IntToFormat(100L, 1, false);
                        }
                        if (k <= 2)
                        {
                            transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(k);
                            this.TitleText[k].IntToFormat((long)(k + 1), 1, false);
                            this.TitleText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8150u));
                        }
                        else
                        {
                            transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(3);
                            this.TitleText[k].IntToFormat((long)b3, 1, false);
                            this.TitleText[k].IntToFormat((long)b4, 1, false);
                            this.TitleText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8151u));
                        }
                    }
                    this.STitleText[k].text      = this.TitleText[k].ToString();
                    this.STotalpriceText[k]      = transform.GetChild(4).GetComponent <UIText>();
                    this.STotalpriceText[k].font = ttffont;
                    this.TotalpriceText[k]       = this.SM.SpawnString(30);
                    this.TotalpriceText[k].uLongToFormat((ulong)this.tmpData.RankPrizeWorthData[k].CrystalPrice, 1, true);
                    this.TotalpriceText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8122u));
                    this.STotalpriceText[k].text = this.TotalpriceText[k].ToString();
                    this.SNoPriceText[k]         = transform.GetChild(5).GetComponent <UIText>();
                    this.SNoPriceText[k].font    = ttffont;
                    this.NoPriceText[k]          = this.SM.SpawnString(30);
                    if (this.tmpData.RankPrizeWorthData[k].Priceless == 0)
                    {
                        transform.GetChild(5).gameObject.SetActive(false);
                    }
                    else
                    {
                        this.NoPriceText[k].uLongToFormat((ulong)this.tmpData.RankPrizeWorthData[k].Priceless, 1, false);
                        this.NoPriceText[k].AppendFormat(this.DM.mStringTable.GetStringByID(8123u));
                        this.SNoPriceText[k].text = this.NoPriceText[k].ToString();
                    }
                    int       num5   = 0;
                    Transform child2 = transform.GetChild(6);
                    this.GM.InitianHeroItemImg(child2.GetChild(0), eHeroOrItem.Item, 1001, 0, 0, 0, false, true, true, false);
                    child2.GetChild(2).gameObject.AddComponent <UIButtonHint>().m_eHint = EUIButtonHint.UILeBtn;
                    this.GM.InitLordEquipImg(child2.GetChild(2), 0, 0, eLordEquipDisplayKind.OnlyItem, false, true, 0, 0, 0, 0, 0, false);
                    for (int m = 0; m < this.ItemCount[k]; m++)
                    {
                        Equip recordByKey = this.DM.EquipTable.GetRecordByKey(this.tmpData.RankingPrize[num3].ItemID);
                        if (recordByKey.EquipKind == 11 && recordByKey.PropertiesInfo[0].Propertieskey == 6)
                        {
                            num3++;
                        }
                        else
                        {
                            GameObject gameObject4 = UnityEngine.Object.Instantiate(child2.gameObject) as GameObject;
                            gameObject4.SetActive(true);
                            gameObject4.transform.SetParent(transform, false);
                            bool flag2 = this.GM.IsLeadItem(recordByKey.EquipKind);
                            if (flag2)
                            {
                                gameObject4.transform.GetChild(0).gameObject.SetActive(false);
                                gameObject4.transform.GetChild(2).gameObject.SetActive(true);
                                this.GM.ChangeLordEquipImg(gameObject4.transform.GetChild(2), this.tmpData.RankingPrize[num3].ItemID, this.tmpData.RankingPrize[num3].Rank, eLordEquipDisplayKind.OnlyItem, 0, 0, 0, 0, 0, false);
                            }
                            else
                            {
                                this.GM.ChangeHeroItemImg(gameObject4.transform.GetChild(0), eHeroOrItem.Item, this.tmpData.RankingPrize[num3].ItemID, 0, this.tmpData.RankingPrize[num3].Rank, 0);
                                this.ItemHIBtn.Add(gameObject4.transform.GetChild(0).GetComponent <UIHIBtn>());
                            }
                            if (flag2)
                            {
                                gameObject4.transform.GetChild(2).GetComponent <UIButtonHint>().enabled = true;
                                gameObject4.transform.GetChild(2).GetComponent <UILEBtn>().m_Handler    = this;
                            }
                            else
                            {
                                if (instance.CheckCanOpenDetail(this.tmpData.RankingPrize[num3].ItemID))
                                {
                                    gameObject4.transform.GetChild(0).GetComponent <UIButtonHint>().enabled = false;
                                }
                                else
                                {
                                    gameObject4.transform.GetChild(0).GetComponent <UIButtonHint>().enabled = true;
                                }
                                gameObject4.transform.GetChild(0).GetComponent <UIHIBtn>().m_Handler = this;
                            }
                            RectTransform component3 = gameObject4.GetComponent <RectTransform>();
                            component3.localPosition      += new Vector3((float)(91 * (num5 % 5)), -62f * (float)(num5 / 5), 0f);
                            this.SItemCountText[k][m]      = gameObject4.transform.GetChild(1).GetComponent <UIText>();
                            this.SItemCountText[k][m].font = ttffont;
                            this.ItemCountText[k][m]       = this.SM.SpawnString(30);
                            this.ItemCountText[k][m].IntToFormat((long)this.tmpData.RankingPrize[num3].Num, 1, false);
                            if (this.GM.IsArabic)
                            {
                                this.ItemCountText[k][m].AppendFormat("{0}x");
                            }
                            else
                            {
                                this.ItemCountText[k][m].AppendFormat("x{0}");
                            }
                            this.SItemCountText[k][m].text = this.ItemCountText[k][m].ToString();
                            num5++;
                            num3++;
                        }
                    }
                    UnityEngine.Object.Destroy(child2.gameObject);
                    if (num5 > 5)
                    {
                        float num7 = 62f * (float)(num5 / 5 - 1);
                        if (num5 % 5 > 0)
                        {
                            num7 += 62f;
                        }
                        transform.GetComponent <RectTransform>().sizeDelta += new Vector2(0f, num7);
                        num += num7;
                    }
                }
            }
            if (this.ActivityIndex == 210)
            {
                this.ContentT.GetComponent <RectTransform>().sizeDelta = new Vector2(this.ContentT.GetComponent <RectTransform>().sizeDelta.x, num + 4f + (float)(3 * (num4 - 1)) + (float)num4 * (181f - num2));
            }
            else
            {
                this.ContentT.GetComponent <RectTransform>().sizeDelta = new Vector2(this.ContentT.GetComponent <RectTransform>().sizeDelta.x, num + 4f + (float)(3 * (num4 - 1)) + (float)num4 * 181f);
            }
            if (this.ActivityIndex == 210 && this.AM.AW_PrizeGroupID > 0)
            {
                UIButtonHint uibuttonHint = this.m_transform.GetChild(4).gameObject.AddComponent <UIButtonHint>();
                uibuttonHint.m_eHint   = EUIButtonHint.DownUpHandler;
                uibuttonHint.m_Handler = this;
                this.m_transform.GetChild(4).gameObject.SetActive(true);
            }
        }
        if (this.bPrize && this.ContentT != null)
        {
            if (this.AM.Act4arg2 == arg2)
            {
                this.ContentT.GetComponent <RectTransform>().anchoredPosition = this.AM.Act4Pos;
            }
            else
            {
                this.AM.Act4arg2 = arg2;
            }
        }
        this.GM.UpdateUI(EGUIWindow.Door, 1, 6);
    }