| | |
| | | public static event Action<int> ChooseToModify;
|
| | | private List<GodBeastClass> GodBeastList = new List<GodBeastClass>(); |
| | | private int CurrentlySelected = 0; |
| | | private int JumpIndex = 0; |
| | | #region Built-in |
| | | protected override void BindController() |
| | | { |
| | |
| | | {
|
| | | CurrentlySelected = 0;
|
| | | GetGodBeast();//获取神兽强化装备信息
|
| | |
|
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell; |
| | | if (godBeastModel.ItemPlace != -1)
|
| | | {
|
| | | for (int i = 0; i < GodBeastList.Count; i++)
|
| | |
| | | {
|
| | | return x.ItemPlace == godBeastModel.ItemPlace;
|
| | | });
|
| | | m_ScrollerController.JumpIndex(Index);
|
| | | JumpIndex = Index;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | CurrentlySelected = GodBeastList[0].LocationMarker;
|
| | | GetDogZBagIndex();
|
| | | m_ScrollerController.JumpIndex(0);
|
| | | JumpIndex = 0; |
| | | }
|
| | | }
|
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell; |
| | | } |
| | | OnCreateGridLineCell(m_ScrollerController);
|
| | | m_GodBeastSlidingList.Init(); |
| | | m_GodBeastAttributes.Init(); |
| | | m_GodBeastAttributes.GetGodBeastLocationMarker(CurrentlySelected); |
| | | m_GodBeastAttributes.GetGodBeastLocationMarker(CurrentlySelected);
|
| | | m_ScrollerController.JumpIndex(JumpIndex);
|
| | |
|
| | |
|
| | |
|
| | | } |
| | | |
| | | protected override void OnAfterOpen() |
| | |
| | | |
| | | protected override void OnPreClose() |
| | | {
|
| | | JumpIndex = 0;
|
| | | godBeastModel.ItemPlace = -1;
|
| | | // godBeastModel.Absorption_Dic.Clear();
|
| | | playerPack.RefreshItemCountAct -= RefreshItemCountAct;
|