public MsgBox(string msg, MsgBoxTypes msgBoxType) : base(0, 0) { m_msg = "<big color=000000>" + msg; m_type = msgBoxType; IsModal = true; }
public static MsgBox MsgBox(string msg, MsgBoxTypes type) { // pop up an error message, modal. MsgBox msgbox = new MsgBox(msg, type); UltimaEngine.UserInterface.AddControl(msgbox, 0, 0); return msgbox; }
private MsgBoxGump(string msg, MsgBoxTypes msgBoxType) : base(0, 0) { _msg = "<big color=000000>" + msg; _type = msgBoxType; UserInterface.AddControl(this, 0, 0); MetaData.IsModal = true; }
/// <summary> /// Opens a modal message box with either 'OK' or 'OK and Cancel' buttons. /// </summary> /// <param name="msg"></param> /// <param name="type"></param> /// <returns>The created message box.</returns> public MsgBox MsgBox(string msg, MsgBoxTypes type) { // pop up an error message, modal. MsgBox msgbox = new MsgBox(msg, type); Engine.UserInterface.AddControl(msgbox, 0, 0); return(msgbox); }
private MsgBoxGump(string msg, MsgBoxTypes msgBoxType) : base(0, 0) { m_msg = "<big color=000000>" + msg; m_type = msgBoxType; UserInterface.AddControl(this, 0, 0); MetaData.IsModal = true; }
/// <summary> /// Opens a modal message box with either 'OK' or 'OK and Cancel' buttons. /// </summary> /// <param name="msg"></param> /// <param name="type"></param> public static MsgBoxGump Show(string msg, MsgBoxTypes type) { MsgBoxGump gump = new MsgBoxGump(msg, type); return(gump); }
public MsgBox(string msg, MsgBoxTypes msgBoxType) : base(0, 0) { _msg = "<big color=000000>" + msg; _type = msgBoxType; }
/// <summary> /// Opens a modal message box with either 'OK' or 'OK and Cancel' buttons. /// </summary> /// <param name="msg"></param> /// <param name="type"></param> public static MsgBoxGump Show(string msg, MsgBoxTypes type) { MsgBoxGump gump = new MsgBoxGump(msg, type); return gump; }