Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/mainmenu.js
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Lines | function exitGamePressed() | ||||
); | ); | ||||
} | } | ||||
function pressedScenarioEditorButton() | function pressedScenarioEditorButton() | ||||
{ | { | ||||
closeMenu(); | closeMenu(); | ||||
if (Engine.AtlasIsAvailable()) | if (Engine.AtlasIsAvailable()) | ||||
Engine.RestartInAtlas(); | messageBox( | ||||
400, 200, | |||||
translate("Are you sure you want to quit 0 A.D. and open the Scenario Editor?"), | |||||
translate("Confirmation"), | |||||
[translate("No"), translate("Yes")], | |||||
[null, Engine.RestartInAtlas] | |||||
); | |||||
else | else | ||||
messageBox( | messageBox( | ||||
400, 200, | 400, 200, | ||||
translate("The scenario editor is not available or failed to load. See the game logs for additional information."), | translate("The scenario editor is not available or failed to load. See the game logs for additional information."), | ||||
translate("Error") | translate("Error") | ||||
); | ); | ||||
} | } | ||||
Show All 14 Lines |
Wildfire Games · Phabricator