| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 | 
							- using UI.RoleInfo;
 
- using System.Text.RegularExpressions;
 
- using FairyGUI;
 
- namespace GFGGame
 
- {
 
-     public class PersonalSkillView : BaseWindow
 
-     {
 
-         private UI_PersonalSkillUI _ui;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_PersonalSkillUI.PACKAGE_NAME;
 
-             _ui = UI_PersonalSkillUI.Create();
 
-             this.viewCom = _ui.target;
 
-             this.viewCom.Center();
 
-             this.modal = true;
 
-             _ui.m_list.itemRenderer = RenderListItem;
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             ViewManager.SetMaskAlpha(0.8f);
 
-             _ui.m_list.numItems = RoleSkillCfgArray.Instance.dataArray.Length;
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-             ViewManager.SetMaskAlpha(0.6f);
 
-         }
 
-         private void RenderListItem(int index, GObject obj)
 
-         {
 
-             RoleSkillCfg cfg = RoleSkillCfgArray.Instance.dataArray[index];
 
-             UI_ListSkillItem item = UI_ListSkillItem.Proxy(obj);
 
-             item.m_loaIcon.url = string.Format("ui://RoleInfo/{0}", cfg.res);
 
-             item.m_txtname.text = cfg.name;
 
-             item.m_txtDesc.text = cfg.desc;
 
-             UI_ListSkillItem.ProxyEnd();
 
-         }
 
-     }
 
- }
 
 
  |