small fixes

This commit is contained in:
kremsy 2014-02-01 20:25:20 +01:00 committed by Steffen Schröder
parent 6a1a014696
commit 5ae3e43097
3 changed files with 8 additions and 4 deletions

View File

@ -322,7 +322,6 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
* @return bool * @return bool
*/ */
private function applyNewServerSettings(array $newSettings, Player $player) { private function applyNewServerSettings(array $newSettings, Player $player) {
var_dump($newSettings);
if (!$newSettings) { if (!$newSettings) {
return true; return true;
} }

View File

@ -135,11 +135,14 @@ class Server implements CallbackListener {
* @param bool $teamMode * @param bool $teamMode
*/ */
public function setTeamMode($teamMode = true) { public function setTeamMode($teamMode = true) {
$oldStatus = $this->teamMode;
$this->teamMode = $teamMode; $this->teamMode = $teamMode;
// Trigger callback // Trigger callback
if ($oldStatus != $this->teamMode) {
$this->maniaControl->callbackManager->triggerCallback(self::CB_TEAM_STATUS_CHANGED, array(self::CB_TEAM_STATUS_CHANGED, $teamMode)); $this->maniaControl->callbackManager->triggerCallback(self::CB_TEAM_STATUS_CHANGED, array(self::CB_TEAM_STATUS_CHANGED, $teamMode));
} }
}
/** /**
* Check if the Server Runs a TeamMode * Check if the Server Runs a TeamMode

View File

@ -355,12 +355,13 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
$quadStyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowStyle(); $quadStyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowStyle();
$quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowSubStyle(); $quadSubstyle = $this->maniaControl->manialinkManager->styleManager->getDefaultMainWindowSubStyle();
$max_queue = $this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX); $max_queue = $this->maniaControl->settingManager->getSetting($this, self::QUEUE_MAX);
//TODO position setting
// Main frame // Main frame
$frame = new Frame(); $frame = new Frame();
$maniaLink->add($frame); $maniaLink->add($frame);
$frame->setSize(60, 6); $frame->setSize(60, 6);
$frame->setPosition(0, 67, 0); $frame->setPosition(0, -46, 0);
// Background // Background
$backgroundQuad = new Quad(); $backgroundQuad = new Quad();
@ -447,7 +448,8 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
$frame = new Frame(); $frame = new Frame();
$maniaLink->add($frame); $maniaLink->add($frame);
$frame->setSize(60, 6); $frame->setSize(60, 6);
$frame->setPosition(0, 67, 0); $frame->setPosition(0, -46, 0);
//TODO position setting
// Background // Background
$backgroundQuad = new Quad(); $backgroundQuad = new Quad();