Fix untranslated strings in skirmish objectives.

This commit is contained in:
Matthias Mailänder
2022-09-06 17:39:20 +02:00
committed by Gustas
parent 3453d13188
commit ca45e02265

View File

@@ -79,8 +79,11 @@ namespace OpenRA.Mods.Common.Widgets.Logic
checkbox.GetText = () => mo.Objectives[0].Description; checkbox.GetText = () => mo.Objectives[0].Description;
} }
statusLabel.GetText = () => player.WinState == WinState.Won ? Accomplished : var failed = modData.Translation.GetString(Failed);
player.WinState == WinState.Lost ? Failed : InProgress; var inProgress = modData.Translation.GetString(InProgress);
var accomplished = modData.Translation.GetString(Accomplished);
statusLabel.GetText = () => player.WinState == WinState.Won ? accomplished :
player.WinState == WinState.Lost ? failed : inProgress;
statusLabel.GetColor = () => player.WinState == WinState.Won ? Color.LimeGreen : statusLabel.GetColor = () => player.WinState == WinState.Won ? Color.LimeGreen :
player.WinState == WinState.Lost ? Color.Red : Color.White; player.WinState == WinState.Lost ? Color.Red : Color.White;
} }