configurator bug fixes

This commit is contained in:
kremsy
2014-01-18 21:05:45 +01:00
committed by Steffen Schröder
parent aabd84c48f
commit 7912336509
5 changed files with 44 additions and 28 deletions

View File

@ -119,13 +119,8 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
*
* @param array $callback
*/
public function reopenMenu($menuId = 0) {
foreach($this->playersMenuShown as $login => $shown) {
if($shown == true) {
$player = $this->maniaControl->playerManager->getPlayer($login);
$this->showMenu($player, $menuId);
}
}
public function reopenMenu($player, $menuId = 0) {
$this->showMenu($player, $menuId);
}
/**
@ -318,7 +313,7 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
$closeQuad->setPosition($menuWidth * 0.483, $menuHeight * 0.467, 3);
$closeQuad->setSize(6, 6);
$closeQuad->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_QuitRace);
$closeQuad->setAction(self::ACTION_TOGGLEMENU);
$closeQuad->setAction(ManialinkManager::ACTION_CLOSEWIDGET);
// Add close button
$closeButton = new Label();

View File

@ -245,7 +245,7 @@ class ManiaControlSettings implements ConfiguratorMenu, CallbackListener {
//Reopen the Menu
$menuId = $this->maniaControl->configurator->getMenuId($this->getTitle());
$this->maniaControl->configurator->reopenMenu($menuId);
$this->maniaControl->configurator->reopenMenu($player, $menuId);
}
/**

View File

@ -316,7 +316,7 @@ class ScriptSettings implements ConfiguratorMenu, CallbackListener {
//Reopen the Menu
$menuId = $this->maniaControl->configurator->getMenuId($this->getTitle());
$this->maniaControl->configurator->reopenMenu($menuId);
$this->maniaControl->configurator->reopenMenu($player, $menuId);
}
/**

View File

@ -297,7 +297,7 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
//Reopen the Menu
$menuId = $this->maniaControl->configurator->getMenuId($this->getTitle());
$this->maniaControl->configurator->reopenMenu($menuId);
$this->maniaControl->configurator->reopenMenu($player, $menuId);
}
/**