Exemplo n.º 1
0
        public void RemoveLoadUICallBack(uint eResType, OnUIResourceLoaded onLoad)
        {
            ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType);

            if (null != resMgr)
            {
                resMgr.RemoveOnLoadCallBack(onLoad);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public void UnInit()
 {
     ZGUIResourceManager.UnInit();
     ZGUILayoutManager.UnInit();
 }
Exemplo n.º 5
0
 public ZGUIManager() : base(true)
 {
     ZGUIResourceManager.Init();
     ZGUILayoutManager.Init();
     Inst = this;
 }