small fault fixes

This commit is contained in:
kremsy
2017-03-25 19:25:20 +01:00
parent a9e24234e0
commit 8a9ae9465a
3 changed files with 5 additions and 5 deletions

View File

@ -324,7 +324,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
//Define Description Label
$menuEntries = count($this->voteMenuItems);
$descriptionFrame = new Frame();
$manialink->addChild($descriptionFrame);
$maniaLink->addChild($descriptionFrame);
$descriptionFrame->setPosition($posX - $menuEntries * $itemSize * 1.15 - 6, $posY);
$descriptionLabel = new Label();
@ -336,7 +336,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
//Popout Frame
$popoutFrame = new Frame();
$manialink->addChild($popoutFrame);
$maniaLink->addChild($popoutFrame);
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
$popoutFrame->setHorizontalAlign($popoutFrame::RIGHT);
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);

View File

@ -191,7 +191,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
// Values Menu
$popoutFrame = new Frame();
$manialink->addChild($popoutFrame);
$maniaLink->addChild($popoutFrame);
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
$popoutFrame->setHorizontalAlign($popoutFrame::RIGHT);
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
@ -208,7 +208,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
// Description Label
$descriptionFrame = new Frame();
$manialink->addChild($descriptionFrame);
$maniaLink->addChild($descriptionFrame);
$descriptionFrame->setPosition($posX - 50, $posY - 5);
$descriptionFrame->setHorizontalAlign($descriptionFrame::RIGHT);