コード例 #1
0
ファイル: ZGUIManager.cs プロジェクト: tsinglee2009/ZGUI
        public void RemoveLoadUICallBack(uint eResType, OnUIResourceLoaded onLoad)
        {
            ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType);

            if (null != resMgr)
            {
                resMgr.RemoveOnLoadCallBack(onLoad);
            }
        }
コード例 #2
0
ファイル: ZGUIManager.cs プロジェクト: tsinglee2009/ZGUI
        public bool LoadUIResource(uint eResType, uint nResId, OnUIResourceLoaded onLoad)
        {
            ZGUIResourceManager resMgr = ZGUIResourceManager.GetResMgr(eResType);

            if (null != resMgr)
            {
                return(resMgr.LoadResource(nResId, onLoad));
            }
            return(false);
        }
コード例 #3
0
ファイル: ZGUIManager.cs プロジェクト: tsinglee2009/ZGUI
        /// <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);
        }