This commit is contained in:
@ -34,7 +34,7 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener,
|
||||
const ACTION_CLOSEWIDGET = 'ManiaLinkManager.CloseWidget';
|
||||
const CB_MAIN_WINDOW_CLOSED = 'ManialinkManagerCallback.MainWindowClosed';
|
||||
const CB_MAIN_WINDOW_OPENED = 'ManialinkManagerCallback.MainWindowOpened';
|
||||
const MAIN_MANIALINK_Z_VALUE = 20;
|
||||
const MAIN_MANIALINK_Z_VALUE = 150;
|
||||
|
||||
|
||||
/*
|
||||
|
@ -111,11 +111,13 @@ class StyleManager implements UsageInformationAble {
|
||||
return $descriptionLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the default buttons and textbox for a map search
|
||||
*
|
||||
* @param string $actionMapNameSearch
|
||||
* @param string $actionAuthorSearch
|
||||
* @param $actionMapNameSearch
|
||||
* @param $actionAuthorSearch
|
||||
* @param null $actionReset
|
||||
* @return \FML\Controls\Frame
|
||||
*/
|
||||
public function getDefaultMapSearch($actionMapNameSearch, $actionAuthorSearch, $actionReset = null) {
|
||||
@ -229,13 +231,7 @@ class StyleManager implements UsageInformationAble {
|
||||
|
||||
// mainframe
|
||||
$frame = new Frame();
|
||||
$frame->setSize($width, $height)->setZ(ManialinkManager::MAIN_MANIALINK_Z_VALUE); //TODO place before scoreboards
|
||||
|
||||
//TODO remove: (just temporary fix for tm bug)
|
||||
if ($this->maniaControl->getMapManager()->getCurrentMap()->getGame() === 'tm') {
|
||||
$frame->setSize($width, $height)->setZ(32);
|
||||
}
|
||||
|
||||
$frame->setSize($width, $height)->setZ(ManialinkManager::MAIN_MANIALINK_Z_VALUE);
|
||||
|
||||
// Background Quad
|
||||
$backgroundQuad = new Quad();
|
||||
|
Reference in New Issue
Block a user