equal
deleted
inserted
replaced
36 #include <QTableView> |
36 #include <QTableView> |
37 |
37 |
38 #include "hwform.h" |
38 #include "hwform.h" |
39 #include "game.h" |
39 #include "game.h" |
40 #include "team.h" |
40 #include "team.h" |
|
41 #include "namegen.h" |
41 #include "teamselect.h" |
42 #include "teamselect.h" |
42 #include "selectWeapon.h" |
43 #include "selectWeapon.h" |
43 #include "gameuiconfig.h" |
44 #include "gameuiconfig.h" |
44 #include "pages.h" |
45 #include "pages.h" |
45 #include "statsPage.h" |
46 #include "statsPage.h" |
61 CustomizePalettes(); |
62 CustomizePalettes(); |
62 |
63 |
63 ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); |
64 ui.pageOptions->CBResolution->addItems(sdli.getResolutions()); |
64 |
65 |
65 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
66 config = new GameUIConfig(this, cfgdir->absolutePath() + "/hedgewars.ini"); |
|
67 |
|
68 namegen = new HWNamegen(); |
66 |
69 |
67 UpdateTeamsLists(); |
70 UpdateTeamsLists(); |
68 UpdateWeapons(); |
71 UpdateWeapons(); |
69 |
72 |
70 connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); |
73 connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); |
424 } |
427 } |
425 |
428 |
426 void HWForm::RandomNames() |
429 void HWForm::RandomNames() |
427 { |
430 { |
428 editedTeam->GetFromPage(this); |
431 editedTeam->GetFromPage(this); |
429 editedTeam->TeamRandomNames(FALSE); |
432 namegen->TeamRandomNames(editedTeam,FALSE); |
430 editedTeam->SetToPage(this); |
433 editedTeam->SetToPage(this); |
431 } |
434 } |
432 |
435 |
433 void HWForm::RandomName(const int &i) |
436 void HWForm::RandomName(const int &i) |
434 { |
437 { |
435 editedTeam->GetFromPage(this); |
438 editedTeam->GetFromPage(this); |
436 editedTeam->TeamRandomName(i); |
439 namegen->TeamRandomName(editedTeam,i); |
437 editedTeam->SetToPage(this); |
440 editedTeam->SetToPage(this); |
438 } |
441 } |
439 |
442 |
440 void HWForm::TeamSave() |
443 void HWForm::TeamSave() |
441 { |
444 { |