host mx icon on maniacontrol homepage
This commit is contained in:
parent
ec018f97f5
commit
05f487aafa
@ -65,6 +65,7 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
* Private Properties
|
* Private Properties
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @var maniaControl $maniaControl
|
* @var maniaControl $maniaControl
|
||||||
*/
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
@ -243,8 +244,7 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
if (isset($map->mx->pageurl)) {
|
if (isset($map->mx->pageurl)) {
|
||||||
$quad = new Quad();
|
$quad = new Quad();
|
||||||
$frame->add($quad);
|
$frame->add($quad);
|
||||||
$quad->setImage("http://wiki.maniaplanet.com/pool/images/b/bf/ManiaExchange_logo.png"); // TODO include image into
|
$quad->setImage("http://images.maniacontrol.com/icons/ManiaExchange.png");
|
||||||
// maniacontrol
|
|
||||||
$quad->setPosition(-$width / 2 + 4, -1.5, -0.5);
|
$quad->setPosition(-$width / 2 + 4, -1.5, -0.5);
|
||||||
$quad->setSize(4, 4);
|
$quad->setSize(4, 4);
|
||||||
$quad->setHAlign(Control::CENTER);
|
$quad->setHAlign(Control::CENTER);
|
||||||
@ -339,17 +339,18 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$playerCount = 0;
|
$playerCount = 0;
|
||||||
$spectatorCount = 0;
|
$spectatorCount = 0;
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @var Player $player
|
* @var Player $player
|
||||||
*/
|
*/
|
||||||
foreach ($players as $player) {
|
foreach ($players as $player) {
|
||||||
if ($player->isSpectator) {
|
if ($player->isSpectator) {
|
||||||
$spectatorCount++;
|
$spectatorCount++;
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$playerCount++;
|
$playerCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$label = new Label_Text();
|
$label = new Label_Text();
|
||||||
$frame->add($label);
|
$frame->add($label);
|
||||||
$label->setPosition(0, 1.5, 0.2);
|
$label->setPosition(0, 1.5, 0.2);
|
||||||
@ -476,6 +477,7 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$queuedMap = $this->maniaControl->mapManager->mapQueue->getNextMap();
|
$queuedMap = $this->maniaControl->mapManager->mapQueue->getNextMap();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
* @var Player $requester
|
* @var Player $requester
|
||||||
*/
|
*/
|
||||||
$requester = null;
|
$requester = null;
|
||||||
@ -485,7 +487,8 @@ class WidgetPlugin implements CallbackListener, Plugin {
|
|||||||
$map = $this->maniaControl->client->getResponse();
|
$map = $this->maniaControl->client->getResponse();
|
||||||
$name = $map['Name'];
|
$name = $map['Name'];
|
||||||
$author = $map['Author'];
|
$author = $map['Author'];
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
$requester = $queuedMap[0];
|
$requester = $queuedMap[0];
|
||||||
$map = $queuedMap[1];
|
$map = $queuedMap[1];
|
||||||
$name = $map->name;
|
$name = $map->name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user