protected function onConstruct() { $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE); $this->setSize(self::SIZE_X, self::SIZE_Y); $this->setAlign('right', 'center'); //162 $this->setPosition(163, 0, 15); $this->bg = new \ManiaLib\Gui\Elements\Quad(self::SIZE_X, self::SIZE_Y); $this->bg->setImage('file://Media/Manialinks/Common/Lobbies/side-frame.png', true); $this->addComponent($this->bg); $this->title = new Elements\Label(self::SIZE_X); $this->title->setAlign('center'); $this->title->setPosition(self::SIZE_X / 2, -6); $this->title->setStyle(Elements\Label::TextRaceMessage); $this->title->setOpacity(0.9); $this->title->setTextid('title'); $this->addComponent($this->title); $this->frame = new \ManiaLive\Gui\Controls\Frame(2.2, -15, new \ManiaLib\Gui\Layouts\Column()); $this->frame->getLayout()->setMarginHeight(0.5); $this->addComponent($this->frame); // $this->pager = new \ManiaLive\Gui\Controls\Pager(); // $this->pager->setPosition(2.2,-15); // $this->pager->setSize(40, 110); // $this->pager->pageNavigatorFrame->setPosition(5,5); // $this->pager->label->setTextColor('fff'); // $this->addComponent($this->pager); }