Fixed warn ManiaLink

This commit is contained in:
Jocy 2017-05-07 19:35:53 +02:00
parent 6ed3b8d072
commit 33616ec10d
2 changed files with 4 additions and 2 deletions

View File

@ -244,7 +244,7 @@ class StyleManager implements UsageInformationAble {
// Add Close Quad (X) // Add Close Quad (X)
$closeQuad = new Quad_Icons64x64_1(); $closeQuad = new Quad_Icons64x64_1();
$frame->addChild($closeQuad); $frame->addChild($closeQuad);
$closeQuad->setPosition($width * 0.483, $height * 0.467, 3)->setSize(6, 6)->setSubStyle($closeQuad::SUBSTYLE_QuitRace)->setAction(ManialinkManager::ACTION_CLOSEWIDGET); $closeQuad->setPosition($width / 2 - 3, $height / 2 - 3, 3)->setSize(6, 6)->setSubStyle($closeQuad::SUBSTYLE_QuitRace)->setAction(ManialinkManager::ACTION_CLOSEWIDGET);
if ($script) { if ($script) {
$pagerSize = 6.; $pagerSize = 6.;

View File

@ -485,17 +485,19 @@ class PlayerActions implements EchoListener, CommunicationListener, UsageInforma
$frame = new Frame(); $frame = new Frame();
$maniaLink->addChild($frame); $maniaLink->addChild($frame);
$frame->setPosition(0, 10); $frame->setPosition(0, 10);
$frame->setZ(ManialinkManager::MAIN_MANIALINK_Z_VALUE);
// Background // Background
$backgroundQuad = new Quad(); $backgroundQuad = new Quad();
$frame->addChild($backgroundQuad); $frame->addChild($backgroundQuad);
$backgroundQuad->setSize($width, $height); $backgroundQuad->setSize($width, $height);
$backgroundQuad->setStyles($quadStyle, $quadSubstyle); $backgroundQuad->setStyles($quadStyle, $quadSubstyle);
$backgroundQuad->setZ(-1);
// Close Quad (X) // Close Quad (X)
$closeQuad = new Quad_Icons64x64_1(); $closeQuad = new Quad_Icons64x64_1();
$frame->addChild($closeQuad); $frame->addChild($closeQuad);
$closeQuad->setPosition($width * 0.473, $height * 0.457, 3); $closeQuad->setPosition($width / 2 - 3, $height / 2 - 3, 3);
$closeQuad->setSize(6, 6); $closeQuad->setSize(6, 6);
$closeQuad->setSubStyle($closeQuad::SUBSTYLE_QuitRace); $closeQuad->setSubStyle($closeQuad::SUBSTYLE_QuitRace);
$closeQuad->setAction(ManialinkManager::ACTION_CLOSEWIDGET); $closeQuad->setAction(ManialinkManager::ACTION_CLOSEWIDGET);