equal
deleted
inserted
replaced
464 } |
464 } |
465 |
465 |
466 ui.pageOptions->CBTeamName->clear(); |
466 ui.pageOptions->CBTeamName->clear(); |
467 ui.pageOptions->CBTeamName->addItems(teamslist); |
467 ui.pageOptions->CBTeamName->addItems(teamslist); |
468 ui.pageCampaign->CBTeam->clear(); |
468 ui.pageCampaign->CBTeam->clear(); |
469 ui.pageCampaign->CBTeam->addItems(teamslist); |
469 /* Only show human teams in campaign page */ |
|
470 for(int i=0; i<teamslist.length(); i++) |
|
471 { |
|
472 HWTeam testTeam = HWTeam(teamslist[i]); |
|
473 testTeam.loadFromFile(); |
|
474 if(testTeam.difficulty() == 0) |
|
475 { |
|
476 ui.pageCampaign->CBTeam->addItem(teamslist[i]); |
|
477 } |
|
478 } |
470 } |
479 } |
471 |
480 |
472 void HWForm::GoToSelectNewWeapon() |
481 void HWForm::GoToSelectNewWeapon() |
473 { |
482 { |
474 ui.pageSelectWeapon->pWeapons->newWeaponsName(); |
483 ui.pageSelectWeapon->pWeapons->newWeaponsName(); |