equal
deleted
inserted
replaced
40 HHName[i].sprintf("hedgehog %d", i); |
40 HHName[i].sprintf("hedgehog %d", i); |
41 HHHat[i] = "NoHat"; |
41 HHHat[i] = "NoHat"; |
42 } |
42 } |
43 Grave = "Statue"; |
43 Grave = "Statue"; |
44 Fort = "Plane"; |
44 Fort = "Plane"; |
|
45 Voicepack = "Default"; |
45 for(int i = 0; i < BINDS_NUMBER; i++) |
46 for(int i = 0; i < BINDS_NUMBER; i++) |
46 { |
47 { |
47 binds[i].action = cbinds[i].action; |
48 binds[i].action = cbinds[i].action; |
48 binds[i].strbind = cbinds[i].strbind; |
49 binds[i].strbind = cbinds[i].strbind; |
49 } |
50 } |
143 if (str.startsWith("fort ")) |
144 if (str.startsWith("fort ")) |
144 { |
145 { |
145 str.remove(0, 5); |
146 str.remove(0, 5); |
146 Fort = str; |
147 Fort = str; |
147 } else |
148 } else |
|
149 if (str.startsWith("voicepack ")) |
|
150 { |
|
151 str.remove(0, 10); |
|
152 Voicepack = str; |
|
153 } else |
148 if (str.startsWith("bind ")) |
154 if (str.startsWith("bind ")) |
149 { |
155 { |
150 str.remove(0, 5); |
156 str.remove(0, 5); |
151 action = str.section(' ', 1); |
157 action = str.section(' ', 1); |
152 str = str.section(' ', 0, 0); |
158 str = str.section(' ', 0, 0); |
188 stream << "name hh" << i << " " << HHName[i] << endl; |
194 stream << "name hh" << i << " " << HHName[i] << endl; |
189 stream << "hat" << i << " " << HHHat[i] << endl; |
195 stream << "hat" << i << " " << HHHat[i] << endl; |
190 } |
196 } |
191 stream << "grave " << Grave << endl; |
197 stream << "grave " << Grave << endl; |
192 stream << "fort " << Fort << endl; |
198 stream << "fort " << Fort << endl; |
|
199 stream << "voicepack " << Voicepack << endl; |
193 for(int i = 0; i < BINDS_NUMBER; i++) |
200 for(int i = 0; i < BINDS_NUMBER; i++) |
194 { |
201 { |
195 stream << "bind " << binds[i].strbind << " " << binds[i].action << endl; |
202 stream << "bind " << binds[i].strbind << " " << binds[i].action << endl; |
196 } |
203 } |
197 stream << "difficulty " << difficulty << endl; |
204 stream << "difficulty " << difficulty << endl; |
209 hwform->ui.pageEditTeam->HHHats[i]->setCurrentIndex(hwform->ui.pageEditTeam->HHHats[i]->findData(HHHat[i], Qt::DisplayRole)); |
216 hwform->ui.pageEditTeam->HHHats[i]->setCurrentIndex(hwform->ui.pageEditTeam->HHHats[i]->findData(HHHat[i], Qt::DisplayRole)); |
210 } |
217 } |
211 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
218 hwform->ui.pageEditTeam->CBGrave->setCurrentIndex(hwform->ui.pageEditTeam->CBGrave->findText(Grave)); |
212 |
219 |
213 hwform->ui.pageEditTeam->CBFort->setCurrentIndex(hwform->ui.pageEditTeam->CBFort->findText(Fort)); |
220 hwform->ui.pageEditTeam->CBFort->setCurrentIndex(hwform->ui.pageEditTeam->CBFort->findText(Fort)); |
|
221 hwform->ui.pageEditTeam->CBVoicepack->setCurrentIndex(hwform->ui.pageEditTeam->CBVoicepack->findText(Voicepack)); |
214 //hwform->ui.pageEditTeam->CBFort_activated(Fort); |
222 //hwform->ui.pageEditTeam->CBFort_activated(Fort); |
215 |
223 |
216 for(int i = 0; i < BINDS_NUMBER; i++) |
224 for(int i = 0; i < BINDS_NUMBER; i++) |
217 { |
225 { |
218 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findText(binds[i].strbind)); |
226 hwform->ui.pageEditTeam->CBBind[i]->setCurrentIndex(hwform->ui.pageEditTeam->CBBind[i]->findText(binds[i].strbind)); |
229 HHHat[i] = hwform->ui.pageEditTeam->HHHats[i]->currentText(); |
237 HHHat[i] = hwform->ui.pageEditTeam->HHHats[i]->currentText(); |
230 } |
238 } |
231 |
239 |
232 Grave = hwform->ui.pageEditTeam->CBGrave->currentText(); |
240 Grave = hwform->ui.pageEditTeam->CBGrave->currentText(); |
233 Fort = hwform->ui.pageEditTeam->CBFort->currentText(); |
241 Fort = hwform->ui.pageEditTeam->CBFort->currentText(); |
|
242 Voicepack = hwform->ui.pageEditTeam->CBVoicepack->currentText(); |
234 for(int i = 0; i < BINDS_NUMBER; i++) |
243 for(int i = 0; i < BINDS_NUMBER; i++) |
235 { |
244 { |
236 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText(); |
245 binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText(); |
237 } |
246 } |
238 } |
247 } |
245 if (m_isNetTeam) |
254 if (m_isNetTeam) |
246 sl.push_back("erdriven"); |
255 sl.push_back("erdriven"); |
247 |
256 |
248 sl.push_back(QString("egrave " + Grave)); |
257 sl.push_back(QString("egrave " + Grave)); |
249 sl.push_back(QString("efort " + Fort)); |
258 sl.push_back(QString("efort " + Fort)); |
250 sl.push_back(QString("evoicepack Default")); |
259 sl.push_back(QString("evoicepack " + Voicepack)); |
251 |
260 |
252 if (!m_isNetTeam) |
261 if (!m_isNetTeam) |
253 for(int i = 0; i < BINDS_NUMBER; i++) |
262 for(int i = 0; i < BINDS_NUMBER; i++) |
254 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
263 sl.push_back(QString("ebind " + binds[i].strbind + " " + binds[i].action)); |
255 |
264 |