function onDialogClosed($login, \ManiaLive\Gui\Window $dialog) { if ($dialog->getAnswer() == Dialog::YES) { if (Storage::getInstance()->serverStatus->code == 4) { $config = \ManiaLive\DedicatedApi\Config::getInstance(); Connection::factory($config->host, $config->port)->restartMap(); $this->hide(); } else { $dialog->showModal(); } } }
function destroy() { parent::destroy(); foreach ($this->onKey as $key => $callback) { $this->removeCallback($key); } }
function destroy() { $this->destroyComponents(); parent::destroy(); }
function destroy() { $this->clearItems(); parent::destroy(); }
function onPlayerDisconnect($login, $disconnectionReason) { $this->groupAll->remove($login); $this->groupPlayers->remove($login); $this->groupSpectators->remove($login); Window::Erase($login); CustomUI::Erase($login); if (array_key_exists($login, $this->modals)) { foreach ($this->modals[$login] as $dialog) { $this->onModalClosed($login, $dialog); } if ($this->modalShown[$login]) { $this->onModalClosed($login, $this->modalShown[$login]); } } unset($this->hidingGui[$login]); unset($this->modals[$login]); unset($this->modalShown[$login]); unset($this->managedWindow[$login]); unset($this->thumbnails[$login]); }
function destroy() { parent::destroy(); $this->logo->destroy(); $this->status->destroy(); }
function destroy() { $this->window = null; $this->windowContent->clearComponents(); parent::destroy(); }