Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct(70, 180);
     $this->setSubStyle(Bgs1::BgWindow1);
     $this->setPosition(-150, 90, 0.1);
     $this->titleBg = new Quad(70, 70);
     $this->titleBg->setImage(Config::getInstance()->titleBgURL, true);
     $this->addCardElement($this->titleBg);
     $this->logo = new Icons128x128_1(16);
     $this->logo->setPosition(4, -38, 0.1);
     $this->logo->setSubStyle(Icons128x128_1::Vehicles);
     $this->addCardElement($this->logo);
     $this->title = new Label(46);
     $this->title->setPosition(22, -41, 0.1);
     $this->title->setStyle(Label::TextTitle1);
     $this->title->setScriptEvents();
     $this->addCardElement($this->title);
     $this->subTitle = new Label(46);
     $this->subTitle->setPosition(22, -47.75, 0.1);
     $this->subTitle->setStyle(Label::TextSubTitle1);
     $this->addCardElement($this->subTitle);
     $this->quitButton = new Button();
     $this->quitButton->setPosition(-1, -163.5, 0.1);
     $this->quitButton->text->setText('Back');
     $this->quitButton->text->setStyle(Label::TextButtonNavBack);
     $this->quitButton->icon->setPosition(-8.5, -0.5, 0.1);
     $this->quitButton->icon->setStyle(Quad::Icons128x128_1);
     $this->quitButton->icon->setSubStyle(Icons128x128_1::BackFocusable);
     $this->quitButton->icon->setSize(11, 11);
 }
Exemplo n.º 2
0
 function __construct($sizeX = 70, $sizeY = 0)
 {
     parent::__construct($sizeX, $sizeY);
     $this->setSubStyle(Bgs1::BgWindow2);
     $this->cardElementsPosX = 3;
     $this->cardElementsPosY = -3;
     $this->cardElementsLayout = new Column();
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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);
 }
Exemplo n.º 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);
 }