Exemple #1
0
        public void RemoveLoadUICallBack(uint eResType, OnUIResourceLoaded onLoad)
        {
            ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType);

            if (null != resMgr)
            {
                resMgr.RemoveOnLoadCallBack(onLoad);
            }
        }
Exemple #2
0
        public bool LoadUIResource(uint eResType, uint nResId, OnUIResourceLoaded onLoad)
        {
            ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType);

            if (null != resMgr)
            {
                return(resMgr.LoadResource(nResId, onLoad));
            }
            return(false);
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
 public void UnInit()
 {
     ZGUIResourceManager.UnInit();
     ZGUILayoutManager.UnInit();
 }
Exemple #5
0
 public ZGUIManager() : base(true)
 {
     ZGUIResourceManager.Init();
     ZGUILayoutManager.Init();
     Inst = this;
 }