mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 16:32:53 +02:00
disable joining in progress games for release (controlled by optional setting EnableJoinInProgressGame=true)
This commit is contained in:
@@ -340,13 +340,16 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu,
|
|||||||
}
|
}
|
||||||
listBoxAISwitchTeamAcceptPercent.setSelectedItem(intToStr(30));
|
listBoxAISwitchTeamAcceptPercent.setSelectedItem(intToStr(30));
|
||||||
|
|
||||||
|
bool allowInProgressJoin = Config::getInstance().getBool("EnableJoinInProgressGame","false");
|
||||||
labelAllowInGameJoinPlayer.registerGraphicComponent(containerName,"labelAllowInGameJoinPlayer");
|
labelAllowInGameJoinPlayer.registerGraphicComponent(containerName,"labelAllowInGameJoinPlayer");
|
||||||
labelAllowInGameJoinPlayer.init(xoffset+410, 670, 80);
|
labelAllowInGameJoinPlayer.init(xoffset+410, 670, 80);
|
||||||
labelAllowInGameJoinPlayer.setText(lang.get("AllowInGameJoinPlayer"));
|
labelAllowInGameJoinPlayer.setText(lang.get("AllowInGameJoinPlayer"));
|
||||||
|
labelAllowInGameJoinPlayer.setVisible(allowInProgressJoin);
|
||||||
|
|
||||||
checkBoxAllowInGameJoinPlayer.registerGraphicComponent(containerName,"checkBoxAllowInGameJoinPlayer");
|
checkBoxAllowInGameJoinPlayer.registerGraphicComponent(containerName,"checkBoxAllowInGameJoinPlayer");
|
||||||
checkBoxAllowInGameJoinPlayer.init(xoffset+600, 670);
|
checkBoxAllowInGameJoinPlayer.init(xoffset+600, 670);
|
||||||
checkBoxAllowInGameJoinPlayer.setValue(false);
|
checkBoxAllowInGameJoinPlayer.setValue(false);
|
||||||
|
checkBoxAllowInGameJoinPlayer.setVisible(allowInProgressJoin);
|
||||||
|
|
||||||
// Which Pathfinder
|
// Which Pathfinder
|
||||||
//labelPathFinderType.registerGraphicComponent(containerName,"labelPathFinderType");
|
//labelPathFinderType.registerGraphicComponent(containerName,"labelPathFinderType");
|
||||||
|
Reference in New Issue
Block a user