| | |
| | | #region Built-in |
| | | protected override void BindController() |
| | | {
|
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
|
| | | m_ScrollerController.lockType = EnhanceLockType.KeepVertical; |
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | {
|
| | | AuctionInquiry.Instance.SendQueryAttentionAuctionItem();//查询拍卖行的关注物品
|
| | | GetMyFocusList(); |
| | | ListSotr();
|
| | | OnCreateGridLineCell(m_ScrollerController); |
| | |
| | | { |
| | | model.AttentionAuctionItemUdate += Reset; |
| | | model.ClearAuctionUpdate += Reset;
|
| | | model.RefreshAuctionItemUpdate -=Update;//刷新 |
| | | model.RefreshAuctionItemUpdate -= Update;//刷新 |
| | | model.FamilyAuctionItemUpdate += Reset; |
| | | }
|
| | |
|
| | | |
| | |
|
| | |
|
| | | protected override void OnPreClose() |
| | | {
|
| | | model.AttentionAuctionItemUdate -= Reset;
|
| | | model.ClearAuctionUpdate -= Reset;
|
| | | model.RefreshAuctionItemUpdate -=Update;//刷新
|
| | | model.RefreshAuctionItemUpdate -= Update;//刷新
|
| | | model.FamilyAuctionItemUpdate -= Reset; |
| | | }
|
| | |
|
| | | |
| | |
|
| | | protected override void OnAfterClose() |
| | | { |
| | | }
|
| | |
| | | } |
| | | private void OnCreateGridLineCell(ScrollerController gridCtrl)
|
| | | {
|
| | |
|
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i < MyFocusList.Count; i++)
|
| | | {
|
| | |
| | | }
|
| | | private void OnRefreshGridCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | |
|
| | | int index = cell.index;
|
| | | var ItemGUID = MyFocusList[index].ItemGUID;
|
| | | MyFocusCell myAuctionCell = cell.GetComponent<MyFocusCell>();
|