diff --git a/application/core/Players/PlayerDetailed.php b/application/core/Players/PlayerDetailed.php index 8c8110bf..5331909a 100644 --- a/application/core/Players/PlayerDetailed.php +++ b/application/core/Players/PlayerDetailed.php @@ -5,6 +5,7 @@ use FML\Controls\Control; use FML\Controls\Frame; use FML\Controls\Labels\Label_Text; use FML\Controls\Quad; +use FML\Controls\Quads\Quad_BgsPlayerCard; use FML\Controls\Quads\Quad_Icons64x64_1; use FML\ManiaLink; use FML\Script\Script; @@ -223,6 +224,7 @@ class PlayerDetailed { $playerStats = $this->maniaControl->statisticManager->getAllPlayerStats($player); $y = $this->height / 2 - 15; + $id = 1; foreach($playerStats as $stat){ $statProperties = $stat[0]; $value = $stat[1]; @@ -231,6 +233,15 @@ class PlayerDetailed { $value = Formatter::formatTimeH($value); } + if($id % 2 != 0) { + $lineQuad = new Quad_BgsPlayerCard(); + $frame->add($lineQuad); + $lineQuad->setSize(49, 4); + $lineQuad->setSubStyle($lineQuad::SUBSTYLE_BgPlayerCardBig); + $lineQuad->setPosition(-$this->width / 2 + 66, $y, 0.001); + $lineQuad->setHAlign(Control::LEFT); + } + $label = new Label_Text(); $frame->add($label); $label->setPosition(-$this->width / 2 + 70, $y); @@ -246,6 +257,7 @@ class PlayerDetailed { $label->setTextSize(1.5); $y -= 4; + $id++; } return $frame; } diff --git a/application/plugins/Karma.php b/application/plugins/Karma.php index ab7924d1..9d69e639 100644 --- a/application/plugins/Karma.php +++ b/application/plugins/Karma.php @@ -270,7 +270,9 @@ class KarmaPlugin implements CallbackListener, Plugin { $map = $this->maniaControl->mapManager->getCurrentMap(); $voted = $this->getPlayerVote($player, $map); + var_dump($voted); if(!$voted){ + var_dump("test"); $this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $this->maniaControl->server->getLogin()); }