commented tooltips to avoid crashes
This commit is contained in:
@ -95,8 +95,8 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$script = new Script();
|
||||
$maniaLink->setScript($script);
|
||||
|
||||
$tooltips = new Tooltips();
|
||||
$script->addFeature($tooltips);
|
||||
//$tooltips = new Tooltips();
|
||||
//$script->addFeature($tooltips);
|
||||
|
||||
//mainframe
|
||||
$frame = new Frame();
|
||||
@ -202,7 +202,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText($listPlayer->nickname . " from " . $listPlayer->path);
|
||||
$tooltips->add($countryQuad, $descriptionLabel);
|
||||
//$tooltips->add($countryQuad, $descriptionLabel);
|
||||
}
|
||||
|
||||
//Level Quad
|
||||
@ -228,7 +228,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText($this->maniaControl->authenticationManager->getAuthLevelName($listPlayer->authLevel) . " " . $listPlayer->nickname);
|
||||
$tooltips->add($rightQuad, $descriptionLabel);
|
||||
//$tooltips->add($rightQuad, $descriptionLabel);
|
||||
|
||||
switch($listPlayer->authLevel){
|
||||
case authenticationManager::AUTH_LEVEL_MASTERADMIN: $rightLabel->setText("MA"); break;
|
||||
@ -260,7 +260,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText("Advanced Player Actions on " . $listPlayer->nickname);
|
||||
$tooltips->add($playerQuad, $descriptionLabel);
|
||||
//$tooltips->add($playerQuad, $descriptionLabel);
|
||||
|
||||
//Force to Red-Team Quad
|
||||
$redQuad = new Quad_Emblems();
|
||||
@ -280,7 +280,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText("Force " . $listPlayer->nickname . '$z to Red Team!');
|
||||
$tooltips->add($redQuad, $descriptionLabel);
|
||||
//$tooltips->add($redQuad, $descriptionLabel);
|
||||
|
||||
//Force to Blue-Team Quad
|
||||
$blueQuad = new Quad_Emblems();
|
||||
@ -300,7 +300,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText("Force " . $listPlayer->nickname . '$z to Blue Team!');
|
||||
$tooltips->add($blueQuad, $descriptionLabel);
|
||||
//$tooltips->add($blueQuad, $descriptionLabel);
|
||||
|
||||
//Force to Spectator Quad
|
||||
$spectatorQuad = new Quad_BgRaceScore2();
|
||||
@ -320,7 +320,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
|
||||
$descriptionLabel->setTextSize(2);
|
||||
$descriptionLabel->setVisible(false);
|
||||
$descriptionLabel->setText("Force " . $listPlayer->nickname . '$z to Spectator!');
|
||||
$tooltips->add($spectatorQuad, $descriptionLabel);
|
||||
//$tooltips->add($spectatorQuad, $descriptionLabel);
|
||||
}
|
||||
$i++;
|
||||
$y -= 4;
|
||||
|
Reference in New Issue
Block a user