Exemple #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);
 }
Exemple #2
0
 // Token: 0x06013298 RID: 78488 RVA: 0x004E2208 File Offset: 0x004E0408
 public LuaExportHelper(BoxItemInfoUIController owner)
 {
     this.m_owner = owner;
 }