/** * Sets the button selected and change its styles accordingly */ function setSelected() { $this->isSelected = true; $this->selectedIcon = new \ManiaLib\Gui\Elements\Icons64x64_1(11); $this->selectedIcon->setSubStyle(\ManiaLib\Gui\Elements\Icons64x64_1::ShowRight); $this->selectedIcon->setValign('center'); $this->selectedIcon->setPosX(71); $this->addCardElement($this->selectedIcon); }