// Token: 0x06009126 RID: 37158 RVA: 0x002A1234 File Offset: 0x0029F434 public void UpdateActivityList(List <ActivityNoticeInfo> activityList) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateActivityListList ` 1_hotfix != null) { this.m_UpdateActivityListList ` 1_hotfix.call(new object[] { this, activityList }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (activityList == null) { return; } this.m_bigItemPool.Deactive(); this.m_smallItemPool.Deactive(); this.m_lampItemPool.Deactive(); this.m_bigItemScrollSnapCenter.SetItemCount(0); if (this.m_lampUIStateCtrlList == null) { this.m_lampUIStateCtrlList = new List <CommonUIStateController>(); } else { this.m_lampUIStateCtrlList.Clear(); } foreach (ActivityNoticeInfo activityNoticeInfo in activityList) { if (activityNoticeInfo.IsLarge) { int count = this.m_bigItemPool.GetList().Count; bool flag; ActivityNoticeBigItemUIController activityNoticeBigItemUIController = this.m_bigItemPool.Allocate(out flag); if (activityNoticeBigItemUIController != null) { if (flag) { activityNoticeBigItemUIController.EventOnButtonClick += this.OnActivityItemClick; } activityNoticeBigItemUIController.UpdateItemInfo(activityNoticeInfo.ActivityId, activityNoticeInfo.ImageName, count); this.m_bigItemScrollSnapCenter.SetItemCount(this.m_bigItemPool.GetList().Count); RectTransform rectTransform = activityNoticeBigItemUIController.transform as RectTransform; rectTransform.anchoredPosition = this.m_bigItemScrollSnapCenter.ComputeItemPosition(count); } } else { bool flag2; ActivityNoticeSmallItemUIController activityNoticeSmallItemUIController = this.m_smallItemPool.Allocate(out flag2); if (activityNoticeSmallItemUIController != null) { if (flag2) { activityNoticeSmallItemUIController.EventOnButtonClick += this.OnActivityItemClick; } activityNoticeSmallItemUIController.UpdateItemInfo(activityNoticeInfo.ActivityId, activityNoticeInfo.ImageName, activityNoticeInfo.Desc); } } } if (this.m_bigItemPool.GetList() != null) { foreach (ActivityNoticeBigItemUIController activityNoticeBigItemUIController2 in this.m_bigItemPool.GetList()) { GameObject gameObject = this.m_lampItemPool.Allocate(); this.m_lampUIStateCtrlList.Add(gameObject.GetComponent <CommonUIStateController>()); } } this.RefreshLampActive(); }
// Token: 0x06009109 RID: 37129 RVA: 0x002A0ECC File Offset: 0x0029F0CC public LuaExportHelper(ActivityNoticeSmallItemUIController owner) { this.m_owner = owner; }