(e07f39206) Fixes to text wrapping: - No spaces between symbols in wrapped chinese texts. - Automatically determine if the symbols/words are chinese/japanese/korean instead of just determining how to do the wrapping based on the selected display language (because there may still be western words/names in the texts when using Chinese, or vice versa when for example viewing Workshop items with a Chinese description). - Fixed wrapping when texts mix western and Chinese symbols.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user