(b1241e3dd) GUIMessageBoxes use relative sizes

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:46:12 +03:00
parent b7392b362e
commit ce1aa39a4b
50 changed files with 1534 additions and 1667 deletions
@@ -602,7 +602,7 @@ namespace Barotrauma
public GUIMessageBox Create()
{
var box = new GUIMessageBox(TextManager.Get("LevelEditorCreateLevelObj"), string.Empty,
new string[] { TextManager.Get("Cancel"), TextManager.Get("Done") }, GameMain.GraphicsWidth / 2, (int)(GameMain.GraphicsHeight * 0.8f));
new string[] { TextManager.Get("Cancel"), TextManager.Get("Done") }, new Vector2(0.5f, 0.8f));
box.Content.ChildAnchor = Anchor.TopCenter;
box.Content.AbsoluteSpacing = 20;