protected function onConstruct()
 {
     $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE);
     $this->background = new Elements\Quad(190, 190);
     $this->background->setAlign('center', 'center');
     $this->background->setImage('file://Media/Manialinks/Common/Lobbies/versus-bg.dds', true);
     $this->addComponent($this->background);
     $this->label = new Elements\Label(200, 20);
     $this->label->setPosY(40);
     $this->label->setAlign('center', 'center2');
     $this->label->setStyle(\ManiaLib\Gui\Elements\Label::TextRaceMessageBig);
     $this->label->setTextid('text');
     $this->label->setId('info-label');
     $this->label->setTextSize(2);
     $this->addComponent($this->label);
     $this->transferLabel = clone $this->label;
     $this->transferLabel->setPosY(40);
     $this->transferLabel->setTextColor(null);
     $this->transferLabel->setTextid('transferText');
     $this->transferLabel->setId('transfer-label');
     $this->addComponent($this->transferLabel);
     $this->cancelLabel = new Elements\Label(200);
     $this->cancelLabel->setPosY(-47);
     $this->cancelLabel->setAlign('center', 'center2');
     $this->cancelLabel->setStyle(\ManiaLib\Gui\Elements\Label::TextRaceMessageBig);
     $this->cancelLabel->setTextColor('AAA');
     $this->cancelLabel->setTextid('cancel');
     $this->cancelLabel->setId('cancel-label');
     $this->cancelLabel->setTextSize(7);
     $this->addComponent($this->cancelLabel);
     $layout = new \ManiaLib\Gui\Layouts\Column();
     $layout->setMarginHeight(1);
     $this->team1 = new \ManiaLive\Gui\Controls\Frame();
     $this->team1->setLayout($layout);
     $this->team1->setPosition(-45);
     $this->addComponent($this->team1);
     $this->team2 = clone $this->team1;
     $this->team2->setPosX(45);
     $this->addComponent($this->team2);
 }
 protected function onConstruct()
 {
     $this->background = new Elements\Quad(320, 142);
     $this->background->setAlign('center', 'center');
     $this->background->setImage('http://static.maniaplanet.com/manialinks/lobbies/background.png', true);
     $this->addComponent($this->background);
     $this->label = new Elements\Label(200, 20);
     $this->label->setPosY(47);
     $this->label->setAlign('center', 'center2');
     $this->label->setStyle(\ManiaLib\Gui\Elements\Label::TextRaceMessageBig);
     $this->label->setTextid('text');
     $this->label->setId('info-label');
     $this->label->setTextSize(7);
     $this->addComponent($this->label);
     $this->transferLabel = clone $this->label;
     $this->transferLabel->setPosY(47);
     $this->transferLabel->setTextColor(null);
     $this->transferLabel->setTextid('transferText');
     $this->transferLabel->setId('transfer-label');
     $this->addComponent($this->transferLabel);
     $this->cancelLabel = new Elements\Label(200);
     $this->cancelLabel->setPosY(-47);
     $this->cancelLabel->setAlign('center', 'center2');
     $this->cancelLabel->setStyle(\ManiaLib\Gui\Elements\Label::TextRaceMessageBig);
     $this->cancelLabel->setTextColor('AAA');
     $this->cancelLabel->setTextid('cancel');
     $this->cancelLabel->setId('cancel-label');
     $this->cancelLabel->setTextSize(7);
     $this->addComponent($this->cancelLabel);
     $layout = new \ManiaLib\Gui\Layouts\Column();
     $layout->setMarginHeight(2);
     $this->players = new \ManiaLive\Gui\Controls\Frame();
     $this->players->setLayout($layout);
     $this->players->setPosition(0, 33);
     $this->addComponent($this->players);
 }