Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/MainMenuItems.js
Show All 9 Lines | "submenu": [ | ||||
Engine.PushGuiPage("page_manual.xml"); | Engine.PushGuiPage("page_manual.xml"); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Tutorial"), | "caption": translate("Tutorial"), | ||||
"tooltip": translate("Start the economic tutorial."), | "tooltip": translate("Start the economic tutorial."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.SwitchGuiPage("page_gamesetup.xml", { | Engine.SwitchGuiPage("page_gamesetup.xml", { | ||||
"autostart": true, | |||||
"mapType": "scenario", | "mapType": "scenario", | ||||
"map": "maps/tutorials/starting_economy_walkthrough" | "map": "maps/tutorials/starting_economy_walkthrough" | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Structure Tree"), | "caption": translate("Structure Tree"), | ||||
"tooltip": colorizeHotkey(translate("%(hotkey)s: View the structure tree of civilizations featured in 0 A.D."), "structree"), | "tooltip": colorizeHotkey(translate("%(hotkey)s: View the structure tree of civilizations featured in 0 A.D."), "structree"), | ||||
Show All 16 Lines | "submenu": [ | ||||
Engine.PushGuiPage(data.nextPage, { "civ": data.civ }, callback); | Engine.PushGuiPage(data.nextPage, { "civ": data.civ }, callback); | ||||
}; | }; | ||||
Engine.PushGuiPage("page_civinfo.xml", {}, callback); | Engine.PushGuiPage("page_civinfo.xml", {}, callback); | ||||
} | } | ||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Continue Campaign"), | |||||
"tooltip": translate("Relive history through historical military campaigns."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage(CampaignRun.getCurrentRun().getMenuPath(), { | |||||
"filename": CampaignRun.getCurrentRun().filename | |||||
}); | |||||
}, | |||||
"enabled": () => !!CampaignRun.getCurrentRun() | |||||
}, | |||||
{ | |||||
"caption": translate("Single-player"), | "caption": translate("Single-player"), | ||||
"tooltip": translate("Start, load, or replay a single-player game."), | "tooltip": translate("Start, load, or replay a single-player game."), | ||||
"submenu": [ | "submenu": [ | ||||
{ | { | ||||
"caption": translate("Matches"), | "caption": translate("Matches"), | ||||
"tooltip": translate("Start a new single-player game."), | "tooltip": translate("Start a new single-player game."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.SwitchGuiPage("page_gamesetup.xml"); | 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"), | "caption": translate("Load Game"), | ||||
"tooltip": translate("Load a saved game."), | "tooltip": translate("Load a saved game."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.PushGuiPage("page_loadgame.xml"); | Engine.PushGuiPage("page_loadgame.xml"); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Continue Campaign"), | |||||
Freagarach: Should be the top most button, before `Single-Player` at least. And then not in the SP menu. | |||||
Done Inline ActionsWhy do you think it would be better in first position? wraitii: Why do you think it would be better in first position? | |||||
Done Inline ActionsBecause for SP-people this is probably the most important button. If you're knee-deep into some nice campaign but have to do other stuff and come back it would be nice if this is the very first button. (See e.g. some other RTS games.) Freagarach: Because for SP-people this is probably the most important button. If you're knee-deep into some… | |||||
"tooltip": translate("Relive history through historical military campaigns."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage(CampaignRun.getCurrentRun().getMenuPath(), { | |||||
"filename": CampaignRun.getCurrentRun().filename | |||||
}); | |||||
}, | |||||
"enabled": () => !!CampaignRun.getCurrentRun() | |||||
}, | |||||
{ | |||||
"caption": translate("New Campaign"), | |||||
"tooltip": translate("Relive history through historical military campaigns."), | |||||
"onPress": () => { | |||||
Engine.SwitchGuiPage("campaigns/setup/page.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Load Campaign"), | |||||
"tooltip": translate("Relive history through historical military campaigns."), | |||||
"onPress": () => { | |||||
// Switch instead of push, otherwise the 'continue' | |||||
// button might remain enabled. | |||||
// TODO: find a better solution. | |||||
Engine.SwitchGuiPage("campaigns/load_modal/page.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Replays"), | "caption": translate("Replays"), | ||||
"tooltip": translate("Playback previous games."), | "tooltip": translate("Playback previous games."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.SwitchGuiPage("page_replaymenu.xml", { | Engine.SwitchGuiPage("page_replaymenu.xml", { | ||||
"replaySelectionData": { | "replaySelectionData": { | ||||
"filters": { | "filters": { | ||||
"singleplayer": "Single-player" | "singleplayer": "Single-player" | ||||
} | } | ||||
Show All 26 Lines | "submenu": [ | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Game Lobby"), | "caption": translate("Game Lobby"), | ||||
"tooltip": | "tooltip": | ||||
colorizeHotkey(translate("%(hotkey)s: Launch the multiplayer lobby to join and host publicly visible games and chat with other players."), "lobby") + | 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]")), | (Engine.StartXmppClient ? "" : translate("Launch the multiplayer lobby. \\[DISABLED BY BUILD]")), | ||||
"enabled": !!Engine.StartXmppClient, | "enabled": () => !!Engine.StartXmppClient, | ||||
"hotkey": "lobby", | "hotkey": "lobby", | ||||
"onPress": () => { | "onPress": () => { | ||||
if (Engine.StartXmppClient) | if (Engine.StartXmppClient) | ||||
Engine.PushGuiPage("page_prelobby_entrance.xml"); | Engine.PushGuiPage("page_prelobby_entrance.xml"); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"caption": translate("Replays"), | "caption": translate("Replays"), | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Should be the top most button, before Single-Player at least. And then not in the SP menu.