예제 #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);
 }
예제 #2
0
파일: Panel.php 프로젝트: kremsy/manialib
 function preFilter()
 {
     $this->panelBg->setStyle($this->getStyle());
     $this->panelBg->setSubStyle($this->getSubStyle());
     $this->setStyle(null);
     $this->setSubStyle(null);
     $this->titleBg->setSizeX($this->sizeX);
     $this->title->setSizeX($this->sizeX - 6);
     $this->panelBg->setSize($this->sizeX - 4, $this->sizeY - $this->titleBg->getSizeY() - 4.5);
     $this->panelBg->setPosY(-$this->titleBg->getSizeY() - 4.5);
 }
예제 #3
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);
 }