update menus
This commit is contained in:
parent
a790309e02
commit
96c01c3a5e
@ -199,6 +199,7 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
|||||||
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
||||||
$popoutFrame->setHAlign(Control::RIGHT);
|
$popoutFrame->setHAlign(Control::RIGHT);
|
||||||
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
||||||
|
$popoutFrame->setVisible(false);
|
||||||
|
|
||||||
$backgroundQuad = new Quad();
|
$backgroundQuad = new Quad();
|
||||||
$popoutFrame->add($backgroundQuad);
|
$popoutFrame->add($backgroundQuad);
|
||||||
@ -267,6 +268,7 @@ class ActionsMenu implements CallbackListener, ManialinkPageAnswerListener {
|
|||||||
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY - $itemSize * $itemMarginFactorY);
|
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY - $itemSize * $itemMarginFactorY);
|
||||||
$popoutFrame->setHAlign(Control::RIGHT);
|
$popoutFrame->setHAlign(Control::RIGHT);
|
||||||
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
||||||
|
$popoutFrame->setVisible(false);
|
||||||
|
|
||||||
$backgroundQuad = new Quad();
|
$backgroundQuad = new Quad();
|
||||||
$popoutFrame->add($backgroundQuad);
|
$popoutFrame->add($backgroundQuad);
|
||||||
|
@ -535,9 +535,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$eraseLabel->setTextColor('a00');
|
$eraseLabel->setTextColor('a00');
|
||||||
|
|
||||||
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id, $map->uid);
|
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id, $map->uid);
|
||||||
//$script->addToggle($eraseLabel, $confirmFrame); //TODO
|
$script->addToggle($eraseLabel, $confirmFrame);
|
||||||
$script->addTooltip($eraseLabel, $confirmFrame, Script::OPTION_TOOLTIP_STAYONCLICK);
|
|
||||||
|
|
||||||
$script->addTooltip($eraseLabel, $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => 'Remove Map: $<' . $map->name . '$>'));
|
$script->addTooltip($eraseLabel, $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => 'Remove Map: $<' . $map->name . '$>'));
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -554,8 +552,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$switchLabel->setTextColor('0f0');
|
$switchLabel->setTextColor('0f0');
|
||||||
|
|
||||||
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id);
|
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id);
|
||||||
$script->addTooltip($switchLabel, $confirmFrame, Script::OPTION_TOOLTIP_STAYONCLICK); //TODO
|
$script->addToggle($switchLabel, $confirmFrame);
|
||||||
//$script->addToggle($switchLabel, $confirmFrame);
|
|
||||||
|
|
||||||
$script->addTooltip($switchLabel, $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => 'Switch Directly to Map: $<' . $map->name . '$>'));
|
$script->addTooltip($switchLabel, $descriptionLabel, array(Script::OPTION_TOOLTIP_TEXT => 'Switch Directly to Map: $<' . $map->name . '$>'));
|
||||||
|
|
||||||
@ -615,6 +612,7 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
|
|||||||
$confirmFrame = new Frame();
|
$confirmFrame = new Frame();
|
||||||
$maniaLink->add($confirmFrame);
|
$maniaLink->add($confirmFrame);
|
||||||
$confirmFrame->setPosition($width / 2 + 6, $y);
|
$confirmFrame->setPosition($width / 2 + 6, $y);
|
||||||
|
$confirmFrame->setVisible(false);
|
||||||
|
|
||||||
$quad = new Quad();
|
$quad = new Quad();
|
||||||
$confirmFrame->add($quad);
|
$confirmFrame->add($quad);
|
||||||
|
@ -575,6 +575,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
|
|||||||
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
||||||
$popoutFrame->setHAlign(Control::RIGHT);
|
$popoutFrame->setHAlign(Control::RIGHT);
|
||||||
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
||||||
|
$popoutFrame->setVisible(false);
|
||||||
|
|
||||||
$backgroundQuad = new Quad();
|
$backgroundQuad = new Quad();
|
||||||
$popoutFrame->add($backgroundQuad);
|
$popoutFrame->add($backgroundQuad);
|
||||||
|
@ -223,6 +223,7 @@ class DonationPlugin implements CallbackListener, CommandListener, Plugin {
|
|||||||
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
$popoutFrame->setPosition($posX - $itemSize * 0.5, $posY);
|
||||||
$popoutFrame->setHAlign(Control::RIGHT);
|
$popoutFrame->setHAlign(Control::RIGHT);
|
||||||
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
$popoutFrame->setSize(4 * $itemSize * $itemMarginFactorX, $itemSize * $itemMarginFactorY);
|
||||||
|
$popoutFrame->setVisible(false);
|
||||||
|
|
||||||
$quad = new Quad();
|
$quad = new Quad();
|
||||||
$popoutFrame->add($quad);
|
$popoutFrame->add($quad);
|
||||||
|
Loading…
Reference in New Issue
Block a user