Ceres Posted October 30, 2022 Share Posted October 30, 2022 (edited) Hello! I have a question about MainMenuItems.js, specifically this part: { "caption": translate("Mod Selection"), "tooltip": translate("Select and download mods for the game."), "onPress": () => { Engine.SwitchGuiPage("page_modmod.xml"); } }, I cannot find the file page_modmod.xml anywhere in the repo, nor in my forked/checked out files. Do I have a complete misconception, i.e. is this no file at all? If not, what is it? I had expected (and still do) that when clicking the "Mod Selection" button, a new page (window/screen) is called (named page_modmod.xml). And this must be available somewhere (I thought). Thanks for your patience with me and for your help! PS: Nor can I find any of the other xml files, e.g. page_locale.xml, which are called in MainMenuItems.js. Edited October 30, 2022 by Ceres Link to comment Share on other sites More sharing options...
Silier Posted October 30, 2022 Share Posted October 30, 2022 https://github.com/0ad/0ad/blob/master/binaries/data/mods/mod/gui/page_modmod.xml 1 Link to comment Share on other sites More sharing options...
Ceres Posted October 30, 2022 Author Share Posted October 30, 2022 Oh my bad, I looked in the wrong path. Thank you! Why is file page_modmod.xml referred to from \binaries\data\mods\public\gui\pregame\MainMenuItems.js stored in \binaries\data\mods\mod\gui\? Besides, I wonder why I cannot find page_modmod.xml via the GitHub search: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now