Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/MainMenuItems.js
Show All 18 Lines | "submenu": [ | ||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ | { | ||||
"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"), | ||||
"hotkey": "structree", | "hotkey": "structree", | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.PushGuiPage("page_structree.xml"); | let callback = data => { | ||||
} | if (data.nextPage) | ||||
Engine.PushGuiPage(data.nextPage, { "civ": data.civ }, callback); | |||||
}; | |||||
Engine.PushGuiPage("page_structree.xml", {}, callback); | |||||
}, | |||||
}, | }, | ||||
{ | { | ||||
"caption": translate("History"), | "caption": translate("History"), | ||||
"tooltip": colorizeHotkey(translate("%(hotkey)s: Learn about the many civilizations featured in 0 A.D."), "civinfo"), | "tooltip": colorizeHotkey(translate("%(hotkey)s: Learn about the many civilizations featured in 0 A.D."), "civinfo"), | ||||
"hotkey": "civinfo", | "hotkey": "civinfo", | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.PushGuiPage("page_civinfo.xml"); | let callback = data => { | ||||
if (data.nextPage) | |||||
Engine.PushGuiPage(data.nextPage, { "civ": data.civ }, 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": [ | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator