Change the incompatible replay dialogue text from "Cancel" to "OK"
This commit is contained in:
@@ -23,6 +23,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
[TranslationReference]
|
||||
static readonly string IncompatibleReplayPrompt = "incompatible-replay-prompt";
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string IncompatibleReplayAccept = "incompatible-replay-accept";
|
||||
|
||||
[TranslationReference]
|
||||
static readonly string UnknownVersion = "incompatible-replay-unknown-version";
|
||||
|
||||
@@ -46,12 +49,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
onCancel = DoNothing;
|
||||
|
||||
if (replayMeta == null)
|
||||
{
|
||||
ConfirmationDialogs.ButtonPrompt(modData, IncompatibleReplayTitle,
|
||||
IncompatibleReplayPrompt, onCancel: onCancel);
|
||||
|
||||
return false;
|
||||
}
|
||||
return IncompatibleReplayDialog(IncompatibleReplayPrompt, null, modData, onCancel);
|
||||
|
||||
var version = replayMeta.GameInfo.Version;
|
||||
if (version == null)
|
||||
@@ -75,7 +73,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
static bool IncompatibleReplayDialog(string text, Dictionary<string, object> textArguments, ModData modData, Action onCancel)
|
||||
{
|
||||
ConfirmationDialogs.ButtonPrompt(modData, IncompatibleReplayTitle, text, textArguments: textArguments, onCancel: onCancel);
|
||||
ConfirmationDialogs.ButtonPrompt(modData, IncompatibleReplayTitle, text, textArguments: textArguments, onCancel: onCancel, cancelText: IncompatibleReplayAccept);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -501,6 +501,7 @@ replay-deletion-failed = Failed to delete replay file '{ $file }'. See the debug
|
||||
## ReplayUtils
|
||||
incompatible-replay-title = Incompatible Replay
|
||||
incompatible-replay-prompt = Replay metadata could not be read.
|
||||
incompatible-replay-accept = OK
|
||||
-incompatible-replay-recorded = It was recorded with
|
||||
incompatible-replay-unknown-version = { -incompatible-replay-recorded } an unknown version.
|
||||
incompatible-replay-unknown-mod = { -incompatible-replay-recorded } an unknown mod.
|
||||
|
||||
Reference in New Issue
Block a user