Improved Script Settings and Configurator Menu

This commit is contained in:
Steffen Schröder
2013-12-31 14:50:28 +01:00
parent 5fb76e2428
commit 98f70cb70b
4 changed files with 95 additions and 106 deletions

View File

@ -37,7 +37,7 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu {
/**
* Create a new plugin menu instance
*
* @param ManiaControl $maniaControl
* @param ManiaControl $maniaControl
*/
public function __construct(ManiaControl $maniaControl) {
$this->maniaControl = $maniaControl;
@ -58,7 +58,7 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu {
*
* @see \ManiaControl\Configurators\ConfiguratorMenu::getMenu()
*/
public function getMenu($width, $height, $pages, Script $script) {
public function getMenu($width, $height, Script $script) {
$frame = new Frame();
$pluginClasses = $this->maniaControl->pluginManager->getPluginClasses();
@ -162,10 +162,10 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu {
unset($pageFrame);
}
}
// $script->addPager($pageFrames, 1 , $pageCountLabel);
// $script->addPage(array(-1 => $pagerPrev, 1 => $pagerNext), $pageFrames, $pageCountLabel);
//$pages->add(array(-1 => $pagerPrev, 1 => $pagerNext), $pageFrames, $pageCountLabel);
// $script->addPager($pageFrames, 1 , $pageCountLabel);
// $script->addPage(array(-1 => $pagerPrev, 1 => $pagerNext), $pageFrames, $pageCountLabel);
// $pages->add(array(-1 => $pagerPrev, 1 => $pagerNext), $pageFrames, $pageCountLabel);
return $frame;
}
@ -180,7 +180,7 @@ class PluginMenu implements CallbackListener, ConfiguratorMenu {
/**
* Handle PlayerManialinkPageAnswer callback
*
* @param array $callback
* @param array $callback
*/
public function handleManialinkPageAnswer(array $callback) {
$actionId = $callback[1][2];