public void SetBtnCancelText(string btnText = null) { if (string.IsNullOrEmpty(btnText)) { btnText = "GENRAL_CANCEL"; } this.btnCancelText.text = LT.GetText(btnText); }
public void SetBtnCancelDesc(string desc = null) { btnCancelDesc.gameObject.SetActive(!string.IsNullOrEmpty(desc)); if (btnCancelDesc.gameObject.activeSelf) { this.btnCancelDesc.text = LT.GetText(desc); } }
public void SetBtnOKText(string btnText = null) { if (string.IsNullOrEmpty(btnText)) { btnText = "GENRAL_OK"; } this.btnOKText.text = LT.GetText(btnText); }
public void SetTitle(string title) { if (string.IsNullOrEmpty(title)) { this.title.text = ""; } else { this.title.text = LT.GetText(title); } }
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; } }
public void ShowNormal(string msg, params object[] args) { msg = LT.GetText(msg, args); ShowStandalone(msg, false); }
/// <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); }
public LoadingStatus(string text, float percent, int bgType = 1) { this.percent = percent; this.text = LT.GetText(text); this.bgType = bgType; }