From ede3ed3eed83297ea5357fd6a488eb4be0857a92 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 31 Dec 2013 11:05:14 +0100 Subject: [PATCH] nothing works :D --- application/core/Configurators/ScriptSettings.php | 8 +++++--- application/core/Maps/MapList.php | 2 -- application/core/Players/PlayerList.php | 1 + application/core/Plugins/PluginMenu.php | 3 +-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/application/core/Configurators/ScriptSettings.php b/application/core/Configurators/ScriptSettings.php index 3aebcd66..c670a13b 100644 --- a/application/core/Configurators/ScriptSettings.php +++ b/application/core/Configurators/ScriptSettings.php @@ -94,7 +94,10 @@ class ScriptSettings implements ConfiguratorMenu,CallbackListener { $pagerNext->setPosition($width * 0.45, $height * -0.44, 2); $pagerNext->setSize($pagerSize, $pagerSize); $pagerNext->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowNext); - + + $script->addPager($pagerPrev, -1); + $script->addPager($pagerNext, 1); + $pageCountLabel = new Label(); $frame->add($pageCountLabel); $pageCountLabel->setHAlign(Control::RIGHT); @@ -176,9 +179,8 @@ class ScriptSettings implements ConfiguratorMenu,CallbackListener { $y -= $settingHeight; if ($index % $pageMaxCount == $pageMaxCount - 1) { - unset($pageFrame); - }else{ $script->addPage($pageFrame, $index, "test"); //TODO not working + unset($pageFrame); } } diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index 4ec32ad4..c72b3be3 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -338,8 +338,6 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { $jukeQuad->setAction(self::ACTION_JUKE_MAP . "." . $map->uid); $jukeQuad->setText("+"); $jukeQuad->setTextColor("09F"); - - $descriptionLabel->setText("Add Map to Jukebox: {$map->name}"); $script->addTooltip($jukeQuad, $descriptionLabel); } diff --git a/application/core/Players/PlayerList.php b/application/core/Players/PlayerList.php index 8d93ca6a..b8dea7ee 100644 --- a/application/core/Players/PlayerList.php +++ b/application/core/Players/PlayerList.php @@ -258,6 +258,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener { $descriptionLabel->setVisible(false); $descriptionLabel->setText("Advanced Player Actions on " . $listPlayer->nickname); $script->addTooltip($playerQuad, $descriptionLabel); + // $script->addProfileButton($playerQuad, $listPlayer->login); //Force to Red-Team Quad $redQuad = new Quad_Emblems(); diff --git a/application/core/Plugins/PluginMenu.php b/application/core/Plugins/PluginMenu.php index 4031d868..77a8f8f9 100644 --- a/application/core/Plugins/PluginMenu.php +++ b/application/core/Plugins/PluginMenu.php @@ -158,9 +158,8 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu { $y -= $entryHeight; if ($index % $pageMaxCount == $pageMaxCount - 1) { - unset($pageFrame); - }else{ $script->addPage($pageFrame, 1, "test"); + unset($pageFrame); } }