1
0
forked from 0ad/0ad

Flip the buttons in the leave game confirmation dialog to the no/yes order to match other dialogs.

Per the Apple Human Interface Guidelines the confirmation button should
be on the right. We do that for all(?) other dialogs, but not this one.

This was SVN commit r15977.
This commit is contained in:
alpha123 2014-11-16 22:21:57 +00:00
parent caed74df23
commit 947abde749

View File

@ -148,20 +148,20 @@ 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
{
var btCode = [leaveGame, resumeGame];
var btCode = [resumeGame, leaveGame];
var message = translate("Are you sure you want to quit?");
}
messageBox(400, 200, message, translate("Confirmation"), 0, [translate("Yes"), translate("No")], btCode);
messageBox(400, 200, message, translate("Confirmation"), 0, [translate("No"), translate("Yes")], btCode);
}
function networkReturnQuestion()