Make QuitConfirmationReplay extend QuitConfirmation

Comments By: @Freagarach
Fixes: #6894

Differential Revision: https://code.wildfiregames.com/D5224
This was SVN commit r27989.
This commit is contained in:
phosit 2023-12-23 09:36:36 +00:00
parent 05356bb9fc
commit c4e082bf9b

View file

@ -1,7 +1,7 @@
/**
* This class is concerned with opening a message box if the game is in replaymode and that replay ended.
*/
class QuitConfirmationReplay extends SessionMessageBox
class QuitConfirmationReplay extends QuitConfirmation
{
constructor()
{
@ -20,7 +20,8 @@ QuitConfirmationReplay.prototype.Buttons =
[
{
// Translation: Shown in the Dialog that shows up when a replay finishes
"caption": translate("Stay")
"caption": translate("Stay"),
"onPress": resumeGame
},
{
// Translation: Shown in the Dialog that shows up when a replay finishes
@ -33,6 +34,3 @@ QuitConfirmationReplay.prototype.Buttons =
"onPress": () => { endGame(false); }
}
];
QuitConfirmationReplay.prototype.Width = 600;
QuitConfirmationReplay.prototype.Height = 200;