Exemple #1
0
 function __construct($sizeX, $sizeY)
 {
     parent::__construct($sizeX, $sizeY);
     $this->setLayout(new \ManiaLib\Gui\Layouts\Spacer($sizeX, $sizeY));
     $this->halign = 'left';
     $this->valign = 'top';
 }
 function __construct($iconSize = 8)
 {
     parent::__construct();
     $this->arrowNext = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->arrowPrev = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->arrowFastNext = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->arrowFastPrev = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->arrowLast = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->arrowFirst = new \ManiaLib\Gui\Elements\Icons64x64_1($iconSize);
     $this->text = new \ManiaLib\Gui\Elements\Label(14);
     $this->textBg = new \ManiaLib\Gui\Elements\Bgs1(16, $iconSize - 2);
     $this->showLast = false;
     $this->showFastNext = false;
     $this->showText = true;
     $this->arrowNext->setSubStyle($this->arrowNoneStyle);
     $this->arrowPrev->setSubStyle($this->arrowNoneStyle);
     $this->arrowFastNext->setSubStyle($this->arrowNoneStyle);
     $this->arrowFastPrev->setSubStyle($this->arrowNoneStyle);
     $this->arrowLast->setSubStyle($this->arrowNoneStyle);
     $this->arrowFirst->setSubStyle($this->arrowNoneStyle);
 }