Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/MainMenuItems.js
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
var g_MainMenuItems = [ | |||||
{ | |||||
"caption": translate("Learn To Play"), | |||||
"tooltip": translate("Learn how to play, start the tutorial, discover the technology trees, and the history behind the civilizations"), | |||||
"submenu": [ | |||||
{ | |||||
"caption": translate("Manual"), | |||||
"tooltip": translate("Open the 0 A.D. Game Manual."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_manual.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Tutorial"), | |||||
"tooltip": translate("Start the economic tutorial."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("page_gamesetup.xml", { | |||||
"tutorial": true | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Structure Tree"), | |||||
"tooltip": colorizeHotkey(translate("%(hotkey)s: View the structure tree of civilizations featured in 0 A.D."), "structree"), | |||||
"hotkey": "structree", | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_structree.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("History"), | |||||
"tooltip": colorizeHotkey(translate("%(hotkey)s: Learn about the many civilizations featured in 0 A.D."), "civinfo"), | |||||
"hotkey": "civinfo", | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_civinfo.xml"); | |||||
} | |||||
} | |||||
] | |||||
}, | |||||
{ | |||||
"caption": translate("Single Player"), | |||||
"tooltip": translate("Click here to start a new single player game."), | |||||
"submenu": [ | |||||
{ | |||||
"caption": translate("Matches"), | |||||
"tooltip": translate("Start the economic tutorial."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("page_gamesetup.xml", {}); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Campaigns"), | |||||
"tooltip": translate("Relive history through historical military campaigns. \\[NOT YET IMPLEMENTED]"), | |||||
"enabled": false | |||||
}, | |||||
{ | |||||
"caption": translate("Load Game"), | |||||
"tooltip": translate("Click here to load a saved game."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_loadgame.xml", { | |||||
"type": "offline" | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Replays"), | |||||
"tooltip": translate("Playback previous games."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("page_replaymenu.xml", { | |||||
"replaySelectionData": { | |||||
"filters": { | |||||
"singleplayer": "Singleplayer" | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
] | |||||
}, | |||||
{ | |||||
"caption": translate("Multiplayer"), | |||||
"tooltip": translate("Fight against one or more human players in a multiplayer game."), | |||||
"submenu": [ | |||||
{ | |||||
// Translation: Join a game by specifying the host's IP address. | |||||
"caption": translate("Join Game"), | |||||
"tooltip": translate("Joining an existing multiplayer game."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_gamesetup_mp.xml", { | |||||
"multiplayerGameType": "join" | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Host Game"), | |||||
"tooltip": translate("Host a multiplayer game."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_gamesetup_mp.xml", { | |||||
"multiplayerGameType": "host" | |||||
}); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Game Lobby"), | |||||
"tooltip": | |||||
colorizeHotkey(translate("%(hotkey)s: Launch the multiplayer lobby to join and host publicly visible games and chat with other players."), "lobby") + | |||||
(Engine.StartXmppClient ? "" : translate("Launch the multiplayer lobby. \\[DISABLED BY BUILD]")), | |||||
"enabled": !!Engine.StartXmppClient, | |||||
"hotkey": "lobby", | |||||
"onPress": () => { | |||||
if (Engine.StartXmppClient) | |||||
Engine.PushGuiPage("page_prelobby_entrance.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Replays"), | |||||
"tooltip": translate("Playback previous games."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("page_replaymenu.xml", { | |||||
"replaySelectionData": { | |||||
"filters": { | |||||
"singleplayer": "Multiplayer" | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
] | |||||
}, | |||||
{ | |||||
"caption": translate("Settings"), | |||||
"tooltip": translate("Game options and scenario design tools."), | |||||
"submenu": [ | |||||
{ | |||||
"caption": translate("Options"), | |||||
"tooltip": translate("Adjust game settings."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_options.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Language"), | |||||
"tooltip": translate("Choose the language of the game."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_locale.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Mod Selection"), | |||||
"tooltip": translate("Select and download mods for the game."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("page_modmod.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Welcome Screen"), | |||||
"tooltip": translate("Show the Welcome Screen. Useful if you hid it by mistake."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_splashscreen.xml"); | |||||
} | |||||
} | |||||
] | |||||
}, | |||||
{ | |||||
"caption": translate("Scenario Editor"), | |||||
"tooltip": translate('Open the Atlas Scenario Editor in a new window. You can run this more reliably by starting the game with the command-line argument "-editor".'), | |||||
"onPress": () => { | |||||
if (Engine.AtlasIsAvailable()) | |||||
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 | |||||
messageBox( | |||||
400, 200, | |||||
translate("The scenario editor is not available or failed to load. See the game logs for additional information."), | |||||
translate("Error")); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Exit"), | |||||
"tooltip": translate("Exits the game."), | |||||
"onPress": () => { | |||||
messageBox( | |||||
400, 200, | |||||
translate("Are you sure you want to quit 0 A.D.?"), | |||||
translate("Confirmation"), | |||||
[translate("No"), translate("Yes")], | |||||
[null, Engine.Exit]); | |||||
} | |||||
} | |||||
]; |
Wildfire Games · Phabricator