mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fixes a couple dialog buttons
This was SVN commit r15106.
This commit is contained in:
parent
2eb2845c29
commit
9b136a45fc
2 changed files with 5 additions and 5 deletions
|
|
@ -148,12 +148,12 @@ function exitMenuButton()
|
|||
pauseGame();
|
||||
if (g_IsNetworked && g_IsController)
|
||||
{
|
||||
var btCode = [leaveGame, resumeGame];
|
||||
var btCode = [resumeGame, leaveGame];
|
||||
var message = translate("Are you sure you want to quit? Leaving will disconnect all other players.");
|
||||
}
|
||||
else if (g_IsNetworked && !g_GameEnded && !g_IsObserver)
|
||||
{
|
||||
var btCode = [networkReturnQuestion, resumeGame];
|
||||
var btCode = [resumeGame, networkReturnQuestion];
|
||||
var message = translate("Are you sure you want to quit?");
|
||||
}
|
||||
else
|
||||
|
|
@ -167,7 +167,7 @@ function exitMenuButton()
|
|||
function networkReturnQuestion()
|
||||
{
|
||||
var btCaptions = [translate("I resign"), translate("I will return")];
|
||||
var btCode = [leaveGame, leaveGame];
|
||||
var btCode = [resignGame, leaveGame];
|
||||
var btArgs = [false, true];
|
||||
messageBox(400, 200, translate("Do you want to resign or will you return soon?"), translate("Confirmation"), 0, btCaptions, btCode, btArgs);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -478,8 +478,8 @@ function checkPlayerState()
|
|||
}
|
||||
else
|
||||
{
|
||||
var btCaptions = [translate("Yes"), translate("No")];
|
||||
var btCode = [leaveGame, null];
|
||||
var btCaptions = [translate("No"), translate("Yes")];
|
||||
var btCode = [null, leaveGame];
|
||||
var message = translate("Do you want to quit?");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue