Ask the lobby player to open the mod selection page if the mods don't match the ones from the lobby host, as decided in the staff meeting.

This was SVN commit r21761.
This commit is contained in:
elexis 2018-04-22 23:46:06 +00:00
parent c23045dcc0
commit 4b09d6f167

View File

@ -1178,10 +1178,18 @@ function joinButton()
messageBox(
400, 200,
translate("Your active mods do not match the mods of this game.") + "\n\n" +
comparedModsString(JSON.parse(game.mods), Engine.GetEngineInfo().mods),
comparedModsString(JSON.parse(game.mods), Engine.GetEngineInfo().mods) + "\n\n" +
translate("Do you want to switch to the mod selection page?"),
translate("Incompatible mods"),
[translate("Ok")],
[null]
[translate("No"), translate("Yes")],
[
null,
() => {
Engine.SwitchGuiPage("page_modmod.xml", {
"cancelbutton": true
});
}
]
);
else if (game.state == "init" || stringifiedTeamListToPlayerData(game.players).some(player => player.Name == username))
joinSelectedGame();