function onDraw()
    {
        $this->setPosZ(3);
        if (static::$displayAlliesHelp) {
            $this->title->setPosY(-4.5);
            $this->alliesHelp->setVisibility(true);
        } else {
            $this->title->setPosY(-6);
            $this->alliesHelp->setVisibility(false);
        }
        \ManiaLive\Gui\Manialinks::appendXML(\ManiaLivePlugins\MatchMakingLobby\Utils\Dictionary::getInstance()->getManiaLink($this->dictionnary));
        \ManiaLive\Gui\Manialinks::appendScript(<<<EOSCRIPT
#RequireContext CMlScript
#Include "MathLib" as MathLib
#Include "TextLib" as TextLib

main()
{
\tdeclare Text ClickedIndex;
\tdeclare Text ButtonIdPrefix;
\tdeclare Text DataIdPrefix;
\tdeclare Text DataEntryId;
\tdeclare Integer ButtonIdPrefixLength;
\tdeclare CMlLabel DataLabel;
\tdeclare CMlEntry DataEntry;
\t\t
\tButtonIdPrefix = "player_button-";
\tDataIdPrefix = "player_label-";
\tDataEntryId = "allyLogin_entry";
\t
\tButtonIdPrefixLength = TextLib::Length(ButtonIdPrefix);
\tDataEntry <=> (Page.GetFirstChild(DataEntryId) as CMlEntry);

\twhile(True)
\t{
\t\tforeach(Event in PendingEvents)
\t\t{
\t\t\tif(Event.Type == CMlEvent::Type::MouseOver)
\t\t\t{
\t\t\t\tif(TextLib::SubString(Event.ControlId, 0, ButtonIdPrefixLength) == ButtonIdPrefix)
\t\t\t\t{
\t\t\t\t\tClickedIndex = TextLib::SubString(Event.ControlId, ButtonIdPrefixLength, 2);
\t\t\t\t\tDataLabel <=> (Page.GetFirstChild(DataIdPrefix^ClickedIndex) as CMlLabel);
\t\t\t\t\tif(DataLabel != Null)\t
\t\t\t\t\t{
\t\t\t\t\t\tDataEntry.Value = DataLabel.Value;
\t\t\t\t\t}
\t\t\t\t}
\t\t\t}
\t\t}
\t\tyield;
\t}
}
EOSCRIPT
);
        $this->updateItemList();
    }