コード例 #1
0
ファイル: TextInputBox.cs プロジェクト: DuckKnightDuel/Adam
 /// <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);
 }
コード例 #2
0
ファイル: MessageBox.cs プロジェクト: DuckKnightDuel/Adam
 /// <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");
 }