improve simplestatslist

This commit is contained in:
kremsy
2014-01-29 20:51:53 +01:00
committed by Steffen Schröder
parent 6367ef160c
commit c306011700
6 changed files with 190 additions and 57 deletions

View File

@ -216,6 +216,7 @@ class PlayerDetailed {
$y = $this->height / 2 - 15;
$x = -$this->width / 2 + 52;
$id = 1;
foreach($playerStats as $stat) {
$statProperties = $stat[0];
$value = $stat[1];
@ -226,8 +227,11 @@ class PlayerDetailed {
if ($statProperties->type == StatisticManager::STAT_TYPE_TIME) {
$value = Formatter::formatTimeH($value);
} else if ($statProperties->type == StatisticManager::STAT_TYPE_FLOAT) {
$value = round(floatval($value), 2);
}
if ($id % 2 != 0) {
$lineQuad = new Quad_BgsPlayerCard();
$frame->add($lineQuad);