equal
deleted
inserted
replaced
212 hwform->ui.pageEditTeam->CBVoicepack->setCurrentIndex(hwform->ui.pageEditTeam->CBVoicepack->findText(Voicepack)); |
212 hwform->ui.pageEditTeam->CBVoicepack->setCurrentIndex(hwform->ui.pageEditTeam->CBVoicepack->findText(Voicepack)); |
213 //hwform->ui.pageEditTeam->CBFort_activated(Fort); |
213 //hwform->ui.pageEditTeam->CBFort_activated(Fort); |
214 |
214 |
215 for(int i = 0; i < BINDS_NUMBER; i++) |
215 for(int i = 0; i < BINDS_NUMBER; i++) |
216 { |
216 { |
217 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findText(binds[i].strbind)); |
217 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findData(binds[i].strbind)); |
218 } |
218 } |
219 } |
219 } |
220 |
220 |
221 void HWTeam::GetFromPage(HWForm * hwform) |
221 void HWTeam::GetFromPage(HWForm * hwform) |
222 { |
222 { |
231 Grave = hwform->ui.pageEditTeam->CBGrave->currentText(); |
231 Grave = hwform->ui.pageEditTeam->CBGrave->currentText(); |
232 Fort = hwform->ui.pageEditTeam->CBFort->currentText(); |
232 Fort = hwform->ui.pageEditTeam->CBFort->currentText(); |
233 Voicepack = hwform->ui.pageEditTeam->CBVoicepack->currentText(); |
233 Voicepack = hwform->ui.pageEditTeam->CBVoicepack->currentText(); |
234 for(int i = 0; i < BINDS_NUMBER; i++) |
234 for(int i = 0; i < BINDS_NUMBER; i++) |
235 { |
235 { |
236 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText(); |
236 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->itemData(hwform->ui.pageEditTeam->CBBind[i]->currentIndex()).toString(); |
237 } |
237 } |
238 } |
238 } |
239 |
239 |
240 QStringList HWTeam::TeamGameConfig(quint32 InitHealth) const |
240 QStringList HWTeam::TeamGameConfig(quint32 InitHealth) const |
241 { |
241 { |
249 sl.push_back(QString("efort " + Fort)); |
249 sl.push_back(QString("efort " + Fort)); |
250 sl.push_back(QString("evoicepack " + Voicepack)); |
250 sl.push_back(QString("evoicepack " + Voicepack)); |
251 |
251 |
252 if (!m_isNetTeam) |
252 if (!m_isNetTeam) |
253 for(int i = 0; i < BINDS_NUMBER; i++) |
253 for(int i = 0; i < BINDS_NUMBER; i++) |
254 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
254 if(!binds[i].strbind.isEmpty()) |
|
255 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
255 |
256 |
256 for (int t = 0; t < numHedgehogs; t++) |
257 for (int t = 0; t < numHedgehogs; t++) |
257 { |
258 { |
258 sl.push_back(QString("eaddhh %1 %2 %3") |
259 sl.push_back(QString("eaddhh %1 %2 %3") |
259 .arg(QString::number(difficulty), |
260 .arg(QString::number(difficulty), |