function destroy() { parent::destroy(); $this->buttonMin = null; $this->buttonMax = null; $thumbnail = GuiHandler::getInstance()->getThumbnail($this); if ($thumbnail) { $thumbnail->destroy(); } }
function destroy() { parent::destroy(); $this->options->destroy(); }
protected function onResize($oldX, $oldY) { parent::onResize($oldX, $oldY); $this->text->setSize($this->sizeX - 4, $this->sizeY - 6); }