Exemplo n.º 1
0
 /// <summary>
 /// A message box that allows the user to enter input.
 /// </summary>
 public TextInputBox()
 {
     _textBox = new Textbox(DrawRectangle.X + DrawRectangle.Width / 2, DrawRectangle.Y + DrawRectangle.Height / 2, DrawRectangle.Width - BezelSize * 2);
     Button = new OkButton(DrawRectangle);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates an instance of the message box that can be used to show a message to the player.
 /// </summary>
 public MessageBox()
 {
     Button = new OkButton(DrawRectangle);
     _attentionSound = new SoundFx("Sounds/message_show");
 }