Exemple #1
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);
 }
 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);
 }