\ManiaControl\ConfiguratorManiaControlSettings

Class offering a Configurator for ManiaControl Settings

Summary

Methods
Properties
Constants
__construct()
getTitle()
getMenu()
handleManialinkPageAnswer()
saveConfigData()
No public properties found
TITLE
ACTION_PREFIX_SETTING
ACTION_PREFIX_SETTINGCLASS
ACTION_SETTINGCLASS_BACK
SETTING_PERMISSION_CHANGE_MC_SETTINGS
CACHE_CLASS_OPENED
No protected methods found
No protected properties found
N/A
getMenuSettingsForClass()
getMenuSettingClasses()
$maniaControl
N/A

Constants

TITLE

TITLE

ACTION_PREFIX_SETTING

ACTION_PREFIX_SETTING

ACTION_PREFIX_SETTINGCLASS

ACTION_PREFIX_SETTINGCLASS

ACTION_SETTINGCLASS_BACK

ACTION_SETTINGCLASS_BACK

SETTING_PERMISSION_CHANGE_MC_SETTINGS

SETTING_PERMISSION_CHANGE_MC_SETTINGS

CACHE_CLASS_OPENED

CACHE_CLASS_OPENED

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new ManiaControl Settings instance

Parameters

\ManiaControl\ManiaControl $maniaControl

getTitle()

getTitle() : string

Get the menu title

Returns

string

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle ManialinkPageAnswer Callback

Parameters

array $callback

saveConfigData()

saveConfigData(array  $configData, \ManiaControl\Players\Player  $player) 

Save the config data

Parameters

array $configData
\ManiaControl\Players\Player $player

getMenuSettingsForClass()

getMenuSettingsForClass(string  $settingClass, float  $width, float  $height, \FML\Script\Script  $script, \ManiaControl\Players\Player  $player) : \FML\Controls\Frame

Get the Menu showing the Settings for the given Class

Parameters

string $settingClass
float $width
float $height
\FML\Script\Script $script
\ManiaControl\Players\Player $player

Returns

\FML\Controls\Frame

getMenuSettingClasses()

getMenuSettingClasses(float  $width, float  $height, \FML\Script\Script  $script, \ManiaControl\Players\Player  $player) : \FML\Controls\Frame

Get the Menu showing all possible Classes

Parameters

float $width
float $height
\FML\Script\Script $script
\ManiaControl\Players\Player $player

Returns

\FML\Controls\Frame