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); }
function display() { parent::display(); $config = \ManiaHost\Config::getInstance(); if (static::$showBackground) { $ui = new Quad(320, 180); $ui->setAlign('center', 'center'); $ui->setImage($config->background, true); $ui->setPosZ(-3); $ui->save(); } $ui = new \ManiaLib\Gui\Elements\IncludeManialink(); $ui->setUrl('manialib.xml', false); $ui->save(); Manialink::beginFrame(110, -81, 0.1); $ui = new \ManiaLib\Gui\Elements\IncludeManialink(); $query = array(); $query['url'] = \ManiaLib\Application\Config::getInstance()->manialink; $query['name'] = $config->appName; $ui->setUrl('http://maniahome.maniaplanet.com/add/?' . http_build_query($query, '', '&')); $ui->save(); Manialink::endFrame(); }
function __construct() { $this->setSize(80, 20); $ui = new Elements\Quad(80, 20); $ui->setImage('http://static.maniaplanet.com/manialinks/elite/PlayerCardBg.dds', true); $this->addComponent($ui); $this->icon = new Elements\Icons64x64_1(18.5, 18.5); $this->icon->setBgcolor('F00'); $this->icon->setAlign('left', 'center'); $this->addComponent($this->icon); $this->label = new Elements\Label(38); $this->label->setPosition(22, -2.5); $this->label->setTextSize(3); $this->label->setStyle(Elements\Label::TextRaceMessage); $this->addComponent($this->label); $this->teamLabel = new Elements\Label(25); $this->teamLabel->setPosition(27, -11.5); $this->teamLabel->setValign('center2'); $this->teamLabel->setStyle(Elements\Label::TextRaceMessage); $this->teamLabel->setTextSize(2); $this->teamLabel->setText('$o$09FLorem$z Ipsum Team'); // $this->addComponent($this->teamLabel); $this->teamIcon = new Elements\Quad(4, 4); $this->teamIcon->setValign('center'); $this->teamIcon->setPosition(22, -11.5); $this->teamIcon->setBgcolor('FF0a'); // $this->addComponent($this->teamIcon); $this->rankLabel = new Elements\Label(30); $this->rankLabel->setAlign('left', 'center2'); $this->rankLabel->setPosition(27, -17.5); $this->rankLabel->setText('-'); $this->rankLabel->setStyle(Elements\Label::TextRaceMessage); $this->rankLabel->setTextSize(1); $this->addComponent($this->rankLabel); $this->countryFlag = new Elements\Quad(4, 4); $this->countryFlag->setAlign('left', 'center'); $this->countryFlag->setPosition(22, -17.5); $this->addComponent($this->countryFlag); $frame = new \ManiaLive\Gui\Controls\Frame(72, 0); $frame->setScale(1.13); $frame->setPosZ(0.1); $this->addComponent($frame); $this->echelonQuad = new Elements\Quad(14.1551, 17.6938); $this->echelonQuad->setAlign('center', 'top'); $frame->addComponent($this->echelonQuad); $ui = new Elements\Label(15); $ui->setAlign('center', 'top'); $ui->setStyle(Elements\Label::TextRaceMessage); $ui->setPosition(-0.25, -3.6); $ui->setTextSize(0.5); $ui->setText('Echelon'); $frame->addComponent($ui); $this->echelonLabel = new Elements\Label(10, 10); $this->echelonLabel->setAlign('center', 'center'); $this->echelonLabel->setPosition(-0.25, -10.6); $this->echelonLabel->setStyle(Elements\Label::TextRaceMessageBig); $frame->addComponent($this->echelonLabel); $this->disableQuad = new Elements\Quad(80, 20); $this->disableQuad->setBgcolor('333A'); $this->disableQuad->setVisibility(false); $this->disableQuad->setPosZ(3); $this->addComponent($this->disableQuad); }