mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
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:
parent
05356bb9fc
commit
c4e082bf9b
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue