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;
|
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Interface for Configurator Menus
|
2013-11-28 17:36:39 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen & kremsy
|
|
|
|
*/
|
|
|
|
interface ConfiguratorMenu {
|
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Get the Menu Title
|
2013-11-28 17:36:39 +01:00
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getTitle();
|
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Get the Configurator Menu Frame
|
2013-11-28 17:36:39 +01:00
|
|
|
*
|
2013-12-31 14:50:28 +01:00
|
|
|
* @param float $width
|
|
|
|
* @param float $height
|
|
|
|
* @param Script $script
|
|
|
|
* @return \FML\Controls\Frame
|
2013-11-28 17:36:39 +01:00
|
|
|
*/
|
2013-12-31 14:50:28 +01:00
|
|
|
public function getMenu($width, $height, Script $script);
|
2013-11-28 17:36:39 +01:00
|
|
|
|
|
|
|
/**
|
2013-12-31 14:50:28 +01:00
|
|
|
* Save the Config Data
|
|
|
|
*
|
|
|
|
* @param array $configData
|
|
|
|
* @param Player $player
|
2013-11-28 17:36:39 +01:00
|
|
|
*/
|
|
|
|
public function saveConfigData(array $configData, Player $player);
|
|
|
|
}
|