Updated vanilla subs (preview images, additional info, some extra lights in darker parts), submarine preview window layout tweaking

This commit is contained in:
Joonas Rikkonen
2018-02-21 17:09:53 +02:00
parent 24cb7a3659
commit 59e1f776f2
8 changed files with 8 additions and 5 deletions

View File

@@ -148,11 +148,14 @@ namespace Barotrauma
TextManager.Get("RecommendedCrewExperience") + ": " + (string.IsNullOrEmpty(RecommendedCrewExperience) ? TextManager.Get("unknown") : RecommendedCrewExperience),
"", frame, GUI.SmallFont);
new GUITextBlock(new Rectangle(246, 120, 100, 20),
TextManager.Get("CompatibleContentPackages") + ": " + string.Join(", ", CompatibleContentPackages),
new GUITextBlock(new Rectangle(246, 120, 0, 20),
TextManager.Get("CompatibleContentPackages") + ":\n" + string.Join(", ", CompatibleContentPackages),
"", Alignment.TopLeft, Alignment.TopLeft, frame, true, GUI.SmallFont);
var descr = new GUITextBlock(new Rectangle(0, 200, 0, 100), Description, "", Alignment.TopLeft, Alignment.TopLeft, frame, true, GUI.SmallFont);
var descrBox = new GUIListBox(new Rectangle(0, 200, 0, 120), "", frame);
var descr = new GUITextBlock(new Rectangle(0, 0, descrBox.Rect.Width - 15, 0), Description + "\n", "", Alignment.TopLeft, Alignment.TopLeft, null, true, GUI.SmallFont);
descrBox.AddChild(descr);
descr.CanBeFocused = false;
}

View File

@@ -139,7 +139,7 @@ namespace Barotrauma
infoButton.UserData = sub;
infoButton.OnClicked += (component, userdata) =>
{
var msgBox = new GUIMessageBox("", "", 550, 350);
var msgBox = new GUIMessageBox("", "", 550, 400);
((Submarine)userdata).CreatePreviewWindow(msgBox.InnerFrame);
return true;
};

View File

@@ -793,7 +793,7 @@ namespace Barotrauma
infoButton.UserData = sub;
infoButton.OnClicked += (component, userdata) =>
{
var msgBox = new GUIMessageBox("", "", 550, 350);
var msgBox = new GUIMessageBox("", "", 550, 400);
((Submarine)userdata).CreatePreviewWindow(msgBox.InnerFrame);
return true;
};