| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 | 
							- using ET;
 
- using FairyGUI;
 
- using UI.CommonGame;
 
- using UI.RoleInfo;
 
- namespace GFGGame
 
- {
 
-     public class OtherRoleInfoView : BaseWindow
 
-     {
 
-         private UI_OtherRoleInfoUI _ui;
 
-         private OtherRoleInfoData _roleInfo;
 
-         private OtherRoleInfoDetailData _roleDetailInfo;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-             }
 
-             _ui = null;
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_OtherRoleInfoUI.PACKAGE_NAME;
 
-             _ui = UI_OtherRoleInfoUI.Create();
 
-             this.viewCom = _ui.target;
 
-             isfullScreen = true;
 
-             _ui.m_btnBack.onClick.Add(OnBtnBackClick);
 
-             _ui.m_list.itemRenderer = RenderListItem;
 
-             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("xc_bjbj");
 
-         }
 
-         protected override void AddEventListener()
 
-         {
 
-             base.AddEventListener();
 
-             EventAgent.AddEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateView);
 
-         }
 
-         protected override async void OnShown()
 
-         {
 
-             base.OnShown();
 
-             _roleInfo = (this.viewData as object[])[0] as OtherRoleInfoData;
 
-             _roleDetailInfo = (this.viewData as object[])[1] as OtherRoleInfoDetailData;
 
-             _ui.m_txtRoleName.text = _roleInfo.roleName;
 
-             _ui.m_txtLvl.text = _roleInfo.roleLv.ToString();
 
-             RoleInfoManager.Instance.UpdateHead(_ui.m_comHead, RoleDataManager.headId, RoleDataManager.headBorderId);
 
-             _roleDetailInfo = await RoleInfoSProxy.ReqOtherRoleDetailInfo(_roleInfo.roleId);
 
-             if (_roleDetailInfo != null)
 
-             {
 
-                 Timers.inst.StartCoroutine(PictureStorageHelper.Download(_roleDetailInfo.showPhotoList));
 
-             }
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-         }
 
-         private void OnBtnBackClick()
 
-         {
 
-             ViewManager.GoBackFrom(typeof(OtherRoleInfoData).FullName);
 
-         }
 
-         protected override void RemoveEventListener()
 
-         {
 
-             base.RemoveEventListener();
 
-             EventAgent.RemoveEventListener(ConstMessage.DOWNLOAD_FINISH, UpdateView);
 
-         }
 
-         private void UpdateView()
 
-         {
 
-             // RoleLevelCfg roleLevelCfg = RoleLevelCfgArray.Instance.GetCfg(_roleInfo.roleLv);
 
-             // if (roleLevelCfg.exp > 0)
 
-             // {
 
-             //     _ui.m_txtExp.text = string.Format("{0}/{1}", _roleDetailInfo.RoleExp, roleLevelCfg.exp);
 
-             // }
 
-             // else
 
-             // {
 
-             //     _ui.m_txtExp.text = "已满级";
 
-             // }
 
-             _ui.m_txtSlogan.text = _roleDetailInfo.slogan;
 
-             _ui.m_btnFieldGuide.title = string.Format("套装收集度:{0}", _roleDetailInfo.SuitCollectPer);
 
-             _ui.m_list.numItems = _roleDetailInfo.showPhotoList.Count;
 
-         }
 
-         private void RenderListItem(int index, GObject obj)
 
-         {
 
-             PoemPhotoData poemPhotoData = _roleDetailInfo.showPhotoList[index];
 
-             UI_ListPhotoItem item = UI_ListPhotoItem.Proxy(obj);
 
-             item.m_comPhoto.m_loaPhoto.texture = poemPhotoData == null ? null : poemPhotoData.Ntexture;
 
-             item.target.data = index;
 
-             UI_ListPhotoItem.ProxyEnd();
 
-         }
 
-     }
 
- }
 
 
  |