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