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