tooltip change on xlist

This commit is contained in:
kremsy 2013-12-31 11:18:12 +01:00
parent ede3ed3eed
commit 03af861f0a

View File

@ -146,9 +146,6 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$script = new Script(); $script = new Script();
$maniaLink->setScript($script); $maniaLink->setScript($script);
$tooltips = new Tooltips();
$script->addFeature($tooltips);
//Start offsets //Start offsets
$x = -$this->width / 2; $x = -$this->width / 2;
$y = $this->height / 2; $y = $this->height / 2;
@ -188,7 +185,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$descriptionLabel->setTextSize(2); $descriptionLabel->setTextSize(2);
$descriptionLabel->setVisible(false); $descriptionLabel->setVisible(false);
$descriptionLabel->setText("Add-Map: {$map->name}"); $descriptionLabel->setText("Add-Map: {$map->name}");
$tooltips->add($addQuad, $descriptionLabel); $script->addTooltip($addQuad, $descriptionLabel);
} }
@ -338,6 +335,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$jukeQuad->setAction(self::ACTION_JUKE_MAP . "." . $map->uid); $jukeQuad->setAction(self::ACTION_JUKE_MAP . "." . $map->uid);
$jukeQuad->setText("+"); $jukeQuad->setText("+");
$jukeQuad->setTextColor("09F"); $jukeQuad->setTextColor("09F");
$descriptionLabel->setText("Add Map to Jukebox: {$map->name}"); $descriptionLabel->setText("Add Map to Jukebox: {$map->name}");
$script->addTooltip($jukeQuad, $descriptionLabel); $script->addTooltip($jukeQuad, $descriptionLabel);
} }