| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | 
							- using FairyGUI;
 
- using UI.CreateRole;
 
- using System;
 
- using System.Text.RegularExpressions;
 
- using ET;
 
- using System.Collections.Generic;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class NewRoleGetSuitView : BaseWindow
 
-     {
 
-         private UI_NewRoleGetSuitUI _ui;
 
-         private int suitID;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_NewRoleGetSuitUI.PACKAGE_NAME;
 
-             _ui = UI_NewRoleGetSuitUI.Create();
 
-             this.viewCom = _ui.target;
 
-             this.viewCom.Center();
 
-             this.isfullScreen = true;
 
-             isReturnView = true;
 
-             _ui.m_suit1.onClick.Add(OnClickSuitOne);
 
-             _ui.m_suit2.onClick.Add(OnClickSuitTwo);
 
-             _ui.m_suit3.onClick.Add(OnClickSuitThree);
 
-             _ui.m_btnDress.onClick.Add(OnClickTryDress);
 
-         }
 
-         protected override void AddEventListener()
 
-         {
 
-             base.AddEventListener();
 
-             EventAgent.AddEventListener(ConstMessage.NEWROLEGETSUIT, OnHide);
 
-         }
 
-         protected override void RemoveEventListener()
 
-         {
 
-             base.RemoveEventListener();
 
-             EventAgent.RemoveEventListener(ConstMessage.NEWROLEGETSUIT, OnHide);
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             _ui.m_bg.url = ResPathUtil.GetBgImgPath("sxy_bj");
 
-         }
 
-         private void OnClickTryDress()
 
-         {
 
-             ViewManager.Show<TryDressUpView>();
 
-         }
 
-         private void OnClickSuitOne()
 
-         {
 
-             suitID = 201020;
 
-             OnClickTip();
 
-         }
 
-         private void OnClickSuitTwo()
 
-         {
 
-             suitID = 201010;
 
-             OnClickTip();
 
-         }
 
-         private void OnClickSuitThree()
 
-         {
 
-             suitID = 201030;
 
-             OnClickTip();
 
-         }
 
-         private void OnClickTip()
 
-         {
 
-             string exitTip = "是否确定选择该套装,确认选择后不可更改";
 
-             AlertUI.Show(exitTip)
 
-             .SetLeftButton(true, "取消", (object data) =>
 
-             {
 
-             })
 
-             .SetRightButton(true, "确定", async (object data) =>
 
-             {
 
-                 var result = await RoleInfoSProxy.ReqNewRoleGetSuit(suitID);
 
-                 this.Hide();
 
-             });
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-         }
 
-     }
 
- }
 
 
  |