| | |
| | | { |
| | | |
| | | [SerializeField] ScrollerController packScroller; |
| | | [SerializeField] ScrollerController composeScroller; |
| | | [SerializeField] ScrollerController composeScroller; //待策划确定 |
| | | [SerializeField] GroupButtonEx packBtn; |
| | | [SerializeField] GroupButtonEx composeBtn; |
| | | |
| | |
| | | } |
| | | |
| | | void RefreshItemEvent(PackType type, int index, int itemID) |
| | | { |
| | | { |
| | | if (type != PackType.Item) |
| | | { |
| | | return; |
| | |
| | | |
| | | public override void Refresh() |
| | | { |
| | | |
| | | if (functionOrder == 1) |
| | | { |
| | | RefreshComposeItemData(); |
| | | |
| | | } |
| | | packScroller.SetActive(functionOrder == 0); |
| | | composeScroller.SetActive(functionOrder != 0); |
| | | CreatePackScroller(); |
| | |
| | | { |
| | | return; |
| | | } |
| | | composeScroller.Refresh(); |
| | | for (int i = 0; i < PackManager.Instance.composeItemGuidList.Count; i++) |
| | | { |
| | | if (i % 5 == 0) |
| | | { |
| | | composeScroller.AddCell(ScrollerDataType.Header, i); |
| | | } |
| | | } |
| | | composeScroller.Restart(); |
| | | } |
| | | |
| | | void RefreshPackCell(ScrollerDataType type, CellView cell) |
| | |
| | | |
| | | void RefreshComposeCell(ScrollerDataType type, CellView cell) |
| | | { |
| | | var _cell = cell as ComposeLineCell; |
| | | _cell.Display(cell.index); |
| | | } |
| | | |
| | | void RefreshComposeItemData() |
| | | { |
| | | PackManager.Instance.composeItemGuidList.Clear(); |
| | | } |
| | | } |