Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/MainMenuItems.js
Show All 40 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("Single Player"), | "caption": translate("Single-player"), | ||||
"tooltip": translate("Click here to start a new single player game."), | "tooltip": translate("Click here to start a new single-player game."), | ||||
"submenu": [ | "submenu": [ | ||||
{ | { | ||||
"caption": translate("Matches"), | "caption": translate("Matches"), | ||||
"tooltip": translate("Start the economic tutorial."), | "tooltip": translate("Start the economic tutorial."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.SwitchGuiPage("page_gamesetup.xml", {}); | Engine.SwitchGuiPage("page_gamesetup.xml", {}); | ||||
} | } | ||||
}, | }, | ||||
Show All 11 Lines | "submenu": [ | ||||
}, | }, | ||||
{ | { | ||||
"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": "Singleplayer" | "singleplayer": "Single-player" | ||||
} | } | ||||
} | } | ||||
}); | }); | ||||
} | } | ||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator