changed zoneflag avatar reference
This commit is contained in:
parent
78658f698b
commit
1e66d04649
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user