function preFilter() { parent::preFilter(); $this->text->setSize($this->sizeX - 6, $this->sizeY - 11); $this->text->setPositionY(-$this->sizeY / 2 - 5); $this->button->setPositionY(5 - $this->sizeY); }
function __construct($sx = 187.5, $sy = 200) { parent::__construct($sx, $sy); $this->setStyle(Quad::Bgs1); $this->setSubStyle(Bgs1::BgWindow2); $this->cardElementsHalign = 'center'; $this->titleBg = new Quad(0, 16.25); $this->titleBg->setHalign('center'); $this->titleBg->setStyle(Quad::Bgs1InRace); $this->titleBg->setSubStyle(Bgs1InRace::BgTitle3_1); $this->addCardElement($this->titleBg); $this->title = new Label(); $this->title->setAlign('center', 'center2'); $this->title->setPositionY(-8.25); $this->title->setStyle(Label::TextTitle3); $this->addCardElement($this->title); $this->panelBg = new Quad(); $this->panelBg->setHalign('center'); $this->addCardElement($this->panelBg); }