(eff616485) Don't show mission info in the round summary if there's no localized "mission failed" text available and there's nothing else to show. TODO: add the text to localization so this isn't needed

This commit is contained in:
Joonas Rikkonen
2019-05-16 07:03:32 +03:00
parent d03e1995bc
commit 5ff09db449
11 changed files with 195 additions and 35 deletions
@@ -60,7 +60,9 @@ namespace Barotrauma
endMessage, wrap: true);
}
if (GameMain.GameSession.Mission != null)
//don't show the mission info if the mission was not completed and there's no localized "mission failed" text available
if (GameMain.GameSession.Mission != null &&
(GameMain.GameSession.Mission.Completed || !string.IsNullOrEmpty(GameMain.GameSession.Mission.FailureMessage)))
{
//spacing
new GUIFrame(new RectTransform(new Vector2(1.0f, 0.1f), infoTextBox.Content.RectTransform), style: null);