/// <summary> /// show a message box with multiple buttons as options /// </summary> /// <param name="msg">Message.</param> /// <param name="msgOptions">Message options.</param> public void showMessageOptions(string msg, List <string> msgOptions, ReturnFromMsgBox r, string title = "Attention") { displayMsg = msg; this.msgOptions = msgOptions; returnFromMsgBox = r; displayTitle = title; currMsgType = msgType.msgBoxOptions; show = true; }
public void showTextMessageBox(string msg, ReturnFromMsgBox r, string defaultTxt = "enter text here", string title = "Attention") { displayMsg = msg; displayTitle = title; returnFromMsgBox = r; currMsgType = msgType.textInput; stringToReturn = defaultTxt; show = true; }
public void showMessage(string msg, ReturnFromMsgBox r = null, string title = "Attention") { displayMsg = msg; displayTitle = title; returnFromMsgBox = r; currMsgType = msgType.msgBox; show = true; Debug.Log("Message: " + msg); }
public void showTextMessageBox(string msg, ReturnFromMsgBox r, string defaultTxt="enter text here", string title="Attention") { displayMsg = msg; displayTitle = title; returnFromMsgBox = r; currMsgType = msgType.textInput; stringToReturn = defaultTxt; show = true; }
/// <summary> /// show a message box with multiple buttons as options /// </summary> /// <param name="msg">Message.</param> /// <param name="msgOptions">Message options.</param> public void showMessageOptions(string msg, List<string> msgOptions, ReturnFromMsgBox r, string title="Attention") { displayMsg = msg; this.msgOptions = msgOptions; returnFromMsgBox = r; displayTitle = title; currMsgType = msgType.msgBoxOptions; show = true; }
public void showMessage(string msg, ReturnFromMsgBox r=null, string title="Attention") { displayMsg = msg; displayTitle = title; returnFromMsgBox = r; currMsgType = msgType.msgBox; show = true; Debug.Log("Message: " + msg); }