public void RemoveLoadUICallBack(uint eResType, OnUIResourceLoaded onLoad) { ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType); if (null != resMgr) { resMgr.RemoveOnLoadCallBack(onLoad); } }
public bool LoadUIResource(uint eResType, uint nResId, OnUIResourceLoaded onLoad) { ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType); if (null != resMgr) { return(resMgr.LoadResource(nResId, onLoad)); } return(false); }
/// <summary> /// 加载UI资源 /// </summary> public bool LoadUIResource(uint eResType, string strResourceName, OnUIResourceLoaded onLoad) { ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType); if (null != resMgr) { return(resMgr.LoadResource(strResourceName, onLoad)); } return(false); }
public void UnInit() { ZGUIResourceManager.UnInit(); ZGUILayoutManager.UnInit(); }
public ZGUIManager() : base(true) { ZGUIResourceManager.Init(); ZGUILayoutManager.Init(); Inst = this; }