Constants

ACTION_TOGGLEMENU

ACTION_TOGGLEMENU

ACTION_SAVECONFIG

ACTION_SAVECONFIG

ACTION_SELECTMENU

ACTION_SELECTMENU

SETTING_MENU_POSX

SETTING_MENU_POSX

SETTING_MENU_POSY

SETTING_MENU_POSY

SETTING_MENU_WIDTH

SETTING_MENU_WIDTH

SETTING_MENU_HEIGHT

SETTING_MENU_HEIGHT

SETTING_MENU_STYLE

SETTING_MENU_STYLE

SETTING_MENU_SUBSTYLE

SETTING_MENU_SUBSTYLE

SETTING_PERMISSION_OPEN_CONFIGURATOR

SETTING_PERMISSION_OPEN_CONFIGURATOR

CACHE_MENU_SHOWN

CACHE_MENU_SHOWN

MENU_NAME

MENU_NAME

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Create a new configurator instance

Parameters

\ManiaControl\ManiaControl $maniaControl

handleConfigCommand()

handleConfigCommand(array  $callback, \ManiaControl\Players\Player  $player) 

Handle Config Admin Command

Parameters

array $callback
\ManiaControl\Players\Player $player

showMenu()

showMenu(\ManiaControl\Players\Player  $player, mixed  $menuId) 

Show the Menu to the Player

Parameters

\ManiaControl\Players\Player $player
mixed $menuId

getMenuId()

getMenuId(string  $title) : integer

Gets the Menu Id

Parameters

string $title

Returns

integer

handleToggleMenuAction()

handleToggleMenuAction(array  $callback, \ManiaControl\Players\Player  $player) 

Handle toggle menu action

Parameters

array $callback
\ManiaControl\Players\Player $player

toggleMenu()

toggleMenu(\ManiaControl\Players\Player  $player) 

Toggle the Menu for the Player

Parameters

\ManiaControl\Players\Player $player

closeWidget()

closeWidget(\ManiaControl\Players\Player  $player) 

Handle widget being closed

Parameters

\ManiaControl\Players\Player $player

handleSaveConfigAction()

handleSaveConfigAction(array  $callback, \ManiaControl\Players\Player  $player) 

Save the config data received from the manialink

Parameters

array $callback
\ManiaControl\Players\Player $player

handleWidgetOpened()

handleWidgetOpened(\ManiaControl\Players\Player  $player, string  $openedWidget) 

Unset the player if he opened another Main Widget

Parameters

\ManiaControl\Players\Player $player
string $openedWidget

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle ManialinkPageAnswer Callback

Parameters

array $callback

addActionsMenuItem()

addActionsMenuItem() 

Add Menu Item to the Actions Menu

buildManialink()

buildManialink(integer  $menuIdShown, \ManiaControl\Players\Player  $player = null) : \FML\ManiaLink

Build Menu ManiaLink if necessary

Parameters

integer $menuIdShown
\ManiaControl\Players\Player $player

Returns

\FML\ManiaLink