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

            if (null != resMgr)
            {
                resMgr.RemoveOnLoadCallBack(onLoad);
            }
        }
Esempio 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);
        }
Esempio 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);
        }