2013-11-28 17:36:39 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ManiaControl\Configurators;
|
|
|
|
|
|
|
|
use FML\Script\Pages;
|
2013-12-31 10:40:03 +01:00
|
|
|
use FML\Script\Script;
|
2013-11-28 17:36:39 +01:00
|
|
|
use FML\Script\Tooltips;
|
|
|
|
use ManiaControl\Players\Player;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for configurator menus
|
|
|
|
*
|
|
|
|
* @author steeffeen & kremsy
|
|
|
|
*/
|
|
|
|
interface ConfiguratorMenu {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the menu title
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getTitle();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configurator menu
|
|
|
|
*
|
2013-12-31 10:40:03 +01:00
|
|
|
* @param float $width
|
|
|
|
* @param float $height
|
|
|
|
* @param $pages temp removed
|
|
|
|
* @param \FML\Script\Script $script
|
|
|
|
* @internal param \FML\Script\Tooltips $tooltips
|
2013-11-28 17:36:39 +01:00
|
|
|
* @return \FML\Controls\Control
|
|
|
|
*/
|
2013-12-31 10:40:03 +01:00
|
|
|
public function getMenu($width, $height, $pages, Script $script);
|
2013-11-28 17:36:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Save the config data
|
|
|
|
*
|
|
|
|
* @param array $configData
|
|
|
|
* @param Player $player
|
|
|
|
*/
|
|
|
|
public function saveConfigData(array $configData, Player $player);
|
|
|
|
}
|