- Improvements of and for the Ingame Configurator

This commit is contained in:
Steffen Schröder
2013-11-28 04:48:04 +01:00
parent 9bed5b3d3f
commit c39d35d1fe
6 changed files with 153 additions and 21 deletions

View File

@ -5,6 +5,7 @@ namespace ManiaControl\Manialinks;
use ManiaControl\ManiaControl;
use ManiaControl\Callbacks\CallbackListener;
use ManiaControl\Callbacks\CallbackManager;
use ManiaControl\Players\Player;
require_once __DIR__ . '/StyleManager.php';
require_once __DIR__ . '/../FML/autoload.php';
@ -125,6 +126,26 @@ class ManialinkManager implements CallbackListener {
}
return false;
}
/**
* Enable the alt menu for the player
*
* @param Player $player
* @return bool
*/
public function enableAltMenu(Player $player) {
return $this->maniaControl->client->query('TriggerModeScriptEvent', 'LibXmlRpc_EnableAltMenu', $player->login);
}
/**
* Disable the alt menu for the player
*
* @param Player $player
* @return bool
*/
public function disableAltMenu(Player $player) {
return $this->maniaControl->client->query('TriggerModeScriptEvent', 'LibXmlRpc_DisableAltMenu', $player->login);
}
}
?>