fixed z level
This commit is contained in:
parent
bb5058e532
commit
9ae9c1cf07
@ -50,6 +50,7 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
|
|||||||
private $scriptSettings = null;
|
private $scriptSettings = null;
|
||||||
private $serverSettings = null;
|
private $serverSettings = null;
|
||||||
private $maniaControlSettings = null;
|
private $maniaControlSettings = null;
|
||||||
|
/** @var ConfiguratorMenu[] $menus */
|
||||||
private $menus = array();
|
private $menus = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -173,6 +174,7 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
|
|||||||
|
|
||||||
$backgroundQuad = new Quad();
|
$backgroundQuad = new Quad();
|
||||||
$frame->add($backgroundQuad);
|
$frame->add($backgroundQuad);
|
||||||
|
$backgroundQuad->setZ(-10);
|
||||||
$backgroundQuad->setSize($menuWidth, $menuHeight);
|
$backgroundQuad->setSize($menuWidth, $menuHeight);
|
||||||
$backgroundQuad->setStyles($quadStyle, $quadSubstyle);
|
$backgroundQuad->setStyles($quadStyle, $quadSubstyle);
|
||||||
|
|
||||||
@ -182,6 +184,7 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
|
|||||||
|
|
||||||
$itemsBackgroundQuad = new Quad();
|
$itemsBackgroundQuad = new Quad();
|
||||||
$menuItemsFrame->add($itemsBackgroundQuad);
|
$menuItemsFrame->add($itemsBackgroundQuad);
|
||||||
|
$backgroundQuad->setZ(-9);
|
||||||
$itemsBackgroundQuad->setSize($menuListWidth, $menuHeight);
|
$itemsBackgroundQuad->setSize($menuListWidth, $menuHeight);
|
||||||
$itemsBackgroundQuad->setStyles($quadStyle, $quadSubstyle);
|
$itemsBackgroundQuad->setStyles($quadStyle, $quadSubstyle);
|
||||||
|
|
||||||
@ -195,8 +198,6 @@ class Configurator implements CallbackListener, CommandListener, ManialinkPageAn
|
|||||||
$menuItemY = $menuHeight * 0.42;
|
$menuItemY = $menuHeight * 0.42;
|
||||||
$menuId = 0;
|
$menuId = 0;
|
||||||
foreach ($this->menus as $menu) {
|
foreach ($this->menus as $menu) {
|
||||||
/** @var ConfiguratorMenu $menu */
|
|
||||||
|
|
||||||
// Add title
|
// Add title
|
||||||
$menuItemLabel = new Label();
|
$menuItemLabel = new Label();
|
||||||
$menuItemsFrame->add($menuItemLabel);
|
$menuItemsFrame->add($menuItemLabel);
|
||||||
|
Loading…
Reference in New Issue
Block a user