Constants

ACTION_UPDATE_MAP

ACTION_UPDATE_MAP

ACTION_REMOVE_MAP

ACTION_REMOVE_MAP

ACTION_SWITCH_MAP

ACTION_SWITCH_MAP

ACTION_START_SWITCH_VOTE

ACTION_START_SWITCH_VOTE

ACTION_QUEUED_MAP

ACTION_QUEUED_MAP

ACTION_UNQUEUE_MAP

ACTION_UNQUEUE_MAP

ACTION_CHECK_UPDATE

ACTION_CHECK_UPDATE

ACTION_CLEAR_MAPQUEUE

ACTION_CLEAR_MAPQUEUE

ACTION_PAGING_CHUNKS

ACTION_PAGING_CHUNKS

ACTION_SEARCH_MAP_NAME

ACTION_SEARCH_MAP_NAME

ACTION_SEARCH_AUTHOR

ACTION_SEARCH_AUTHOR

MAX_MAPS_PER_PAGE

MAX_MAPS_PER_PAGE

MAX_PAGES_PER_CHUNK

MAX_PAGES_PER_CHUNK

DEFAULT_KARMA_PLUGIN

DEFAULT_KARMA_PLUGIN

DEFAULT_CUSTOM_VOTE_PLUGIN

DEFAULT_CUSTOM_VOTE_PLUGIN

CACHE_CURRENT_PAGE

CACHE_CURRENT_PAGE

WIDGET_NAME

WIDGET_NAME

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new map list instance

Parameters

\ManiaControl\ManiaControl $maniaControl

clearMapQueue()

clearMapQueue(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Clear the Map Queue

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

checkUpdates()

checkUpdates(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Check for Map Updates

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

showMapList()

showMapList(\ManiaControl\Players\Player  $player, array<mixed,\ManiaControl\Maps\Map>  $mapList = null, integer  $pageIndex = -1) 

Display a MapList on the Screen

Parameters

\ManiaControl\Players\Player $player
array<mixed,\ManiaControl\Maps\Map> $mapList
integer $pageIndex

buildConfirmFrame()

buildConfirmFrame(\FML\ManiaLink  $maniaLink, float  $posY, boolean  $mapUid, boolean  $remove = false) : \FML\Controls\Frame

Builds the confirmation frame

Parameters

\FML\ManiaLink $maniaLink
float $posY
boolean $mapUid
boolean $remove

Returns

\FML\Controls\Frame

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

playerCloseWidget()

playerCloseWidget(\ManiaControl\Players\Player  $player) 

Close the widget for

Parameters

\ManiaControl\Players\Player $player

updateWidget()

updateWidget() 

Reopen the widget on Map Begin, MapListChanged, etc.

getChunkIndexFromPageNumber()

getChunkIndexFromPageNumber(integer  $pageIndex) : integer

Get the Chunk Index with the given Page Index

Parameters

integer $pageIndex

Returns

integer

getChunkMapsBeginIndex()

getChunkMapsBeginIndex(integer  $chunkIndex) : integer

Calculate the First Map Index to show for the given Chunk

Parameters

integer $chunkIndex

Returns

integer