From b4067b8d5e6353da7d52ff324b71827f9f28331f Mon Sep 17 00:00:00 2001 From: Achille Parmentier Date: Thu, 24 Jun 2021 12:05:40 +0200 Subject: [PATCH] New feature: hud-set-directive now handled --- FreeSpace2TranslationTools/Services/XstrManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreeSpace2TranslationTools/Services/XstrManager.cs b/FreeSpace2TranslationTools/Services/XstrManager.cs index 5aae288..d3d84a5 100644 --- a/FreeSpace2TranslationTools/Services/XstrManager.cs +++ b/FreeSpace2TranslationTools/Services/XstrManager.cs @@ -839,7 +839,7 @@ private string PrepareNewSexpForVariables(List VariableList) /// private string ConvertHardcodedHudTextToVariables(string content) { - MatchCollection textMatches = Regex.Matches(content, "(\\( hud-set-text.*?\".*?\".*?\")(.*?)(\".*?\\))", RegexOptions.Singleline); + MatchCollection textMatches = Regex.Matches(content, "(\\( (?:hud-set-text|hud-set-directive).*?\".*?\".*?\")(.*?)(\".*?\\))", RegexOptions.Singleline); List variableList = new(); List hudTextList = new();