gui preparation for allow spectators flag #215

This commit is contained in:
doitux
2013-10-24 09:12:51 +02:00
parent 394d721b15
commit 4647ceb452
10 changed files with 212 additions and 141 deletions
@@ -164,6 +164,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
radioButton_changeBlindsSettings->show();
startBlind->hide();
raiseMode->hide();
checkBox_allowSpectators->setEnabled(true);
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
}
break;
@@ -177,6 +179,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
radioButton_changeBlindsSettings->show();
startBlind->hide();
raiseMode->hide();
checkBox_allowSpectators->setEnabled(true);
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
}
break;
case GAME_TYPE_INVITE_ONLY-1: {
@@ -190,7 +194,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
radioButton_changeBlindsSettings->show();
startBlind->hide();
raiseMode->hide();
checkBox_allowSpectators->setEnabled(true);
checkBox_allowSpectators->setChecked(myConfig->readConfigInt("InternetGameAllowSpectators"));
}
break;
case GAME_TYPE_RANKING-1: {
@@ -205,7 +210,8 @@ void createInternetGameDialogImpl::gameTypeChanged()
radioButton_changeBlindsSettings->hide();
startBlind->show();
raiseMode->show();
checkBox_allowSpectators->setDisabled(true);
checkBox_allowSpectators->setChecked(true);
}
break;
}