Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/pregame/MainMenuItems.js
Show All 39 Lines | "submenu": [ | ||||
let callback = data => { | let callback = data => { | ||||
if (data.nextPage) | if (data.nextPage) | ||||
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("Catafalque Overview"), | |||||
"tooltip": translate("Compare the bonuses of catafalques featured in 0 A.D."), | |||||
"onPress": () => { | |||||
Engine.PushGuiPage("page_catafalque.xml"); | |||||
} | |||||
}, | |||||
{ | |||||
"caption": translate("Map Overview"), | "caption": translate("Map Overview"), | ||||
"tooltip": translate("View the different maps featured in 0 A.D."), | "tooltip": translate("View the different maps featured in 0 A.D."), | ||||
"onPress": () => { | "onPress": () => { | ||||
Engine.PushGuiPage("page_mapbrowser.xml"); | Engine.PushGuiPage("page_mapbrowser.xml"); | ||||
}, | }, | ||||
} | } | ||||
] | ] | ||||
}, | }, | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator