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:
@@ -32,7 +32,7 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GUIMessageBox(string headerText, string text)
|
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;
|
this.Buttons[0].OnClicked = Close;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user