예제 #1
0
 // Update is called once per frame
 void Update()
 {
     if (_time > _tipShowTime && isTipVisible() == false)
     {
         setTipVisible(true);
     }
     _time += Time.deltaTime;
     if (_time > 15.0f)
     {
         AutoHideMsgBox.getInstance().show(RG_Utils.getLanguageString("XXX"));
         hide();
     }
 }
예제 #2
0
        /// <summary>
        /// 显示窗口结束的计时结算
        /// </summary>
        public void showTimeEnd()
        {
            float showTimeDuring = Time.realtimeSinceStartup - _showBeginTime;

            if (showTimeDuring > 1.0f && showTimeDuring < 10)
            {
                string str = windowName + RG_Utils.getLanguageString("CodeItem140");
#if ShowTimeMsgBox
                MsgBox.getInstance().show(str);
#endif
                TyLogger.LogError(str);
            }
        }
예제 #3
0
        void Update()
        {
            if (_time > _tipShowTime && isTipVisible() == false)
            {
                setTipVisible(true);
            }
            _time += Time.deltaTime;
            if (_time > 50000.0f)
            {
                if (AutoHideMsgBox.getInstance() != null)
                {
                    AutoHideMsgBox.getInstance().show(RG_Utils.getLanguageString("CodeItem143"));
                }
                hide();
            }

            _pointTime += Time.deltaTime;
            if (_pointTime > _nextPointTime)
            {
                _pointTime = 0;
                _curPointId++;
                if (_curPointId >= 12)
                {
                    _curPointId = 0;
                }
            }

            _textTime += Time.deltaTime;
            if (_textTime > _nextTextTime)
            {
                _textTime = 0;
                _tp2[_curTextId].ResetToBeginning();
                _tp2[_curTextId].PlayForward();
                _tp1[_curTextId].ResetToBeginning();
                _tp1[_curTextId].PlayForward();


                _curTextId++;
                if (_curTextId >= 6)
                {
                    _curTextId = 0;
                }
            }
        }
예제 #4
0
 /// <summary>
 /// 显示waiting界面
 /// </summary>
 /// <param name="info"></param>
 /// <param name="showTipTime"></param>
 /// <param name="showMsgVisible">判断是否显示‘玩命加载中’这几个字,true为显示</param>
 public void show(string info = "", float showTipTime = 0.5f, bool showMsgVisible = true)
 {
     count++;
     _text.text = info;
     if (info == "")
     {
         if (showMsgVisible)
         {
             _text.text = RG_Utils.getLanguageString("CodeItem145");
         }
         else
         {
             _text.text = "";
         }
     }
     //_text.enabled = info != "";
     //_back.enabled = info != "";
     //_thisGameObject.SetActive(true);
     _time        = 0;
     _tipShowTime = showTipTime;
     _thisGameObject.SetActive(true);
     setTipVisible(false);
 }
예제 #5
0
 public void show(string str)
 {
     gameObject.SetActive(true);
     _tip.text = str;
     gameObject.GetComponentInChildren <UISprite>().width = _tip.width + 24;
     TweenAlpha[] tpos = gameObject.GetComponentsInChildren <TweenAlpha>();
     for (int i = 0; i < tpos.Length; i++)
     {
         //tpos[i].Reset();
         tpos[i].ResetToBeginning();
         tpos[i].PlayForward();
     }
     try
     {
         if (str == null || str.Length < 3)
         {
             throw new System.Exception();
         }
     }
     catch (System.Exception e)
     {
         TyCrashReport.reportException(e, RG_Utils.getLanguageString("CodeItem142"));
     }
 }