actions menu fix

This commit is contained in:
Steffen Schröder
2014-04-27 19:22:20 +02:00
parent ca5b30d9e1
commit 26ad7c927e
2 changed files with 24 additions and 17 deletions

View File

@ -5,7 +5,6 @@ namespace FML\Controls;
use FML\Types\Renderable;
use FML\Script\Features\ActionTrigger;
use FML\Script\ScriptLabel;
use FML\Types\ScriptFeatureable;
use FML\Script\Features\MapInfo;
use FML\Script\Features\PlayerProfile;
@ -369,6 +368,16 @@ abstract class Control implements Renderable, ScriptFeatureable {
return $this;
}
/**
* Remove all Script Features
*
* @return \FML\Controls\Control
*/
public function removeScriptFeatures() {
$this->scriptFeatures = array();
return $this;
}
/**
*
* @see \FML\Types\ScriptFeatureable::getScriptFeatures()