@@ -169,6 +169,9 @@ |
||
| 169 | 169 | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $message |
|
| 174 | + */ |
|
| 172 | 175 | public function setMessage($message) |
| 173 | 176 | { |
| 174 | 177 | $this->label->setTextId($message); |
@@ -2,15 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Bundle\VoteManager\Plugins\Gui\Widget; |
| 4 | 4 | |
| 5 | -use eXpansion\Bundle\VoteManager\Plugins\Votes\AbstractVotePlugin; |
|
| 6 | 5 | use eXpansion\Bundle\VoteManager\Services\VoteService; |
| 7 | -use eXpansion\Bundle\VoteManager\Structures\Vote; |
|
| 8 | 6 | use eXpansion\Framework\Core\Model\Gui\ManialinkInterface; |
| 9 | 7 | use eXpansion\Framework\Core\Model\Gui\Widget; |
| 10 | 8 | use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext; |
| 11 | 9 | use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory; |
| 12 | 10 | use eXpansion\Framework\Gui\Builders\WidgetBackground; |
| 13 | -use eXpansion\Framework\Gui\Components\uiButton; |
|
| 14 | 11 | use eXpansion\Framework\Gui\Components\uiLabel; |
| 15 | 12 | use eXpansion\Framework\Gui\Ui\Factory; |
| 16 | 13 | use FML\Controls\Quad; |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | if (($time - $this->currentVote->getStartTime()) > $this->duration) { |
| 126 | 126 | $totalVotes = $this->currentVote->getYes() + $this->currentVote->getNo() * 1.0; |
| 127 | 127 | |
| 128 | - if ($totalVotes >= 1 && ($this->currentVote->getYes()/$totalVotes) > $this->ratio) { |
|
| 128 | + if ($totalVotes >= 1 && ($this->currentVote->getYes() / $totalVotes) > $this->ratio) { |
|
| 129 | 129 | $this->votePassed(); |
| 130 | 130 | } else { |
| 131 | 131 | $this->voteFailed(); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | public function getCode(): string |
| 78 | 78 | { |
| 79 | - return 'Exp_NextMap'; |
|
| 79 | + return 'Exp_NextMap'; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |