function __construct($nickname) { $this->setSize(46, 5); $this->bg = new Elements\Bgs1InRace($this->sizeX, $this->sizeY); $this->bg->setBgcolor('3338'); $this->bg->setBgcolorFocus('CCC8'); $this->bg->setScriptEvents(); $this->addComponent($this->bg); $this->icon = new Elements\Quad(2, $this->sizeY); $this->icon->setBgcolor('F00'); $this->icon->setAlign('left', 'center'); $this->addComponent($this->icon); $this->label = new Elements\Label(34); $this->label->setValign('center2'); $this->label->setText($nickname); $this->label->setTextColor('fff'); $this->label->setTextSize(1); $this->addComponent($this->label); $this->hiddenLabel = new Elements\Label(); $this->hiddenLabel->setHidden(true); $this->addComponent($this->hiddenLabel); $this->echelonFrame = new \ManiaLive\Gui\Controls\Frame(73.5, 1); $this->echelonFrame->setScale(0.29); $this->addComponent($this->echelonFrame); $this->echelonQuad = new Elements\Quad(14.1551, 17.6938); $this->echelonQuad->setPosition(-1.25, -1.25); $this->echelonQuad->setAlign('center', 'top'); $this->echelonFrame->addComponent($this->echelonQuad); $ui = new Elements\Label(15); $ui->setAlign('center', 'top'); $ui->setStyle(Elements\Label::TextRaceMessage); $ui->setPosition(-1, -4.95625); $ui->setTextSize(0.5); $ui->setText('Echelon'); $this->echelonFrame->addComponent($ui); $this->echelonLabel = new Elements\Label(10, 10); $this->echelonLabel->setAlign('center', 'center'); $this->echelonLabel->setPosition(-1, -11.895); $this->echelonLabel->setStyle(Elements\Label::TextRaceMessageBig); $this->echelonFrame->addComponent($this->echelonLabel); $this->countryFlag = new Elements\Quad(5, 5); $this->countryFlag->setAlign('left', 'center'); $this->addComponent($this->countryFlag); $this->nickname = $nickname; $this->state = static::STATE_NOT_READY; }