public MsgBox(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     m_msg   = "<big color=000000>" + msg;
     m_type  = msgBoxType;
     IsModal = true;
 }
Beispiel #2
0
 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;
 }
Beispiel #4
0
 private MsgBoxGump(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     _msg  = "<big color=000000>" + msg;
     _type = msgBoxType;
     UserInterface.AddControl(this, 0, 0);
     MetaData.IsModal = true;
 }
Beispiel #5
0
        /// <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);
        }
Beispiel #6
0
 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;
 }
Beispiel #7
0
        /// <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);
        }
Beispiel #8
0
 public MsgBox(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     _msg = "<big color=000000>" + msg;
     _type = msgBoxType;
 }
Beispiel #9
0
 /// <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;
 }