Differential D2398 Diff 10225 ps/trunk/binaries/data/mods/public/gui/session/message_box/QuitConfirmationReplay.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/message_box/QuitConfirmationReplay.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
/** | |||||
* This class is concerned with opening a message box if the game is in replaymode and that replay ended. | |||||
*/ | |||||
class QuitConfirmationReplay extends SessionMessageBox | |||||
{ | |||||
constructor() | |||||
{ | |||||
super(); | |||||
Engine.GetGUIObjectByName("session").onReplayFinished = this.display.bind(this); | |||||
} | |||||
} | |||||
QuitConfirmationReplay.prototype.Title = | |||||
translateWithContext("replayFinished", "Confirmation"); | |||||
QuitConfirmationReplay.prototype.Caption = | |||||
translateWithContext("replayFinished", "The replay has finished. Do you want to quit?"); | |||||
QuitConfirmationReplay.prototype.Buttons = | |||||
[ | |||||
{ | |||||
"caption": translateWithContext("replayFinished", "No") | |||||
}, | |||||
{ | |||||
"caption": translateWithContext("replayFinished", "Yes"), | |||||
"onPress": endGame | |||||
} | |||||
]; |
Wildfire Games · Phabricator