removed player location in playerlist on bots

This commit is contained in:
kremsy 2013-12-29 13:25:11 +01:00
parent b56ad5682c
commit b7b327a00b

View File

@ -171,25 +171,28 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
} }
//Nation Quad //Display country quad only on normal players
$countryQuad = new Quad(); if(!$listPlayer->isFakePlayer()){
$playerFrame->add($countryQuad); //Nation Quad
$countryCode = Formatter::mapCountry($listPlayer->getCountry()); $countryQuad = new Quad();
$countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds"); $playerFrame->add($countryQuad);
$countryQuad->setX($x + 88); $countryCode = Formatter::mapCountry($listPlayer->getCountry());
$countryQuad->setSize(4,4); $countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds");
$countryQuad->setZ(-0.1); $countryQuad->setX($x + 88);
$countryQuad->setSize(4,4);
$countryQuad->setZ(-0.1);
//Nation Description Label //Nation Description Label
$descriptionLabel = new Label(); $descriptionLabel = new Label();
$frame->add($descriptionLabel); $frame->add($descriptionLabel);
$descriptionLabel->setAlign(Control::LEFT, Control::TOP); $descriptionLabel->setAlign(Control::LEFT, Control::TOP);
$descriptionLabel->setPosition($x + 10, -$this->height / 2 + 5); $descriptionLabel->setPosition($x + 10, -$this->height / 2 + 5);
$descriptionLabel->setSize($this->width * 0.7, 4); $descriptionLabel->setSize($this->width * 0.7, 4);
$descriptionLabel->setTextSize(2); $descriptionLabel->setTextSize(2);
$descriptionLabel->setVisible(false); $descriptionLabel->setVisible(false);
$descriptionLabel->setText($listPlayer->nickname . " from " . $listPlayer->path); $descriptionLabel->setText($listPlayer->nickname . " from " . $listPlayer->path);
$tooltips->add($countryQuad, $descriptionLabel); $tooltips->add($countryQuad, $descriptionLabel);
}
//Level Quad //Level Quad
$rightQuad = new Quad_BgRaceScore2(); $rightQuad = new Quad_BgRaceScore2();