The convention is confirm button on right, decline button on left (updates some in-game dialogs). Also enables GLSL.

This was SVN commit r15074.
This commit is contained in:
JoshuaJB 2014-04-30 06:28:57 +00:00
parent 90581f366c
commit 911be4e860

View File

@ -136,8 +136,8 @@ function resignMenuButton()
closeMenu();
closeOpenDialogs();
pauseGame();
var btCaptions = [translate("Yes"), translate("No")];
var btCode = [resignGame, resumeGame];
var btCaptions = [translate("No"), translate("Yes")];
var btCode = [resumeGame, resignGame];
messageBox(400, 200, translate("Are you sure you want to resign?"), translate("Confirmation"), 0, btCaptions, btCode);
}
@ -158,10 +158,10 @@ function exitMenuButton()
}
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()
@ -182,8 +182,8 @@ function openDeleteDialog(selection)
Engine.PostNetworkCommand({"type": "delete-entities", "entities": selectionArg});
};
var btCaptions = [translate("Yes"), translate("No")];
var btCode = [deleteSelectedEntities, resumeGame];
var btCaptions = [translate("No"), translate("Yes")];
var btCode = [resumeGame, deleteSelectedEntities];
messageBox(400, 200, translate("Destroy everything currently selected?"), translate("Delete"), 0, btCaptions, btCode, [selection, null]);
}