small fixes
This commit is contained in:
parent
6a1a014696
commit
5ae3e43097
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -135,10 +135,13 @@ 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
|
||||||
$this->maniaControl->callbackManager->triggerCallback(self::CB_TEAM_STATUS_CHANGED, array(self::CB_TEAM_STATUS_CHANGED, $teamMode));
|
if ($oldStatus != $this->teamMode) {
|
||||||
|
$this->maniaControl->callbackManager->triggerCallback(self::CB_TEAM_STATUS_CHANGED, array(self::CB_TEAM_STATUS_CHANGED, $teamMode));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user