The GUIMessageBox constructor with no width or height parameters automatically resizes the box according to the size of the text instead of using the default height.

Closes #131
This commit is contained in:
Joonas Rikkonen
2017-12-14 00:16:13 +02:00
parent 7e03235f8b
commit 986862b23e

View File

@@ -32,7 +32,7 @@ namespace Barotrauma
}
public GUIMessageBox(string headerText, string text)
: this(headerText, text, new string[] {"OK"})
: this(headerText, text, new string[] {"OK"}, DefaultWidth, 0)
{
this.Buttons[0].OnClicked = Close;
}