function onConstruct() { $this->background = new Elements\Quad(160, 90); $this->background->setAlign('center', 'center'); $this->background->setBgcolor('000a'); $this->addComponent($this->background); $this->button = new Elements\Button(); $this->button->setHalign('center'); $this->button->setPosY(-47); $this->button->setText('Close'); $this->addComponent($this->button); }
protected function onConstruct() { $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE); $this->setSize(self::SIZE_X, self::SIZE_Y); $this->setRelativeAlign('center', 'top'); $this->setPosition(0, 84); $this->bg = new Elements\Quad(self::SIZE_X, self::SIZE_Y); $this->bg->setImage('file://Media/Manialinks/Common/Lobbies/header.png'); $this->bg->setAlign('center'); $this->addComponent($this->bg); $this->serverNameLabel = new Elements\Label(self::SIZE_X - 7); $this->serverNameLabel->setStyle(Elements\Label::TextRaceMessage); $this->serverNameLabel->setAlign('center', 'top'); $this->serverNameLabel->setPosition(0, -4); $this->serverNameLabel->setTextSize(3); $this->addComponent($this->serverNameLabel); $this->avgWaitingTimeLabel = new Elements\Label(self::SIZE_X / 3); $this->avgWaitingTimeLabel->setAlign('right', 'center'); $this->avgWaitingTimeLabel->setStyle(Elements\Label::TextRaceMessage); $this->avgWaitingTimeLabel->setPosition(self::SIZE_X / 2 - 5, -16); $this->avgWaitingTimeLabel->setTextId('avgWaiting'); $this->avgWaitingTimeLabel->setTextSize(2); $this->avgWaitingTimeLabel->setOpacity(0.75); $this->addComponent($this->avgWaitingTimeLabel); $this->avgWaitingTimeHelperLabel = new Elements\Label(self::SIZE_X / 2); $this->avgWaitingTimeHelperLabel->setAlign('right', 'top'); $this->avgWaitingTimeHelperLabel->setStyle(Elements\Label::TextRaceMessage); $this->avgWaitingTimeHelperLabel->setPosition($this->avgWaitingTimeLabel->getPosX(), -18); $this->avgWaitingTimeHelperLabel->setTextId('avgWaitingHelper'); $this->avgWaitingTimeHelperLabel->setScale(0.5); $this->avgWaitingTimeHelperLabel->setOpacity(0.5); $this->addComponent($this->avgWaitingTimeHelperLabel); $this->playerCountLabel = new Elements\Label(self::SIZE_X / 3); $this->playerCountLabel->setAlign('left', 'center'); $this->playerCountLabel->setStyle(Elements\Label::TextRaceMessage); $this->playerCountLabel->setPosition(-self::SIZE_X / 2 + 5, -16); $this->playerCountLabel->setOpacity(0.75); $this->playerCountLabel->setTextSize(2); $this->playerCountLabel->setTextid('nPlayers'); $this->addComponent($this->playerCountLabel); $this->playerCountHelperLabel = new Elements\Label(self::SIZE_X / 2); $this->playerCountHelperLabel->setAlign('left', 'top'); $this->playerCountHelperLabel->setStyle(Elements\Label::TextRaceMessage); $this->playerCountHelperLabel->setPosition($this->playerCountLabel->getPosX(), -18); $this->playerCountHelperLabel->setTextId('nPlayersHelper'); $this->playerCountHelperLabel->setScale(0.5); $this->playerCountHelperLabel->setOpacity(0.5); $this->addComponent($this->playerCountHelperLabel); }
public function __construct($sizeX, $sizeY) { $this->setSize($sizeX, $sizeY); $this->frame = new \ManiaLive\Gui\Controls\Frame(); $this->bg = new Elements\Quad($sizeX, $sizeY); $this->bg->setAlign('center', 'center'); $this->frame->addComponent($this->bg); $this->text = new Elements\Label($sizeX, $sizeY); $this->text->setTextSize(1); $this->text->setStyle(Elements\Label::TextRaceMessageBig); $this->text->setOpacity(0.65); $this->text->setAlign('center', 'center2'); $this->frame->addComponent($this->text); $this->addComponent($this->frame); }
function onConstruct() { $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE); $ui = new Elements\Bgs1(320, 180); $ui->setAlign('center', 'center'); $ui->setSubStyle(Elements\Bgs1::BgDialogBlur); $this->addComponent($ui); $ui = new Elements\Bgs1(163, 63); $ui->setAlign('center', 'center'); $ui->setSubStyle(Elements\Bgs1::BgShadow); $this->addComponent($ui); $ui = new Elements\Quad(160, 60); $ui->setAlign('center', 'center'); $ui->setBgcolor('eeef'); $this->addComponent($ui); $this->questionLabel = new Elements\Label(160); $this->questionLabel->setAlign('center', 'center2'); $this->questionLabel->setPosY(5); $this->questionLabel->enableAutonewline(); $this->questionLabel->setStyle(Elements\Label::TextInfoMedium); $this->addComponent($this->questionLabel); $this->yesButton = new Elements\Button(); $this->yesButton->setAlign('left', 'bottom'); $this->yesButton->setPosition(-45, -25); $this->yesButton->setTextid('yes'); $this->addComponent($this->yesButton); $this->noButton = new Elements\Button(); $this->noButton->setAlign('right', 'bottom'); $this->noButton->setPosition(45, -25); $this->noButton->setTextid('no'); $this->addComponent($this->noButton); }
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 __construct($nickname) { $this->setSize(46, 5); $this->bg = new Elements\Bgs1InRace($this->sizeX, $this->sizeY); $this->bg->setBgcolor('3338'); $this->bg->setBgcolorFocus('CCC8'); $this->bg->setScriptEvents(); $this->addComponent($this->bg); $this->icon = new Elements\Quad(2, $this->sizeY); $this->icon->setBgcolor('F00'); $this->icon->setAlign('left', 'center'); $this->addComponent($this->icon); $this->label = new Elements\Label(34); $this->label->setValign('center2'); $this->label->setText($nickname); $this->label->setTextColor('fff'); $this->label->setTextSize(1); $this->addComponent($this->label); $this->hiddenLabel = new Elements\Label(); $this->hiddenLabel->setHidden(true); $this->addComponent($this->hiddenLabel); $this->echelonFrame = new \ManiaLive\Gui\Controls\Frame(73.5, 1); $this->echelonFrame->setScale(0.29); $this->addComponent($this->echelonFrame); $this->echelonQuad = new Elements\Quad(14.1551, 17.6938); $this->echelonQuad->setPosition(-1.25, -1.25); $this->echelonQuad->setAlign('center', 'top'); $this->echelonFrame->addComponent($this->echelonQuad); $ui = new Elements\Label(15); $ui->setAlign('center', 'top'); $ui->setStyle(Elements\Label::TextRaceMessage); $ui->setPosition(-1, -4.95625); $ui->setTextSize(0.5); $ui->setText('Echelon'); $this->echelonFrame->addComponent($ui); $this->echelonLabel = new Elements\Label(10, 10); $this->echelonLabel->setAlign('center', 'center'); $this->echelonLabel->setPosition(-1, -11.895); $this->echelonLabel->setStyle(Elements\Label::TextRaceMessageBig); $this->echelonFrame->addComponent($this->echelonLabel); $this->countryFlag = new Elements\Quad(5, 5); $this->countryFlag->setAlign('left', 'center'); $this->addComponent($this->countryFlag); $this->nickname = $nickname; $this->state = static::STATE_NOT_READY; }
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 onConstruct() { $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE); $this->dico = array('playing' => 'playing', 'rules' => 'rules', 'ready' => 'ready', 'invite' => 'invite', 'readyButton' => 'readyButton', 'players' => 'players', 'allies' => 'party', 'avgWaiting' => 'waitingScreenWaitingLabel', 'rules' => 'rules', 'back' => 'quit'); // $ui = new Elements\Quad(320, 20); // $ui->setAlign('center', 'bottom'); // $ui->setBgcolor('000'); // $ui->setPosition(0,-90); // $this->addComponent($ui); $ui = new Elements\Quad(self::SIZE_X, self::SIZE_Y); $ui->setAlign('center', 'center'); $ui->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-08-23/main-bg.png', true); $this->addComponent($ui); $ui = new Elements\Label(self::SIZE_X); $ui->setAlign('center', 'top'); $ui->setPosition(0, 38); $ui->setTextColor('fff'); $ui->setScale(0.9); $ui->setTextSize(2.5); $ui->enableAutonewline(); $ui->setTextid('text'); $ui->setOpacity(0.9); $this->addComponent($ui); $frame = new Frame(); $frame->setScale(0.6); $frame->setPosition(0, 20); $this->addComponent($frame); $this->emptySlot = new \ManiaLivePlugins\MatchMakingLobby\Controls\EmptySlot(); $this->emptySlot->setSize(80, 20); $this->emptySlot->setAlign('center'); $this->dico[$this->emptySlot->getLabelTextid()] = 'picked'; $this->playerListFrame = new \ManiaLive\Gui\Controls\Frame(0, 5, new \ManiaLib\Gui\Layouts\Column()); $this->playerListFrame->getLayout()->setMarginHeight(3); $frame->addComponent($this->playerListFrame); //quit button start $this->quitButtonFrame = new Frame(); $this->quitButtonFrame->setSize(35, 10); $this->quitButtonFrame->setPosition(-47, -36); $this->addComponent($this->quitButtonFrame); $ui = new Elements\Quad($this->quitButtonFrame->getSizeX(), 10); $ui->setAlign('center', 'center'); $ui->setImage('file://Media/Manialinks/Common/Lobbies/small-button-RED.dds', true); $ui->setImageFocus('file://Media/Manialinks/Common/Lobbies/small-button-RED-ON.dds', true); $ui->setAction('maniaplanet:quitserver'); $this->quitButtonFrame->addComponent($ui); $ui = new Elements\Label($this->quitButtonFrame->getSizeX()); $ui->setAlign('center', 'center2'); $ui->setStyle(Elements\Label::TextRaceMessageBig); $ui->setTextid('back'); $ui->setOpacity(0.8); $ui->setTextSize(2); $ui->setScale(0.95); $this->quitButtonFrame->addComponent($ui); //quit button end //learn button start if (static::$rulesManialink) { $this->learnButtonFrame = new Frame(); $this->learnButtonFrame->setSize(35, 10); $this->learnButtonFrame->setPosition(0, -25); $this->addComponent($this->learnButtonFrame); $ui = new Elements\Quad($this->learnButtonFrame->getSizeX(), 10); $ui->setAlign('center', 'center'); // $ui->setImage('file://Media/Manialinks/Common/Lobbies/small-button-YELLOW.dds', true); // $ui->setImageFocus('file://Media/Manialinks/Common/Lobbies/small-button-YELLOW-ON.dds', true); $ui->setImage('http://static.maniaplanet.com/manialinks/lobbies/2013-08-23/small-button-YELLOW.dds', true); $ui->setImageFocus('http://static.maniaplanet.com/manialinks/lobbies/2013-08-23/small-button-YELLOW-ON.dds', true); $ui->setManialink(static::$rulesManialink); $this->learnButtonFrame->addComponent($ui); $ui = new Elements\Label($this->learnButtonFrame->getSizeX()); $ui->setAlign('center', 'center2'); $ui->setStyle(Elements\Label::TextRaceMessageBig); $ui->setTextid('rules'); $ui->setOpacity(0.8); $ui->setTextSize(2); $ui->setScale(0.95); $this->learnButtonFrame->addComponent($ui); } //learn button end //ready button start $this->readyButtonFrame = new Frame(); $this->readyButtonFrame->setSize(48, 12); $this->readyButtonFrame->setPosition(0, -36); $this->addComponent($this->readyButtonFrame); $this->readyButton = new Elements\Quad(48, $this->readyButtonFrame->getSizeY()); $this->readyButton->setAlign('center', 'center'); $this->readyButton->setImage('file://Media/Manialinks/Common/Lobbies/ready-button-GREEN.dds', true); $this->readyButton->setImageFocus('file://Media/Manialinks/Common/Lobbies/ready-button-GREEN-ON.dds', true); $this->readyButtonFrame->addComponent($this->readyButton); $ui = new Elements\Label(48, $this->readyButtonFrame->getSizeY()); $ui->setAlign('center', 'center2'); $ui->setStyle(Elements\Label::TextRaceMessageBig); $ui->setTextid('readyButton'); $ui->setOpacity(0.8); $ui->setTextSize(2.5); $this->readyButtonFrame->addComponent($ui); //ready button end //Invite button start $this->inviteButtonFrame = new Frame(); $this->inviteButtonFrame->setSize(35, 10); $this->inviteButtonFrame->setPosition(47, -36); $this->addComponent($this->inviteButtonFrame); $ui = new Elements\Quad($this->inviteButtonFrame->getSizeX(), 10); $ui->setAlign('center', 'center'); $ui->setImage('file://Media/Manialinks/Common/Lobbies/small-button-BLUE.dds', true); $ui->setImageFocus('file://Media/Manialinks/Common/Lobbies/small-button-BLUE-ON.dds', true); $ui->setManialink(static::$inviteManialink); $this->inviteButtonFrame->addComponent($ui); $ui = new Elements\Label($this->inviteButtonFrame->getSizeX()); $ui->setAlign('center', 'center2'); $ui->setStyle(Elements\Label::TextRaceMessageBig); $ui->setTextid('invite'); $ui->setOpacity(0.8); $ui->setTextSize(2); $ui->setScale(0.95); $this->inviteButtonFrame->addComponent($ui); //Invite button end $this->logo = new Elements\Quad(80, 20); $this->logo->setAlign('center', 'bottom'); $this->logo->setPosY(-90); }
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); }
public function display() { Manialink::load(); Manialink::appendXML(Dictionary::getInstance()->getManiaLink($this->displayedText)); Manialink::appendScript(<<<MANIASCRIPT #RequireContext CMlScript #Include "MathLib" as MathLib #Include "TextLib" as TextLib main() { \tdeclare Boolean countdown = True; \tdeclare Integer countdownTime = CurrentTime; \tdeclare Integer countdownTimeLeft = 10; \tdeclare CMlFrame frame <=> (Page.MainFrame.GetFirstChild("block-quit") as CMlFrame); \tdeclare CMlLabel label <=> (Page.MainFrame.GetFirstChild("countdown-label") as CMlLabel); \tlabel.SetText(TextLib::ToText(countdownTimeLeft)); \twhile(True) \t{ \t\tif(countdown && countdownTimeLeft >= 0 && CurrentTime - countdownTime > 1000) \t\t{ \t\t\tcountdownTime = CurrentTime; \t\t\tcountdownTimeLeft = countdownTimeLeft - 1; \t\t\tlabel.SetText(TextLib::ToText(countdownTimeLeft)); \t\t} \t\telse if(countdown && countdownTimeLeft <= 0) \t\t{ \t\t\tframe.Hide(); \t\t} \t\tyield; \t} } MANIASCRIPT ); $frame = new \ManiaLib\Gui\Elements\Frame(); $frame->setPosition(0, 5, 0); $label = new Label(170); $label->setAlign('center', 'center2'); $label->setStyle(Label::TextRaceMessageBig); $label->setTextSize(5); $label->setTextColor('f00'); $label->setTextId('text'); $frame->add($label); $iconBlink = new Icons128x128_Blink(15); $iconBlink->setAlign('right', 'center'); $iconBlink->setPosition(-87, 0); $iconBlink->setSubStyle(Icons128x128_Blink::Hard); $frame->add($iconBlink); $iconBlink = new Icons128x128_Blink(15); $iconBlink->setAlign('left', 'center'); $iconBlink->setPosition(87, 0); $iconBlink->setSubStyle(Icons128x128_Blink::Hard); $frame->add($iconBlink); $frame->save(); $frame = new \ManiaLib\Gui\Elements\Frame(); $frame->setPosition(0, -6.5, 10); $frame->setScriptEvents(); $frame->setId('block-quit'); $bg = new Bgs1(180, 45); $bg->setSubStyle(Bgs1::BgDialogBlur); $bg->setAlign('center'); $bg->setScriptEvents(); $bg->setId('background'); $bg->setManialink(''); $frame->add($bg); $bg = new Quad(180, 45); $bg->setBgcolor('0008'); $bg->setAlign('center'); $bg->setScriptEvents(); $frame->add($bg); $ui = new Label(120); $ui->setAlign('center'); $ui->setPosition(0, -6, 0.1); $ui->setStyle(Label::TextRaceMessageBig); $ui->setTextSize(4); $ui->setTextid('available'); $frame->add($ui); $ui = new Label(20); $ui->setId('countdown-label'); $ui->setAlign('center'); $ui->setPosition(0, -15, 0.1); $ui->setStyle(Label::TextRaceMessageBig); $ui->setTextSize(5); $ui->setText('10'); $frame->add($ui); $frame->save(); return Manialink::render(true); }
*/ use ManiaLib\Gui\Manialink; use ManiaLib\Gui\Cards\Panel; use ManiaLib\Gui\Elements\Label; use ManiaLib\Gui\Elements\Quad; use ManiaLib\Gui\Elements\Icons128x128_1; use ManiaLib\Gui\Elements\Icons64x64_1; use ManiaLib\Gui\Elements\UIConstructionSimple_Buttons; Manialink::load(); $ui = new \ManiaLib\Gui\Elements\IncludeManialink(); $ui->setUrl('manialib.xml', false); $ui->save(); \ManiaLib\ManiaScript\Main::begin(); $background = maniapress_get_option('theme-background'); $ui = new Quad(320, 180); $ui->setAlign('center', 'center'); if ($background) { if (ctype_xdigit($background) && strlen($background) < 4) { $ui->setBgcolor($background); } else { $ui->setImage($background, true); } } else { $ui->setImage('bg.jpg'); } $ui->save(); $ui = new \ManiaLib\Gui\Elements\Bgs1InRace(202, 200); $ui->setPosition(0, 0, 0.09); $ui->setAlign('center', 'center'); $ui->setSubStyle(\ManiaLib\Gui\Elements\Bgs1InRace::BgTitleShadow); $ui->save();