FML Improvements
This commit is contained in:
		| @@ -20,18 +20,6 @@ class FrameInstance extends Control { | ||||
| 	/** @var FrameModel $model */ | ||||
| 	protected $model = null; | ||||
|  | ||||
| 	/** | ||||
| 	 * Create a new Frame Instance | ||||
| 	 * | ||||
| 	 * @param string $modelId   (optional) Frame Model Id | ||||
| 	 * @param string $controlId (optional) Control Id | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public static function create($modelId = null, $controlId = null) { | ||||
| 		$frameInstance = new FrameInstance($modelId, $controlId); | ||||
| 		return $frameInstance; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new Frame Instance | ||||
| 	 * | ||||
| @@ -58,6 +46,25 @@ class FrameInstance extends Control { | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Create a new Frame Instance | ||||
| 	 * | ||||
| 	 * @param string $modelId   (optional) Frame Model Id | ||||
| 	 * @param string $controlId (optional) Control Id | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public static function create($modelId = null, $controlId = null) { | ||||
| 		$frameInstance = new FrameInstance($modelId, $controlId); | ||||
| 		return $frameInstance; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * @see \FML\Controls\Control::getManiaScriptClass() | ||||
| 	 */ | ||||
| 	public function getManiaScriptClass() { | ||||
| 		return 'CMlFrame'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set Frame Model to use | ||||
| 	 * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user