Esempio n. 1
0
        /// <summary>
        /// 获取一个参数对象
        /// </summary>
        /// <param name="obj1"></param>
        /// <returns></returns>
        public static UIParameterArgs Create(object obj1)
        {
            UIParameterArgs result = new UIParameterArgs();

            result.m_Parameter.Add(obj1);
            return(result);
        }
Esempio n. 2
0
 private void Start()
 {
     StartCoroutine(LoadAppConfig(() =>
     {
         UIViewReference.Instance.UiAssetUpdateView.OpenPage(UIParameterArgs.Create());
     }));
 }
Esempio n. 3
0
        /// <summary>
        /// 合并两个参数
        /// </summary>
        /// <param name="agr0"></param>
        /// <param name="parameter"></param>
        /// <returns></returns>
        public UIParameterArgs MegerUIParameter(UIParameterArgs agr0, uint beginIndex0, uint count0, UIParameterArgs agr1, uint beginIndex1, uint count1)
        {
            #region  异常处理
            if (beginIndex0 >= agr0.ParemeterCount || (beginIndex0 + count0) > agr0.ParemeterCount)
            {
                throw new System.Exception(string.Format("参数越界  数据源个数={0} ,beginIndex0={1}  ,count0={2}", agr0.ParemeterCount, beginIndex0, count0));
            }
            if (beginIndex1 >= agr1.ParemeterCount || (beginIndex1 + count1) > agr1.ParemeterCount)
            {
                throw new System.Exception(string.Format("参数越界  数据源个数={0} ,beginIndex1={1},count1={2}", agr1.ParemeterCount, beginIndex1, count1));
            }

            #endregion


            List <object> parameter = new List <object>((int)(count0 + count1));
            for (int dex = (int)beginIndex0; dex < (int)beginIndex0 + count0; ++dex)
            {
                parameter.Add(agr0.Parameter[dex]);
            }
            for (int dex = (int)beginIndex1; dex < (int)beginIndex1 + count1; ++dex)
            {
                parameter.Add(agr1.Parameter[dex]);
            }

            return(UIParameterArgs.Create(parameter.ToArray()));
        }
Esempio n. 4
0
        /// <summary>
        /// 显示飘字提示
        /// </summary>
        /// <param name="content">需要显示的文本</param>
        /// <param name="antoDestroyTime">默认标识不销毁 ( 值不等于0标识显示后多少秒销毁)</param>
        public void ShowTipsViewSync(string content, float antoDestroyTime = 0)
        {
            UITextTipView tipsView = UIManager.Instance.ForceGetUISync <UITextTipView>(Define_ResPath.UITextTipViewPath, UIManagerHelper.Instance.TipsParentTrans);

            if (tipsView != null)
            {
                tipsView.OpenTip(UIParameterArgs.Create(content), antoDestroyTime);
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 合并两个参数
        /// </summary>
        /// <param name="agr0"></param>
        /// <param name="parameter"></param>
        /// <returns></returns>
        public UIParameterArgs MegerUIParameter(UIParameterArgs agr0, UIParameterArgs agr1)
        {
            List <object> parameter = new List <object>(agr0.ParemeterCount + agr1.ParemeterCount);

            parameter.AddRange(agr0.Parameter);
            parameter.AddRange(agr1.Parameter);

            return(UIParameterArgs.Create(parameter.ToArray()));
        }
Esempio n. 6
0
        /// <summary>
        /// 最好不要使用 (仅在参数合并时候使用)
        /// </summary>
        /// <param name="objs"></param>
        /// <returns></returns>
        public static UIParameterArgs Create(object[] objs)
        {
            UIParameterArgs result = new UIParameterArgs();

            if (objs == null || objs.Length == 0)
            {
                return(result);
            }
            result.m_Parameter.AddRange(objs);
            return(result);
        }
Esempio n. 7
0
        /// <summary>
        /// 获取一个参数对象
        /// </summary>
        /// <param name="obj1"></param>
        /// <param name="obj2"></param>
        /// <param name="obj3"></param>
        /// <param name="obj4"></param>
        /// <param name="obj5"></param>
        /// <returns></returns>
        public static UIParameterArgs Create(object obj1, object obj2, object obj3, object obj4, object obj5)
        {
            UIParameterArgs result = new UIParameterArgs();

            result.m_Parameter.Add(obj1);
            result.m_Parameter.Add(obj2);
            result.m_Parameter.Add(obj3);
            result.m_Parameter.Add(obj4);
            result.m_Parameter.Add(obj5);

            return(result);
        }
Esempio n. 8
0
        /// <summary>
        /// 获取一个参数对象
        /// </summary>
        /// <param name="obj1"></param>
        /// <returns></returns>
        public static UIParameterArgs Create()
        {
            UIParameterArgs result = new UIParameterArgs();

            return(result);
        }