Fix PlayerProfile feature for TMNEXT

This commit is contained in:
Beu
2022-04-14 00:57:52 +02:00
parent 424ff646ad
commit 0416a650a0
2 changed files with 45 additions and 5 deletions

View File

@ -846,9 +846,9 @@ abstract class Control implements Identifiable, Renderable, ScriptFeatureable
* @param string $eventLabel (optional) Event on which the player profile will be opened
* @return static
*/
public function addPlayerProfileFeature($login, $eventLabel = ScriptLabel::MOUSECLICK)
public function addPlayerProfileFeature($login, $eventLabel = ScriptLabel::MOUSECLICK, $titleId = "Trackmania")
{
$playerProfile = new PlayerProfile($login, $this, $eventLabel);
$playerProfile = new PlayerProfile($login, $this, $eventLabel, $titleId) ;
$this->addScriptFeature($playerProfile);
return $this;
}