changed zoneflag avatar reference
This commit is contained in:
parent
78658f698b
commit
1e66d04649
@ -69,8 +69,7 @@ class PlayerDetailed {
|
|||||||
//Nation Quad
|
//Nation Quad
|
||||||
$countryQuad = new Quad();
|
$countryQuad = new Quad();
|
||||||
$frame->add($countryQuad);
|
$frame->add($countryQuad);
|
||||||
$countryCode = Formatter::mapCountry($target->getCountry());
|
$countryQuad->setImage("file://ZoneFlags/Login/{$targetLogin}/country");
|
||||||
$countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds");
|
|
||||||
$countryQuad->setPosition(-$this->width / 2 + 10, $y);
|
$countryQuad->setPosition(-$this->width / 2 + 10, $y);
|
||||||
$countryQuad->setSize(5, 5);
|
$countryQuad->setSize(5, 5);
|
||||||
$countryQuad->setZ(-0.1);
|
$countryQuad->setZ(-0.1);
|
||||||
@ -188,7 +187,7 @@ class PlayerDetailed {
|
|||||||
|
|
||||||
$quad = new Quad();
|
$quad = new Quad();
|
||||||
$frame->add($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->setPosition(-$this->width / 2 + 50, -$this->height / 2 + 34);
|
||||||
$quad->setAlign(Control::RIGHT, Control::TOP);
|
$quad->setAlign(Control::RIGHT, Control::TOP);
|
||||||
$quad->setSize(20, 20);
|
$quad->setSize(20, 20);
|
||||||
|
@ -213,8 +213,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener, Timer
|
|||||||
// Nation Quad
|
// Nation Quad
|
||||||
$countryQuad = new Quad();
|
$countryQuad = new Quad();
|
||||||
$playerFrame->add($countryQuad);
|
$playerFrame->add($countryQuad);
|
||||||
$countryCode = Formatter::mapCountry($listPlayer->getCountry());
|
$countryQuad->setImage("file://ZoneFlags/Login/{$listPlayer->login}/country");
|
||||||
$countryQuad->setImage("file://Skins/Avatars/Flags/{$countryCode}.dds");
|
|
||||||
$countryQuad->setX($x + 98);
|
$countryQuad->setX($x + 98);
|
||||||
$countryQuad->setSize(4, 4);
|
$countryQuad->setSize(4, 4);
|
||||||
$countryQuad->setZ(1);
|
$countryQuad->setZ(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user