(8015dd67d) Show a language selection prompt when launching the game for the first time (WIP)

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:41:09 +03:00
parent 3c11bc2fca
commit 79d01822d2
84 changed files with 1843 additions and 1773 deletions
@@ -11,9 +11,7 @@ namespace Barotrauma
public readonly string Language;
private Dictionary<string, List<string>> texts;
public readonly bool NoWhiteSpace;
private readonly string filePath;
public TextPack(string filePath)
@@ -25,7 +23,6 @@ namespace Barotrauma
if (doc == null || doc.Root == null) return;
Language = doc.Root.GetAttributeString("language", "Unknown");
NoWhiteSpace = doc.Root.GetAttributeBool("nowhitespace", false);
foreach (XElement subElement in doc.Root.Elements())
{