コード例 #1
0
 public MsgBox(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     m_msg   = "<big color=000000>" + msg;
     m_type  = msgBoxType;
     IsModal = true;
 }
コード例 #2
0
ファイル: MsgBox.cs プロジェクト: FreeReign/UltimaXNA
 public MsgBox(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     m_msg = "<big color=000000>" + msg;
     m_type = msgBoxType;
     IsModal = true;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: MsgBoxGump.cs プロジェクト: BclEx/object-assets
 private MsgBoxGump(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     _msg  = "<big color=000000>" + msg;
     _type = msgBoxType;
     UserInterface.AddControl(this, 0, 0);
     MetaData.IsModal = true;
 }
コード例 #5
0
ファイル: GUIManager.cs プロジェクト: ViWinfii/UltimaXNA
        /// <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);
        }
コード例 #6
0
ファイル: MsgBoxGump.cs プロジェクト: msx752/UltimaXNA
 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;
 }
コード例 #7
0
ファイル: MsgBoxGump.cs プロジェクト: BclEx/object-assets
        /// <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);
        }
コード例 #8
0
ファイル: MsgBox.cs プロジェクト: Crwth/UltimaXNA
 public MsgBox(string msg, MsgBoxTypes msgBoxType)
     : base(0, 0)
 {
     _msg = "<big color=000000>" + msg;
     _type = msgBoxType;
 }
コード例 #9
0
ファイル: MsgBoxGump.cs プロジェクト: msx752/UltimaXNA
 /// <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;
 }