QTfrontend/team.cpp
changeset 247 07605d2a2024
parent 245 4f6b53b7a567
child 312 c36d0b34ac3d
equal deleted inserted replaced
246:107f7e826a83 247:07605d2a2024
   180 		HHName[i] = hwform->ui.pageEditTeam->HHNameEdit[i]->text();
   180 		HHName[i] = hwform->ui.pageEditTeam->HHNameEdit[i]->text();
   181 	}
   181 	}
   182 
   182 
   183 	Grave = hwform->ui.pageEditTeam->CBGrave->currentText();
   183 	Grave = hwform->ui.pageEditTeam->CBGrave->currentText();
   184 	Fort = hwform->ui.pageEditTeam->CBFort->currentText();
   184 	Fort = hwform->ui.pageEditTeam->CBFort->currentText();
   185 	for(int i = 0; i < 8; i++)
   185 	for(int i = 0; i < BINDS_NUMBER; i++)
   186 	{
   186 	{
   187 		binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText();
   187 		binds[i].strbind = hwform->ui.pageEditTeam->CBBind[i]->currentText();
   188 	}
   188 	}
   189 }
   189 }
   190 
   190 
   192 {
   192 {
   193 	QStringList sl;
   193 	QStringList sl;
   194 	sl.push_back("eaddteam");
   194 	sl.push_back("eaddteam");
   195 	sl.push_back(QString("ecolor %1").arg(color));
   195 	sl.push_back(QString("ecolor %1").arg(color));
   196 	sl.push_back("ename team " + TeamName);
   196 	sl.push_back("ename team " + TeamName);
   197 	for (int i = 0; i < 8; i++)
   197 	for (int i = 0; i < hedgehogs; i++)
   198 		sl.push_back(QString("ename hh%1 ").arg(i).append(HHName[i]));
   198 		sl.push_back(QString("ename hh%1 ").arg(i).append(HHName[i]));
   199 	sl.push_back(QString("egrave " + Grave));
   199 	sl.push_back(QString("egrave " + Grave));
   200 	sl.push_back(QString("efort " + Fort));
   200 	sl.push_back(QString("efort " + Fort));
   201 	for(int i = 0; i < BINDS_NUMBER; i++)
   201 	for(int i = 0; i < BINDS_NUMBER; i++)
   202 	{
   202 	{