changed zoneflag avatar reference

This commit is contained in:
kremsy 2014-04-13 11:50:07 +02:00 committed by Steffen Schröder
parent 78658f698b
commit 1e66d04649
2 changed files with 3 additions and 5 deletions

View File

@ -69,8 +69,7 @@ class PlayerDetailed {
//Nation Quad
$countryQuad = new Quad();
$frame->add($countryQuad);
$countryCode = Formatter::mapCountry($target->getCountry());
$countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds");
$countryQuad->setImage("file://ZoneFlags/Login/{$targetLogin}/country");
$countryQuad->setPosition(-$this->width / 2 + 10, $y);
$countryQuad->setSize(5, 5);
$countryQuad->setZ(-0.1);
@ -188,7 +187,7 @@ class PlayerDetailed {
$quad = new Quad();
$frame->add($quad);
$quad->setImage('file://' . $target->avatar);
$quad->setImage('file://Avatars/' . $targetLogin . "/default");
$quad->setPosition(-$this->width / 2 + 50, -$this->height / 2 + 34);
$quad->setAlign(Control::RIGHT, Control::TOP);
$quad->setSize(20, 20);

View File

@ -213,8 +213,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
// Nation Quad
$countryQuad = new Quad();
$playerFrame->add($countryQuad);
$countryCode = Formatter::mapCountry($listPlayer->getCountry());
$countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds");
$countryQuad->setImage("file://ZoneFlags/Login/{$listPlayer->login}/country");
$countryQuad->setX($x + 98);
$countryQuad->setSize(4, 4);
$countryQuad->setZ(1);