function onPlayerConnect($login, $isSpectator) { $this->hidingGui[$login] = false; $this->modals[$login] = array(); $this->modalShown[$login] = null; $this->managedWindow[$login] = null; $this->thumbnails[$login] = array(); $sk = Shortkey::Create($login); if (\ManiaLive\Config\Config::getInstance()->enableToggleGUI) { $sk->addCallback(Shortkey::F8, array($this, 'toggleGui')); } $sk->show(); $this->groupAll->add($login, true); if ($isSpectator) { $this->groupSpectators->add($login, true); } else { $this->groupPlayers->add($login, true); } }
protected function resetShortKey($login) { Shortkey::Erase($login); }