@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public function create($totalWidth, $columns, $index = 0, $height = 5.0, $autoNewLine = false, $maxLines = 1) |
| 59 | 59 | { |
| 60 | 60 | $totalCoef |
| 61 | - = ($totalWidth - 1) / array_reduce($columns, function ($carry, $item) { |
|
| 61 | + = ($totalWidth - 1) / array_reduce($columns, function($carry, $item) { |
|
| 62 | 62 | return $carry + $item['width']; |
| 63 | 63 | }); |
| 64 | 64 | |
@@ -2,12 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace eXpansion\Bundle\CustomUi\Plugins; |
| 4 | 4 | |
| 5 | -use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
|
| 6 | 5 | use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceExpApplication; |
| 7 | -use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyChat; |
|
| 8 | 6 | use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyPlayer; |
| 9 | 7 | use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface; |
| 10 | -use eXpansion\Framework\Core\Services\Console; |
|
| 11 | 8 | use eXpansion\Framework\Core\Storage\Data\Player; |
| 12 | 9 | use eXpansion\Framework\Core\Storage\PlayerStorage; |
| 13 | 10 | use Maniaplanet\DedicatedServer\Connection; |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | </ui_properties> |
| 136 | 136 | EOL; |
| 137 | 137 | |
| 138 | - // $this->connection->triggerModeScriptEvent('Trackmania.UI.SetProperties', [$properties]); |
|
| 138 | + // $this->connection->triggerModeScriptEvent('Trackmania.UI.SetProperties', [$properties]); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | /** |
@@ -3,7 +3,6 @@ discard block |
||
| 3 | 3 | namespace eXpansion\Bundle\Admin\Plugins\Gui; |
| 4 | 4 | |
| 5 | 5 | use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
| 6 | -use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyManialink; |
|
| 7 | 6 | use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory; |
| 8 | 7 | use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder; |
| 9 | 8 | use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory; |
@@ -11,12 +10,7 @@ discard block |
||
| 11 | 10 | use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext; |
| 12 | 11 | use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory; |
| 13 | 12 | use eXpansion\Framework\Core\Services\Console; |
| 14 | -use eXpansion\Framework\Gui\Components\uiAnimation; |
|
| 15 | -use eXpansion\Framework\Gui\Components\uiButton; |
|
| 16 | -use eXpansion\Framework\Gui\Components\uiLabel; |
|
| 17 | 13 | use FML\Controls\Frame; |
| 18 | -use FML\Controls\Label; |
|
| 19 | -use FML\Controls\Quad; |
|
| 20 | 14 | use Maniaplanet\DedicatedServer\Connection; |
| 21 | 15 | |
| 22 | 16 | |
@@ -3,17 +3,10 @@ discard block |
||
| 3 | 3 | namespace eXpansion\Bundle\Admin\Plugins\Gui; |
| 4 | 4 | |
| 5 | 5 | use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
| 6 | -use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyManialink; |
|
| 7 | -use eXpansion\Framework\Core\Model\Gui\Grid\DataCollectionFactory; |
|
| 8 | -use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilder; |
|
| 9 | -use eXpansion\Framework\Core\Model\Gui\Grid\GridBuilderFactory; |
|
| 10 | 6 | use eXpansion\Framework\Core\Model\Gui\ManialinkInterface; |
| 11 | 7 | use eXpansion\Framework\Core\Model\Gui\WindowFactoryContext; |
| 12 | -use eXpansion\Framework\Core\Model\UserGroups\Group; |
|
| 13 | -use eXpansion\Framework\Core\Plugins\Gui\GridWindowFactory; |
|
| 14 | 8 | use eXpansion\Framework\Core\Plugins\Gui\WindowFactory; |
| 15 | 9 | use eXpansion\Framework\Core\Services\Console; |
| 16 | -use eXpansion\Framework\Gui\Components\uiAnimation; |
|
| 17 | 10 | use eXpansion\Framework\Gui\Components\uiButton; |
| 18 | 11 | use eXpansion\Framework\Gui\Components\uiCheckbox; |
| 19 | 12 | use eXpansion\Framework\Gui\Components\uiDropdown; |
@@ -22,8 +15,6 @@ discard block |
||
| 22 | 15 | use eXpansion\Framework\Gui\Components\uiLabel; |
| 23 | 16 | use eXpansion\Framework\Gui\Components\uiTextbox; |
| 24 | 17 | use FML\Controls\Frame; |
| 25 | -use FML\Controls\Label; |
|
| 26 | -use FML\Controls\Quad; |
|
| 27 | 18 | use Maniaplanet\DedicatedServer\Connection; |
| 28 | 19 | use Maniaplanet\DedicatedServer\Structures\ServerOptions; |
| 29 | 20 | |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use eXpansion\Framework\Core\Model\Gui\Widget; |
| 9 | 9 | use eXpansion\Framework\Core\Model\Gui\WidgetFactoryContext; |
| 10 | 10 | use eXpansion\Framework\Core\Plugins\Gui\WidgetFactory; |
| 11 | -use eXpansion\Framework\Gui\Components\uiAnimation; |
|
| 12 | 11 | use eXpansion\Framework\Gui\Components\uiButton; |
| 13 | 12 | use eXpansion\Framework\Gui\Components\uiLabel; |
| 14 | 13 | use FML\Controls\Frame; |
@@ -29,7 +29,6 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Menu constructor. |
| 31 | 31 | * |
| 32 | - * @param Group $userGroups |
|
| 33 | 32 | * @param MenuFactory $menuGuiFactory |
| 34 | 33 | */ |
| 35 | 34 | public function __construct(PlayerStorage $playerStorage, MenuFactory $menuGuiFactory) |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | namespace eXpansion\Bundle\Menu\Plugins; |
| 5 | 5 | |
| 6 | 6 | use eXpansion\Bundle\Menu\Plugins\Gui\MenuFactory; |
| 7 | -use eXpansion\Framework\AdminGroups\Helpers\AdminGroups; |
|
| 8 | 7 | use eXpansion\Framework\Core\DataProviders\Listener\ListenerInterfaceMpLegacyMap; |
| 9 | 8 | use eXpansion\Framework\Core\Model\UserGroups\Group; |
| 10 | 9 | use eXpansion\Framework\Core\Plugins\StatusAwarePluginInterface; |
@@ -21,8 +21,6 @@ |
||
| 21 | 21 | * @param string $key |
| 22 | 22 | * @param string $name |
| 23 | 23 | * @param float $widthCoeficiency |
| 24 | - * @param boolean $sortable |
|
| 25 | - * @param boolean $translatable |
|
| 26 | 24 | */ |
| 27 | 25 | public function __construct($key, $name, $widthCoeficiency) |
| 28 | 26 | { |
@@ -171,8 +171,6 @@ |
||
| 171 | 171 | * @param string $key |
| 172 | 172 | * @param string $name |
| 173 | 173 | * @param integer $widthCoefficiency |
| 174 | - * @param bool $sortable |
|
| 175 | - * @param bool $translatable |
|
| 176 | 174 | * |
| 177 | 175 | * @return $this |
| 178 | 176 | */ |
@@ -11,13 +11,8 @@ |
||
| 11 | 11 | use eXpansion\Framework\Core\Model\Gui\ManialinkInterface; |
| 12 | 12 | use eXpansion\Framework\Core\Plugins\Gui\ActionFactory; |
| 13 | 13 | use eXpansion\Framework\Core\Plugins\Gui\ManialinkFactory; |
| 14 | -use eXpansion\Framework\Gui\Components\uiCheckbox; |
|
| 15 | -use eXpansion\Framework\Gui\Components\uiDropdown; |
|
| 16 | -use eXpansion\Framework\Gui\Components\uiInput; |
|
| 17 | 14 | use eXpansion\Framework\Gui\Components\uiTooltip; |
| 18 | 15 | use FML\Controls\Frame; |
| 19 | -use FML\Controls\Label; |
|
| 20 | -use FML\Script\Features\Tooltip; |
|
| 21 | 16 | use FML\Types\Renderable; |
| 22 | 17 | |
| 23 | 18 | |
@@ -80,6 +80,10 @@ discard block |
||
| 80 | 80 | $this->setSize($sizeX, $sizeY); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | + /** |
|
| 84 | + * @param double $x |
|
| 85 | + * @param double $y |
|
| 86 | + */ |
|
| 83 | 87 | public function setPosition($x, $y) |
| 84 | 88 | { |
| 85 | 89 | $this->startX = $x; |
@@ -217,6 +221,9 @@ discard block |
||
| 217 | 221 | } |
| 218 | 222 | |
| 219 | 223 | |
| 224 | + /** |
|
| 225 | + * @param string $class |
|
| 226 | + */ |
|
| 220 | 227 | public function addClass($class) |
| 221 | 228 | { |
| 222 | 229 | $this->frameClasses[] = $class; |