resolved coding todo
This commit is contained in:
parent
7016332b0d
commit
ec018f97f5
@ -165,32 +165,33 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$playerFrame->setY($y);
|
$playerFrame->setY($y);
|
||||||
|
|
||||||
// Team Emblem
|
// Team Emblem
|
||||||
if ($listPlayer->teamId >= 0) { // Player is in a Team
|
if ($listPlayer->teamId >= 0) {
|
||||||
$redQuad = new Quad_Emblems(); // TODO rename quads
|
// Player is in a Team
|
||||||
$playerFrame->add($redQuad);
|
$teamQuad = new Quad_Emblems();
|
||||||
$redQuad->setX($x + 10);
|
$playerFrame->add($teamQuad);
|
||||||
$redQuad->setZ(0.1);
|
$teamQuad->setX($x + 10);
|
||||||
$redQuad->setSize(3.8, 3.8);
|
$teamQuad->setZ(0.1);
|
||||||
|
$teamQuad->setSize(3.8, 3.8);
|
||||||
|
|
||||||
switch ($listPlayer->teamId) {
|
switch ($listPlayer->teamId) {
|
||||||
case 0:
|
case 0:
|
||||||
$redQuad->setSubStyle($redQuad::SUBSTYLE_1);
|
$teamQuad->setSubStyle($redQuad::SUBSTYLE_1);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
$redQuad->setSubStyle($redQuad::SUBSTYLE_2);
|
$teamQuad->setSubStyle($redQuad::SUBSTYLE_2);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($listPlayer->isSpectator) { // Player is in Spectator Mode
|
else if ($listPlayer->isSpectator) {
|
||||||
$neutralQuad = new Quad_BgRaceScore2();
|
// Player is in Spectator Mode
|
||||||
$playerFrame->add($neutralQuad);
|
$specQuad = new Quad_BgRaceScore2();
|
||||||
$neutralQuad->setX($x + 10);
|
$playerFrame->add($specQuad);
|
||||||
$neutralQuad->setZ(0.1);
|
$specQuad->setX($x + 10);
|
||||||
$neutralQuad->setSubStyle($neutralQuad::SUBSTYLE_Spectator);
|
$specQuad->setZ(0.1);
|
||||||
$neutralQuad->setSize(3.8, 3.8);
|
$specQuad->setSubStyle($neutralQuad::SUBSTYLE_Spectator);
|
||||||
|
$specQuad->setSize(3.8, 3.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display country quad only on normal players
|
|
||||||
if (!$listPlayer->isFakePlayer()) {
|
if (!$listPlayer->isFakePlayer()) {
|
||||||
// Nation Quad
|
// Nation Quad
|
||||||
$countryQuad = new Quad();
|
$countryQuad = new Quad();
|
||||||
@ -276,7 +277,6 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$rightLabel->setTextColor("fff");
|
$rightLabel->setTextColor("fff");
|
||||||
|
|
||||||
if ($this->maniaControl->authenticationManager->checkRight($player, AuthenticationManager::AUTH_LEVEL_OPERATOR)) {
|
if ($this->maniaControl->authenticationManager->checkRight($player, AuthenticationManager::AUTH_LEVEL_OPERATOR)) {
|
||||||
|
|
||||||
// Further Player actions Quad
|
// Further Player actions Quad
|
||||||
$playerQuad = new Quad_Icons64x64_1();
|
$playerQuad = new Quad_Icons64x64_1();
|
||||||
$playerFrame->add($playerQuad);
|
$playerFrame->add($playerQuad);
|
||||||
|
Loading…
Reference in New Issue
Block a user