Skip to content

Commit

Permalink
New feature: hud-set-directive now handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Achille44 committed Jun 24, 2021
1 parent dcc4b3a commit b4067b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FreeSpace2TranslationTools/Services/XstrManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ private string PrepareNewSexpForVariables(List<MissionVariable> VariableList)
/// <returns></returns>
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<MissionVariable> variableList = new();
List<HudText> hudTextList = new();

Expand Down

0 comments on commit b4067b8

Please sign in to comment.