Example #1
0
 function __construct()
 {
     $this->entry = new Entry();
     $this->entry->setId('datepicker-result');
     $this->entry->setScriptEvents();
     $this->entry->setVAlign('center');
     $this->entry->setPosition(0, -4);
     $this->button = new Button();
     $this->button->setId('datepicker-button');
     $this->button->setScriptEvents();
     $this->button->setText('Select');
     $this->button->setPosition(25);
 }
 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 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, -4.5);
     $this->title->setStyle(Elements\Label::TextRaceMessage);
     $this->title->setOpacity(0.9);
     $this->title->setTextid('title');
     $this->addComponent($this->title);
     $this->alliesHelp = new Elements\Label(self::SIZE_X - 6);
     $this->alliesHelp->setAlign('center', 'bottom');
     $this->alliesHelp->setPosition(self::SIZE_X / 2, -13);
     $this->alliesHelp->setStyle(Elements\Label::TextTips);
     $this->alliesHelp->setTextid('help');
     $this->alliesHelp->setTextSize(1);
     $this->alliesHelp->setOpacity(0.75);
     $this->addComponent($this->alliesHelp);
     $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);
     $ui = new Elements\Entry();
     $ui->setName('allyLogin');
     $ui->setId('allyLogin_entry');
     $ui->setHidden(true);
     $this->addComponent($ui);
     $this->dictionnary['title'] = 'players';
     $this->dictionnary['help'] = 'alliesHelp';
 }