| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using System.Collections;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
| | | SetDisplay();
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | | {
|
| | | base.OnActived();
|
| | | StartCoroutine(UpdateLookItem());
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | |
|
| | |
| | | playerPack.RefreshItemCountAct -= UpdateJadeDynastyItem;
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | equipModel.ClearLookItemModel();
|
| | | StopAllCoroutines();
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | CreateItemLine();
|
| | | UpdatePlayerUI3DModel();
|
| | | UpdateFightPower();
|
| | | UpdateLookItem();
|
| | | TimeDownMgr.CoolTimeData data;
|
| | | if (TimeDownMgr.Instance.Get(TimeDownMgr.CoolTimeType.BagSort, out data))
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public void UpdateLookItem()
|
| | | public IEnumerator UpdateLookItem()
|
| | | {
|
| | | if (equipModel.jumpIndex < 0) return;
|
| | |
|
| | | int jumpIndex = equipModel.jumpIndex;
|
| | | jumpIndex = jumpIndex > 2 ? jumpIndex - 2 : jumpIndex;
|
| | | itemCtrl.JumpIndex(jumpIndex);
|
| | | itemCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | if (equipModel.jumpIndex > 0)
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS100;
|
| | | int jumpIndex = equipModel.jumpIndex;
|
| | | jumpIndex = jumpIndex > 2 ? jumpIndex - 2 : jumpIndex;
|
| | | itemCtrl.JumpIndex(jumpIndex);
|
| | | itemCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | | }
|
| | |
|
| | | private void CreateItemLine()
|