1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/gui/session/message_box/QuitConfirmation.js
T
2026-04-26 12:44:41 +02:00

35 lines
857 B
JavaScript

class QuitConfirmation extends SessionMessageBox
{
}
QuitConfirmation.prototype.Title =
translate("Confirmation");
QuitConfirmation.prototype.Caption =
translate("The game has finished, what do you want to do?");
QuitConfirmation.prototype.Buttons =
[
{
// Translation: Shown in the Dialog that shows up when the game finishes
"caption": translate("Stay"),
"onPress": resumeGame
},
{
// Translation: Shown in the Dialog that shows up when the game finishes
"caption": translate("Quit and View Summary"),
"onPress": () => endGame(true)
},
{
// Translation: Shown in the Dialog that shows up when the game finishes
"caption": translate("Quit"),
"onPress": () => endGame(false)
}
];
QuitConfirmation.prototype.Width = 600;
QuitConfirmation.prototype.Height = 200;
QuitConfirmation.prototype.ResumeOnClose = false;