| | |
| | | protected override void BindController() |
| | | {
|
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
|
| | | m_ScrollerController.lockType = EnhanceLockType.KeepVertical; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | {
|
| | | AuctionInquiry.Instance.SendQueryAttentionAuctionItem();//查询拍卖行的关注物品
|
| | | GetMyFocusList(); |
| | | ListSotr();
|
| | | OnCreateGridLineCell(m_ScrollerController); |
| | |
| | | } |
| | | 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>();
|