equal
deleted
inserted
replaced
1720 } |
1720 } |
1721 |
1721 |
1722 void HWForm::StartCampaign() |
1722 void HWForm::StartCampaign() |
1723 { |
1723 { |
1724 CreateGame(0, 0, 0); |
1724 CreateGame(0, 0, 0); |
1725 |
1725 // what if no picture? :D |
1726 QComboBox *combo = ui.pageCampaign->CBMission; |
1726 //QComboBox *combo = ui.pageCampaign->CBMission; |
1727 QString camp = ui.pageCampaign->CBCampaign->currentText(); |
1727 QString camp = ui.pageCampaign->CBCampaign->currentText(); |
1728 unsigned int mNum = combo->count() - combo->currentIndex(); |
1728 //unsigned int mNum = combo->count() - combo->currentIndex(); |
1729 QString miss = getCampaignScript(camp, mNum); |
1729 //QString miss = getCampaignScript(camp, mNum); |
|
1730 QString miss = campaignMissionImages[ui.pageCampaign->CBMission->currentIndex()].replace(QString(".png"),QString(".lua")); |
1730 QString campTeam = ui.pageCampaign->CBTeam->currentText(); |
1731 QString campTeam = ui.pageCampaign->CBTeam->currentText(); |
1731 |
1732 |
1732 game->StartCampaign(camp, miss, campTeam); |
1733 game->StartCampaign(camp, miss, campTeam); |
1733 } |
1734 } |
1734 |
1735 |