function onConstruct()
 {
     parent::onConstruct();
     $ui = new Elements\Quad(static::SIZE_X, static::SIZE_Y);
     $ui->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/limited-games-bg.png', true);
     $ui->setAlign('center', 'center');
     $ui->setPosZ(-0.1);
     $this->addComponent($ui);
     $ui = new Elements\Label(static::SIZE_X - 40, 10);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextPrefix('$i$o');
     $ui->setOpacity(0.8);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setPosition(0, 5);
     $ui->setTextid('demoReady');
     $ui->enableAutonewline();
     $this->frameContent->addComponent($ui);
     $ui = new Elements\Spacer(0, 10);
     $this->frameContent->addComponent($ui);
     $ui = new Elements\Label(static::SIZE_X - 40, 10);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextPrefix('$i$o');
     $ui->setOpacity(0.5);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setPosition(0, 5);
     $ui->setTextid('demoReady2');
     $ui->enableAutonewline();
     $ui->setTextEmboss();
     $this->frameContent->addComponent($ui);
     $this->yesButton = new \ManiaLivePlugins\MatchMakingLobby\Controls\ButtonImage(50, 10);
     $this->yesButton->setPosition(-30, -5);
     $this->yesButton->bg->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-GREEN-OFF.png', true);
     $this->yesButton->bg->setImageFocus('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-GREEN-ON.png', true);
     $this->yesButton->text->setTextid('ok');
     $this->addComponent($this->yesButton);
     $this->noButton = new \ManiaLivePlugins\MatchMakingLobby\Controls\ButtonImage(50, 10);
     $this->noButton->setPosition(30, -5);
     $this->noButton->bg->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-RED-OFF.png', true);
     $this->noButton->bg->setImageFocus('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-RED-ON.png', true);
     $this->noButton->text->setTextid('cancel');
     $this->addComponent($this->noButton);
     $this->frameContent->addComponent(new Elements\Spacer(0, 14));
     $ui = new Elements\Label(static::SIZE_X - 10, 10);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setTextid('demoReadyTips');
     $ui->setTextPrefix('$i');
     $ui->setOpacity(0.6);
     $ui->enableAutonewline();
     $this->frameContent->addComponent($ui);
 }
 function onConstruct()
 {
     parent::onConstruct();
     $ui = new Elements\Quad(static::SIZE_X, static::SIZE_Y);
     $ui->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/limited-games-bg.png', true);
     $ui->setAlign('center', 'center');
     $ui->setPosZ(-0.1);
     $this->addComponent($ui);
     $ui = new Elements\Label(static::SIZE_X - 10, 15);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextPrefix('$i$o');
     $ui->setOpacity(0.8);
     $ui->setPosition(0, 5);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setTextid('noPlanet');
     $ui->enableAutonewline();
     $this->frameContent->addComponent($ui);
     $this->yesButton = new \ManiaLivePlugins\MatchMakingLobby\Controls\ButtonImage(100, 10);
     $this->yesButton->setPosition(0, 6);
     $this->yesButton->bg->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-GREEN-OFF.png', true);
     $this->yesButton->bg->setImageFocus('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-GREEN-ON.png', true);
     $this->yesButton->bg->setUrl('http://fr-maniaplanet.gamesplanet.com/eshop/maniaplanet/shootmania-storm-3202.html?affiliate=EliteLobby');
     $this->yesButton->text->setTextid('noPlanetBuy');
     $this->addComponent($this->yesButton);
     $this->noButton = new \ManiaLivePlugins\MatchMakingLobby\Controls\ButtonImage(100, 10);
     $this->noButton->setPosition(0, -6);
     $this->noButton->bg->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-RED-OFF.png', true);
     $this->noButton->bg->setImageFocus('http://static.maniaplanet.com/manialinks/lobbies/2013-07-26/large-button-RED-ON.png', true);
     $this->noButton->bg->setAction('maniaplanet:quitserver');
     $this->noButton->text->setTextid('noPlanetBye');
     $this->addComponent($this->noButton);
     $this->frameContent->addComponent(new Elements\Spacer(0, 25));
     $ui = new Elements\Label(static::SIZE_X - 10);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setTextid('noPlanetThanks');
     $ui->setOpacity(0.8);
     $ui->setTextPrefix('$i$o');
     $ui->enableAutonewline();
     $this->frameContent->addComponent($ui);
     $ui = new Elements\Label(static::SIZE_X - 10, 15);
     $ui->setStyle(Elements\Label::TextRaceMessage);
     $ui->setTextSize(2);
     $ui->setAlign('center', 'top');
     $ui->setTextid('noPlanetTips');
     $ui->setTextPrefix('$i');
     $ui->setOpacity(0.6);
     $ui->enableAutonewline();
     $this->frameContent->addComponent($ui);
 }