diff --git a/application/plugins/CustomVotes.php b/application/plugins/CustomVotes.php index dca45aac..b0e9f6d3 100644 --- a/application/plugins/CustomVotes.php +++ b/application/plugins/CustomVotes.php @@ -221,6 +221,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP * @param array $callback */ public function handleManialinkPageAnswer(array $callback) { + var_dump($callback); //TODO Fx buttons $actionId = $callback[1][2]; @@ -489,6 +490,7 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP $quad->setSubStyle($quad::SUBSTYLE_BgPlayerCardBig); $quad->setSize(5, 5); $quad->setAction(self::ACTION_NEGATIVE_VOTE); + $quad->setActionKey($quad::ACTIONKEY_F5); $label = new Label_Button(); $frame->add($label); @@ -499,18 +501,19 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP $label->setTextSize(1); $label->setSize(3, 3); $label->setTextColor("F00"); - $label->setText("F1"); + $label->setText("F5"); $quad = clone $quad; $frame->add($quad); $quad->setX($width / 2 - 4); $quad->setAction(self::ACTION_POSITIVE_VOTE); + $quad->setActionKey($quad::ACTIONKEY_F6); $label = clone $label; $frame->add($label); $label->setX($width / 2 - 4); $label->setTextColor("0F0"); - $label->setText("F2"); + $label->setText("F6"); // Send manialink $manialinkText = $maniaLink->render()->saveXML();