예제 #1
0
 function __construct($sizeX = 90, $sizeY = 8)
 {
     parent::__construct($sizeX, $sizeY);
     $this->setSubStyle(Bgs1::BgCardChallenge);
     $this->name = new Label(85);
     $this->name->setValign('center2');
     $this->name->setPosition(5, -4, 0.1);
     $this->addCardElement($this->name);
     $this->deleteIcon = new Icons64x64_1();
     $this->deleteIcon->setSubStyle(Icons64x64_1::Close);
     $this->deleteIcon->setAlign('right', 'center');
     $this->deleteIcon->setPosition($sizeX - 3, -$sizeY / 2);
     $this->addCardElement($this->deleteIcon);
 }
예제 #2
0
 function __construct($sizeX = 69, $sizeY = 8.5)
 {
     parent::__construct($sizeX, $sizeY);
     $this->setSubStyle(\ManiaLib\Gui\Elements\Bgs1::BgEmpty);
     $this->cardElementsValign = 'center2';
     $this->text = new \ManiaLib\Gui\Elements\Label(45);
     $this->text->setSizeY(0);
     $this->text->setValign("center");
     $this->text->setPosition(8);
     $this->text->setStyle(\ManiaLib\Gui\Elements\Label::TextButtonNav);
     $this->addCardElement($this->text);
     $this->icon = new \ManiaLib\Gui\Elements\Icons128x128_1($this->sizeY);
     $this->icon->setValign("center");
     $this->icon->setPosition(55, 0, 0.1);
     $this->addCardElement($this->icon);
 }
예제 #3
0
 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;
 }
예제 #4
0
 function __construct($sizeX = 125, $sizeY = 16)
 {
     parent::__construct($sizeX, $sizeY);
     $this->cardElementsValign = 'center';
     $this->bg = new \ManiaLib\Gui\Elements\Quad($sizeX, 8);
     $this->bg->setValign('center');
     $this->bg->setSubStyle(\ManiaLib\Gui\Elements\Bgs1::BgList);
     $this->addCardElement($this->bg);
     $this->bullet = new \ManiaLib\Gui\Elements\Quad(15, 15);
     $this->bullet->setValign('center');
     $this->bullet->setPosition(0.5, -0.1, 1);
     $this->addCardElement($this->bullet);
     $this->title = new \ManiaLib\Gui\Elements\Label();
     $this->title->setValign('center');
     $this->title->setPosition(10, 0.1, 1);
     $this->title->setStyle(\ManiaLib\Gui\Elements\Label::TextTitle3);
     $this->addCardElement($this->title);
 }
예제 #5
0
 function __construct($sizeX = 200, $sizeY = 15)
 {
     parent::__construct($sizeX, $sizeY);
     $this->setSubStyle('BgCardOnline');
     $this->login = new Label(120);
     $this->login->setValign('bottom');
     $this->login->setPosition(5, -13, 0.1);
     $this->addCardElement($this->login);
     $this->name = new Label(180);
     $this->name->setPosition(5, -2, 0.1);
     $this->addCardElement($this->name);
     $this->remainingTime = new Label(60);
     $this->remainingTime->setHalign('right');
     $this->remainingTime->setValign('bottom');
     $this->remainingTime->setPosition(195, -13, 0.1);
     $this->addCardElement($this->remainingTime);
     $this->renew = new Label(60);
     $this->renew->setHalign('right');
     $this->renew->setPosition(195, -2, 0.1);
     $this->addCardElement($this->renew);
 }
예제 #6
0
 static function displayErrorPage()
 {
     Manialink::load();
     Manialink::beginFrame(-70, 35, 0.1);
     $ui = new Bgs1InRace(143, 63);
     $ui->setSubStyle(Bgs1InRace::Shadow);
     $ui->save();
     $ui = new \ManiaLib\Gui\Elements\Quad(140, 60);
     $ui->setPosition(1.5, -1.5, 0.1);
     $ui->setBgcolor('fffe');
     $ui->save();
     $ui = new Label(110);
     $ui->setPosition(6, -6, 0.2);
     $ui->setStyle(Label::TextButtonMedium);
     $ui->setText('' . 'Please update maniaplanet');
     $ui->save();
     $ui = new Label(131);
     $ui->setPosition(6, -13, 0.2);
     $ui->enableAutonewline();
     $ui->setStyle(Label::TextTips);
     $ui->setText('You cannot display this content because your Maniaplanet ' . 'version is not up-to-date. Please update Maniaplanet to ' . 'the latest version. While it should be automatic, you can ' . 'find help and more information on the Maniaplanet Wiki: ');
     $ui->save();
     $ui = new Label(131);
     $ui->setAlign('center', 'center');
     $ui->setPosition(71.5, -35, 0.2);
     $ui->setStyle(Label::TextChallengeNameMedalNone);
     $ui->setUrl('http://wiki.maniaplanet.com/en/Changelog');
     $ui->setText('wiki.maniaplanet.com/en/Changelog');
     $ui->save();
     $ui = new Label(131);
     $ui->setValign('bottom');
     $ui->setPosition(5, -57, 0.2);
     $ui->enableAutonewline();
     $ui->setStyle(Label::TextTips);
     $ui->setText('Thank you for your understanding,' . "\n" . 'Nadeo Team');
     $ui->save();
     Manialink::endFrame();
     Manialink::render();
 }
 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);
 }
예제 #8
0
 * @see         http://code.google.com/p/maniapress/
 * @copyright   Copyright (c) 2011-2012 NADEO (http://www.nadeo.com)
 * @license     http://www.gnu.org/licenses/lgpl.html LGPL License 3
 * @version     $Revision$:
 * @author      $Author$:
 * @date        $Date$:
 */
use ManiaLib\Gui\Manialink;
use ManiaLib\Gui\Elements\Label;
use ManiaLib\Gui\Elements\Icons64x64_1;
use ManiaLib\ManiaScript\UI;
use ManiaLib\ManiaScript\Action;
use ManiaLib\ManiaScript\Event;
Manialink::beginFrame(-100, -83, 0.2);
$ui = new Label(175);
$ui->setValign('center2');
$ui->setPosition(3, -3.5, 0);
$ui->setScale(0.75);
$ui->setStyle(Label::TextInfoSmall);
$ui->setText(sprintf('$<$000%s$> is proudly powered by $l[http://wordpress.org/]WordPress$l and $l[http://code.google.com/p/maniapress/]ManiaPress$l.', maniapress_get_bloginfo('name')));
$ui->save();
if (maniapress_get_option('manialink')) {
    Manialink::beginFrame(150, 1.5, 0.1);
    $params['url'] = maniapress_get_option('manialink');
    if (maniapress_get_option('manialink-name')) {
        $params['name'] = maniapress_get_option('manialink-name');
    }
    $url = 'http://maniahome.maniaplanet.com/add/?' . http_build_query($params);
    $ui = new \ManiaLib\Gui\Elements\IncludeManialink();
    $ui->setUrl($url);
    $ui->save();