seeh Posted June 26, 2023 Report Share Posted June 26, 2023 I have seen that some mods place their name on the GUI start page at the bottom left and only one mod name is listed there. I think it would be nicer if others are also listed. Here's an example of what that could look like: /** * IMPORTANT: Remember to update session/top_panel/BuildLabel.xml in sync with this. */ let modsString = ''; for (let [key, value] of Object.entries(Engine.GetEngineInfo().mods)) { if(key<1) continue; for (let [key2, value2] of Object.entries(Engine.GetEngineInfo().mods[key])) { if(key2 != 'name' && key2 != 'version') continue; modsString += ` ${value2}`; // mod/name/version : ... } } modsString = modsString.replace(/\s+([a-z])/gi , "\n$1" ) ; modsString = modsString.replace(/\s+(proGUI)/g , "\n$1(boonGUI, BetterQuickStart)" ) ; modsString = modsString.replace(/\s+(autocivP)/g , "\n$1(autociv)" ) ; var g_ProjectInformation = { "organizationName": { "caption": translate("WILDFIRE GAMES") }, "organizationLogo": { "sprite": "WildfireGamesLogo" }, "productLogo": { "sprite": "0ADLogo" }, "productBuild": { "caption": getBuildString() }, "productDescription": { "caption": setStringTags(translate("Alpha XXVI: Zhuangzi"), { "font": "sans-bold-18" }) + "\n" + setStringTags(translate(modsString.trim(), { "font": "sans-16" })) + "\n" } }; 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.