Example #1
0
 public void SetBtnCancelText(string btnText = null)
 {
     if (string.IsNullOrEmpty(btnText))
     {
         btnText = "GENRAL_CANCEL";
     }
     this.btnCancelText.text = LT.GetText(btnText);
 }
Example #2
0
 public void SetBtnCancelDesc(string desc = null)
 {
     btnCancelDesc.gameObject.SetActive(!string.IsNullOrEmpty(desc));
     if (btnCancelDesc.gameObject.activeSelf)
     {
         this.btnCancelDesc.text = LT.GetText(desc);
     }
 }
Example #3
0
 public void SetBtnOKText(string btnText = null)
 {
     if (string.IsNullOrEmpty(btnText))
     {
         btnText = "GENRAL_OK";
     }
     this.btnOKText.text = LT.GetText(btnText);
 }
Example #4
0
 public void SetTitle(string title)
 {
     if (string.IsNullOrEmpty(title))
     {
         this.title.text = "";
     }
     else
     {
         this.title.text = LT.GetText(title);
     }
 }
Example #5
0
        public void SetMessage(string messageText = null, params object[] param)
        {
            if (string.IsNullOrEmpty(messageText))
            {
                strMessage = "";
            }
            else
            {
                strMessage = LT.GetText(messageText, param);
            }

            startTime = Time.time;
            lastTime  = startTime;
            if (HasStyle(MessageBoxStyle.Seconds))
            {
                this.message.text = strMessage + "(0s)";
            }
            else
            {
                this.message.text = strMessage;
            }
        }
Example #6
0
 public void ShowNormal(string msg, params object[] args)
 {
     msg = LT.GetText(msg, args);
     ShowStandalone(msg, false);
 }
Example #7
0
 /// <summary>
 /// default message type fail
 /// </summary>
 /// <param name="msg"></param>
 public void Show(string msg, params object[] args)
 {
     msg = LT.GetText(msg, args);
     ShowStandalone(msg, true);
 }
Example #8
0
 public LoadingStatus(string text, float percent, int bgType = 1)
 {
     this.percent = percent;
     this.text    = LT.GetText(text);
     this.bgType  = bgType;
 }