function onDraw() { $this->playerListFrame->destroyComponents(); $playerKeys = array_keys($this->playerList); for ($i = 0; $i < static::$partySize; $i++) { if (array_key_exists($i, $playerKeys)) { $player = $this->playerList[$playerKeys[$i]]; $ui = new PlayerDetailed(); $ui->nickname = $player['nickname']; $ui->zone = $player['zone']; $ui->avatarUrl = $player['avatarUrl']; $ui->rank = $player['rank']; $ui->echelon = $player['echelon']; $ui->countryFlagUrl = $player['countryFlagUrl']; $ui->disable($player['disable']); $ui->setHalign('center'); $this->playerListFrame->addComponent($ui); } else { $this->playerListFrame->addComponent(clone $this->emptySlot); } } if ($this->disableReadyButton) { $this->readyButtonFrame->setVisibility(false); } else { $this->readyButtonFrame->setVisibility(true); $this->readyButton->setAction(static::$readyAction); } $this->posZ = 3.9; if (static::$logoURL) { $this->logo->setImage(static::$logoURL, true); $this->logo->setUrl(static::$logoLink); $this->addComponent($this->logo); } else { $this->removeComponent($this->logo); } $textId = $this->textId ?: array('textId' => 'waitingHelp', 'params' => array(static::$scriptName)); $this->dico['text'] = $textId; \ManiaLive\Gui\Manialinks::appendXML(Dictionary::getInstance()->getManiaLink($this->dico)); }