2019-10-30 04:14:55 -07:00
|
|
|
class QuitConfirmation extends SessionMessageBox
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QuitConfirmation.prototype.Title =
|
|
|
|
|
translate("Confirmation");
|
|
|
|
|
|
|
|
|
|
QuitConfirmation.prototype.Caption =
|
2021-10-27 23:31:16 -07:00
|
|
|
translate("The game has finished, what do you want to do?");
|
2019-10-30 04:14:55 -07:00
|
|
|
|
|
|
|
|
QuitConfirmation.prototype.Buttons =
|
2025-12-30 00:57:37 -08:00
|
|
|
[
|
|
|
|
|
{
|
2021-10-27 23:31:16 -07:00
|
|
|
// Translation: Shown in the Dialog that shows up when the game finishes
|
2025-12-30 00:57:37 -08:00
|
|
|
"caption": translate("Stay"),
|
|
|
|
|
"onPress": resumeGame
|
|
|
|
|
},
|
|
|
|
|
{
|
2021-10-27 23:31:16 -07:00
|
|
|
// Translation: Shown in the Dialog that shows up when the game finishes
|
2025-12-30 00:57:37 -08:00
|
|
|
"caption": translate("Quit and View Summary"),
|
2026-06-11 12:06:33 -07:00
|
|
|
"onPress": function() { this.closeSession(true); }
|
2025-12-30 00:57:37 -08:00
|
|
|
},
|
|
|
|
|
{
|
2021-10-27 23:31:16 -07:00
|
|
|
// Translation: Shown in the Dialog that shows up when the game finishes
|
2025-12-30 00:57:37 -08:00
|
|
|
"caption": translate("Quit"),
|
2026-06-11 12:06:33 -07:00
|
|
|
"onPress": function() { this.closeSession(false); }
|
2025-12-30 00:57:37 -08:00
|
|
|
}
|
|
|
|
|
];
|
2021-10-27 23:31:16 -07:00
|
|
|
|
|
|
|
|
QuitConfirmation.prototype.Width = 600;
|
|
|
|
|
QuitConfirmation.prototype.Height = 200;
|
2023-10-12 12:20:56 -07:00
|
|
|
|
|
|
|
|
QuitConfirmation.prototype.ResumeOnClose = false;
|
2025-08-09 07:14:41 -07:00
|
|
|
|