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); }
/** * Adds a navigation button to the menu */ function addItem($topItem = self::BUTTONS_TOP) { $item = new Button(); $item->setSubStyle(Bgs1::BgEmpty); if ($topItem == self::BUTTONS_TOP) { $this->items[] = $item; } else { $this->bottomItems[] = $item; } $this->lastItem = $item; }