| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | 
							- using FairyGUI;
 
- using System.Collections;
 
- using System.Collections.Generic;
 
- using UI.Card;
 
- using UI.CommonGame;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class CardUpView : BaseWindow
 
-     {
 
-         private UI_CardUpUI _ui;
 
-         private Dictionary<int, int> _scores;
 
-         private string _type;
 
-         private int _lastNum;
 
-         private int _curNum;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             _ui = UI_CardUpUI.Create();
 
-             this.viewCom = _ui.target;
 
-             this.viewCom.Center();
 
-             this.modal = true;
 
-             //MakeFullScreen(_ui);
 
-             _ui.m_listProperty.itemRenderer = RenderListPropertyItem;
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             _scores = (Dictionary<int, int>)(viewData as object[])[0];
 
-             _type = (string)(viewData as object[])[1];
 
-             _lastNum = (int)(viewData as object[])[2];
 
-             _curNum = (int)(viewData as object[])[3];
 
-             _ui.m_listProperty.numItems = _scores.Count;
 
-             if (_type == "lv")
 
-             {
 
-                 _ui.m_c1.selectedIndex = 0;
 
-                 _ui.m_txtLast.text = string.Format("{0}级", _lastNum);
 
-                 _ui.m_txtNow.text = string.Format("{0}级", _curNum);
 
-             }
 
-             else
 
-             {
 
-                 _ui.m_c1.selectedIndex = 1;
 
-                 _ui.m_txtLast.text = string.Format("{0}星", _lastNum);
 
-                 _ui.m_txtNow.text = string.Format("{0}星", _curNum);
 
-             }
 
-             Timers.inst.AddUpdate(CheckGuide);
 
-         }
 
-         private void RenderListPropertyItem(int index, GObject obj)
 
-         {
 
-             UI_ListScoreItem listItem = UI_ListScoreItem.Proxy(obj);
 
-             listItem.m_txtProperty.text = _scores[index + 1].ToString();
 
-             listItem.m_loaIcon.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (index + 1));
 
-             UI_ListScoreItem.ProxyEnd();
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-             Timers.inst.Remove(CheckGuide);
 
-         }
 
-         private void CheckGuide(object param)
 
-         {
 
-             if (GuideDataManager.IsGuideFinish(ConstGuideId.UP_CARD_LV) <= 0)
 
-             // || GuideDataManager.IsGuideFinish(ConstGuideId.UP_CARD_STAR) <= 0)
 
-             {
 
-                 UpdateToCheckGuide(null);
 
-             }
 
-             else
 
-             {
 
-                 Timers.inst.Remove(CheckGuide);
 
-             }
 
-         }
 
-         protected override void UpdateToCheckGuide(object param)
 
-         {
 
-             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
 
-             GuideController.TryGuide(null, ConstGuideId.UP_CARD_LV, 6, "升级成功啦", -1, true, 1500);
 
-         }
 
-     }
 
- }
 
 
  |