(21a808335) Added: 4k fixes

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:58:32 +03:00
parent 257889b9cc
commit 0a67590572
61 changed files with 1758 additions and 2540 deletions
@@ -38,6 +38,8 @@ namespace Barotrauma
public GUIMessageBox(string headerText, string text, string[] buttons, int width = DefaultWidth, int height = 0, Alignment textAlignment = Alignment.TopLeft, string tag = "")
: base(new RectTransform(Vector2.One, GUI.Canvas, Anchor.Center), style: "")
{
if (width == DefaultWidth) width = (int)(width * GUI.Scale);
InnerFrame = new GUIFrame(new RectTransform(new Point(width, height), RectTransform, Anchor.Center) { IsFixedSize = false }, style: null);
GUI.Style.Apply(InnerFrame, "", this);