changed configurator MLID

This commit is contained in:
kremsy 2013-12-15 12:41:43 +01:00
parent 7c2b718e3c
commit ff082c4ad4

View File

@ -5,6 +5,7 @@ namespace ManiaControl\Configurators;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Callbacks\CallbackListener; use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\CallbackManager; use ManiaControl\Callbacks\CallbackManager;
use ManiaControl\Manialinks\ManialinkManager;
use ManiaControl\Manialinks\ManialinkPageAnswerListener; use ManiaControl\Manialinks\ManialinkPageAnswerListener;
use ManiaControl\Players\Player; use ManiaControl\Players\Player;
use FML\ManiaLink; use FML\ManiaLink;
@ -32,7 +33,6 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
/** /**
* Constants * Constants
*/ */
const MLID_MENU = 'Configurator.Menu.MLID';
const ACTION_TOGGLEMENU = 'Configurator.ToggleMenuAction'; const ACTION_TOGGLEMENU = 'Configurator.ToggleMenuAction';
const ACTION_SAVECONFIG = 'Configurator.SaveConfigAction'; const ACTION_SAVECONFIG = 'Configurator.SaveConfigAction';
const SETTING_MENU_POSX = 'Menu Widget Position: X'; const SETTING_MENU_POSX = 'Menu Widget Position: X';
@ -148,7 +148,7 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
* @param Player $player * @param Player $player
*/ */
public function hideMenu(Player $player) { public function hideMenu(Player $player) {
$emptyManialink = new ManiaLink(self::MLID_MENU); $emptyManialink = new ManiaLink(ManialinkManager::MAIN_MLID);
$manialinkText = $emptyManialink->render()->saveXML(); $manialinkText = $emptyManialink->render()->saveXML();
$this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login); $this->maniaControl->manialinkManager->sendManialink($manialinkText, $player->login);
$this->maniaControl->manialinkManager->enableAltMenu($player); $this->maniaControl->manialinkManager->enableAltMenu($player);
@ -175,7 +175,7 @@ class Configurator implements CallbackListener, ManialinkPageAnswerListener {
$manialinks = new ManiaLinks(); $manialinks = new ManiaLinks();
$manialink = new ManiaLink(self::MLID_MENU); $manialink = new ManiaLink(ManialinkManager::MAIN_MLID);
$manialinks->add($manialink); $manialinks->add($manialink);
$frame = new Frame(); $frame = new Frame();