QTfrontend/statsPage.cpp
changeset 4192 67e1a683e9b3
parent 4177 6acd599eee52
child 4217 721bfa5f4f31
equal deleted inserted replaced
4191:2a92c7f5c058 4192:67e1a683e9b3
   223                 break;
   223                 break;
   224         }
   224         }
   225         case 's' : {
   225         case 's' : {
   226             int i = info.indexOf(' ');
   226             int i = info.indexOf(' ');
   227             int num = info.left(i).toInt();
   227             int num = info.left(i).toInt();
   228             QString message = "<p><img src=\":/res/StatsMostSelfDamage.png\"> " + PageGameStats::tr("<b>%1</b> thought it's good to shoot his own hedgehogs with <b>%2</b> pts.", "", num).arg(info.mid(i + 1), num) + "</p>";
   228             QString message = "<p><img src=\":/res/StatsMostSelfDamage.png\"> " + PageGameStats::tr("<b>%1</b> thought it's good to shoot his own hedgehogs with <b>%2</b> pts.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
   229             AddStatText(message);
   229             AddStatText(message);
   230             break;
   230             break;
   231         }
   231         }
   232         case 'S' : {
   232         case 'S' : {
   233             int i = info.indexOf(' ');
   233             int i = info.indexOf(' ');
   234             int num = info.left(i).toInt();
   234             int num = info.left(i).toInt();
   235             QString message = "<p><img src=\":/res/StatsSelfKilled.png\"> " + PageGameStats::tr("<b>%1</b> killed <b>%2</b> of his own hedgehogs.", "", num).arg(info.mid(i + 1), num) + "</p>";
   235             QString message = "<p><img src=\":/res/StatsSelfKilled.png\"> " + PageGameStats::tr("<b>%1</b> killed <b>%2</b> of his own hedgehogs.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
   236             AddStatText(message);
   236             AddStatText(message);
   237             break;
   237             break;
   238         }
   238         }
   239         case 'B' : {
   239         case 'B' : {
   240             int i = info.indexOf(' ');
   240             int i = info.indexOf(' ');
   241             int num = info.left(i).toInt();
   241             int num = info.left(i).toInt();
   242             QString message = "<p><img src=\":/res/StatsSkipped.png\"> " + PageGameStats::tr("<b>%1</b> was scared and skipped turn <b>%2</b> times.", "", num).arg(info.mid(i + 1), num) + "</p>";
   242             QString message = "<p><img src=\":/res/StatsSkipped.png\"> " + PageGameStats::tr("<b>%1</b> was scared and skipped turn <b>%2</b> times.", "", num).arg(info.mid(i + 1)).arg(num) + "</p>";
   243             AddStatText(message);
   243             AddStatText(message);
   244             break;
   244             break;
   245         }
   245         }
   246 
   246 
   247     }
   247     }