Differential D3958 Diff 17579 binaries/data/mods/public/gui/session/message_box/QuitConfirmationMenu.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/message_box/QuitConfirmationMenu.js
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
QuitConfirmationMenu.prototype.MultiplayerClient.prototype.Buttons = | QuitConfirmationMenu.prototype.MultiplayerClient.prototype.Buttons = | ||||
[ | [ | ||||
{ | { | ||||
"caption": translate("No") | "caption": translate("No") | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Yes"), | "caption": translate("Yes"), | ||||
"onPress": () => { | "onPress": () => { | ||||
(new ReturnQuestion()).display(); | (new ReturnQuestion()).display(); | ||||
Lint: no-use-before-define: 'ReturnQuestion' was used before it was defined. | |||||
} | } | ||||
} | } | ||||
]; | ]; | ||||
class ReturnQuestion extends SessionMessageBox | class ReturnQuestion extends SessionMessageBox | ||||
{ | { | ||||
} | } | ||||
ReturnQuestion.prototype.Title = translate("Confirmation"); | ReturnQuestion.prototype.Title = translate("Confirmation"); | ||||
ReturnQuestion.prototype.Caption = translate("Do you want to resign or will you return soon?"); | ReturnQuestion.prototype.Caption = translate("Do you want to resign or will you return soon?"); | ||||
ReturnQuestion.prototype.Buttons = [ | ReturnQuestion.prototype.Buttons = [ | ||||
{ | { | ||||
"caption": translate("I will return"), | "caption": translate("I will return"), | ||||
"onPress": endGame | "onPress": () => {endGame(true)} | ||||
Lint: semi Missing semicolon. Lint: semi: Missing semicolon. | |||||
Done Inline ActionsI guess we want false here. Freagarach: I guess we want `false` here. | |||||
}, | }, | ||||
{ | { | ||||
"caption": translate("I resign"), | "caption": translate("I resign"), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.PostNetworkCommand({ | Engine.PostNetworkCommand({ | ||||
"type": "resign" | "type": "resign" | ||||
}); | }); | ||||
} | } | ||||
} | } | ||||
]; | ]; |
Wildfire Games · Phabricator
'ReturnQuestion' was used before it was defined.