function onConstruct() { $this->setLayer(\ManiaLive\Gui\Window::LAYER_CUT_SCENE); $ui = new Elements\Bgs1(320, 180); $ui->setAlign('center', 'center'); $ui->setSubStyle(Elements\Bgs1::BgDialogBlur); $this->addComponent($ui); $ui = new Elements\Bgs1(163, 63); $ui->setAlign('center', 'center'); $ui->setSubStyle(Elements\Bgs1::BgShadow); $this->addComponent($ui); $ui = new Elements\Quad(160, 60); $ui->setAlign('center', 'center'); $ui->setBgcolor('eeef'); $this->addComponent($ui); $this->questionLabel = new Elements\Label(160); $this->questionLabel->setAlign('center', 'center2'); $this->questionLabel->setPosY(5); $this->questionLabel->enableAutonewline(); $this->questionLabel->setStyle(Elements\Label::TextInfoMedium); $this->addComponent($this->questionLabel); $this->yesButton = new Elements\Button(); $this->yesButton->setAlign('left', 'bottom'); $this->yesButton->setPosition(-45, -25); $this->yesButton->setTextid('yes'); $this->addComponent($this->yesButton); $this->noButton = new Elements\Button(); $this->noButton->setAlign('right', 'bottom'); $this->noButton->setPosition(45, -25); $this->noButton->setTextid('no'); $this->addComponent($this->noButton); }
function __construct($sizeX = 65, $sizeY = 25) { parent::__construct($sizeX, $sizeY); $this->titleBg->setSubStyle(\ManiaLib\Gui\Elements\Bgs1::BgTitle3_1); $this->button->setPosition(-15, 0, 0); $this->button2 = new \ManiaLib\Gui\Elements\Button(); $this->button2->setPosition(15, 0, 0); $this->button2->setAlign('left', 'bottom'); $this->addCardElement($this->button2); }
function __construct($sizeX = 65, $sizeY = 25) { parent::__construct($sizeX, $sizeY); $this->setSubStyle(\ManiaLib\Gui\Elements\Bgs1::BgWindow2); $this->title->setStyle(\ManiaLib\Gui\Elements\Label::TextTitle2); $this->addCardElement($this->title); $this->button = new \ManiaLib\Gui\Elements\Button(); $this->button->setAlign('center', 'bottom'); $this->addCardElement($this->button); $this->text = new Label(); $this->text->setAlign('center', 'center'); $this->text->enableAutonewline(); // $this->text->setStyle(Label::TextStaticMedium); $this->addCardElement($this->text); }