Beispiel #1
0
        public void ShowView(Action callBack, BaseViewParam baseViewParam = null)
        {
            if (mIsLoadComplete == false)
            {
                if (baseViewParam != null)
                {
                    mViewParam = baseViewParam;
                }

                if (callBack != null)
                {
                    mLoadCompleteHandler += callBack;
                }
            }

            ShowView();
        }
Beispiel #2
0
        //加载资源
        private void LoadView()
        {
            //如果没有外部传入的界面参数或者提前构造了导致ParentLayer为null,则需要初始化界面参数
            if (mViewParam == null || mViewParam.ParentLayer == null)
            {
                mViewParam = InitViewParam();
            }

            if (string.IsNullOrEmpty(url))
            {
                Debug.LogError("BaseView url error");
                return;
            }

            OnBeforeLoadView();

            //if (Application.isEditor == false)
            mViewParam.showUILoading = false;

            ShowUILoading(true);

            mIsDestory = false;
            sUIManager.LoadView(url, viewName, OnLoadCallBack);
        }
Beispiel #3
0
        public BaseView()
        {
            mIsShow = false;

            mViewParam = InitViewParam();
        }