public LoginRewardItemUI CreateDay(int day)
        {
            RectTransform     content = base.GetComponentInChildren <ScrollRect>().content;
            LoginRewardItemUI mui     = Instantiate <LoginRewardItemUI>(this.itemPrefab, content.transform);

            mui.Day = day;
            return(mui);
        }
 public void InitItems(Dictionary <int, List <LoginRewardItem> > allRewards, int currentDay)
 {
     this.currentDay = currentDay;
     foreach (int num in allRewards.Keys)
     {
         LoginRewardItemUI mui = this.CreateDay(num);
         foreach (LoginRewardItem item in allRewards[num])
         {
             Entity marketItemEntity = Flow.Current.EntityRegistry.GetEntity(item.MarketItemEntity);
             if (!marketItemEntity.HasComponent <PremiumQuestItemComponent>())
             {
                 mui.AddItem(marketItemEntity.GetComponent <ImageItemComponent>().SpriteUid, this.dialog.GetRewardItemNameWithAmount(marketItemEntity, item.Amount));
             }
         }
         mui.fillType = (num != currentDay) ? ((currentDay <= num) ? LoginRewardProgressBar.FillType.Empty : LoginRewardProgressBar.FillType.Full) : LoginRewardProgressBar.FillType.Half;
         mui.gameObject.SetActive(true);
     }
     this.CheckLines();
 }