Exemplo n.º 1
0
 // Token: 0x060131C3 RID: 78275 RVA: 0x004DFBD8 File Offset: 0x004DDDD8
 public void ShowBoxRewards(List <Goods> items, SignRewardItemUIController ctrl)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_ShowBoxRewardsList ` 1SignRewardItemUIController_hotfix != null)
     {
         this.m_ShowBoxRewardsList ` 1SignRewardItemUIController_hotfix.call(new object[]
         {
             this,
             items,
             ctrl
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_boxIconImage.sprite     = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsIconName(ctrl.GetGoodsType(), ctrl.GetGoodsId()));
     this.m_boxCountText.text       = ctrl.GetGoodsCount().ToString();
     this.m_boxNameText.text        = UIUtility.GetGoodsName(ctrl.GetGoodsType(), ctrl.GetGoodsId());
     this.m_boxHaveCountText.text   = UIUtility.GetGoodsCount(ctrl.GetGoodsType(), ctrl.GetGoodsId()).ToString();
     this.m_boxDescText.text        = UIUtility.GetGoodsDesc(ctrl.GetGoodsType(), ctrl.GetGoodsId());
     GameObjectUtility.DestroyChildren(this.m_boxRewardScrollViewObj);
     if (items != null)
     {
         foreach (Goods good in items)
         {
             GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_signBoxItemPrefab);
             PrefabControllerCreater.CreateAllControllers(gameObject);
             BoxItemInfoUIController component = gameObject.GetComponent <BoxItemInfoUIController>();
             component.SetBoxItemInfo(good, false);
             gameObject.transform.SetParent(this.m_boxRewardScrollViewObj.transform, false);
         }
     }
     UIUtility.SetUIStateOpen(this.m_showBoxRewardPanelUIStateController, "Show", null, false, true);
 }
Exemplo n.º 2
0
        // Token: 0x060131C0 RID: 78272 RVA: 0x004DFA1C File Offset: 0x004DDC1C
        public void PlaySignAnimation(Action onEnd)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_PlaySignAnimationAction_hotfix != null)
            {
                this.m_PlaySignAnimationAction_hotfix.call(new object[]
                {
                    this,
                    onEnd
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            SignRewardItemUIController signRewardItemUIController = this.m_signRewardItemCtrlList[this.m_playerContext.GetSignDaysMonth() - 1];

            signRewardItemUIController.PlaySignAnimation(onEnd);
        }
Exemplo n.º 3
0
 // Token: 0x060131C1 RID: 78273 RVA: 0x004DFAAC File Offset: 0x004DDCAC
 public void AutoSign()
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_AutoSign_hotfix != null)
     {
         this.m_AutoSign_hotfix.call(new object[]
         {
             this
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     if (!this.m_playerContext.TodayIsSigned())
     {
         this.EnableCloseButton(false);
         SignRewardItemUIController signRewardItemUIController = this.m_signRewardItemCtrlList[Math.Min(this.m_signRewardItemCtrlList.Count - 1, this.m_playerContext.GetSignDaysMonth())];
         signRewardItemUIController.TodayAutoSign();
     }
 }