From 986862b23ee1cdf54fcb70c8aad398d975848016 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Thu, 14 Dec 2017 00:16:13 +0200 Subject: [PATCH] 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 --- Barotrauma/BarotraumaClient/Source/GUI/GUIMessageBox.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/GUI/GUIMessageBox.cs b/Barotrauma/BarotraumaClient/Source/GUI/GUIMessageBox.cs index 77e91591c..0c2477986 100644 --- a/Barotrauma/BarotraumaClient/Source/GUI/GUIMessageBox.cs +++ b/Barotrauma/BarotraumaClient/Source/GUI/GUIMessageBox.cs @@ -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; }