// Token: 0x06009128 RID: 37160 RVA: 0x002A15BC File Offset: 0x0029F7BC private void LateUpdate() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_LateUpdate_hotfix != null) { this.m_LateUpdate_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_bigItemScrollSnapCenter == null || this.m_bigItemPool == null || this.m_bigItemPool.GetList() == null || this.m_bigItemPool.GetList().Count <= 0) { return; } int centerItemIndex = this.m_bigItemScrollSnapCenter.GetCenterItemIndex(); if (centerItemIndex < 0 || centerItemIndex >= this.m_bigItemPool.GetList().Count) { return; } ActivityNoticeBigItemUIController activityNoticeBigItemUIController = this.m_bigItemPool.GetList()[centerItemIndex]; if (activityNoticeBigItemUIController != null && this.m_curBigItemIndex != activityNoticeBigItemUIController.GetIndex()) { this.m_curBigItemIndex = activityNoticeBigItemUIController.GetIndex(); this.RefreshLampActive(); } }
// Token: 0x060090D4 RID: 37076 RVA: 0x002A0788 File Offset: 0x0029E988 public LuaExportHelper(ActivityNoticeBigItemUIController owner) { this.m_owner = owner; }
// 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(); }