- deleted test plugin
- added FML Library
This commit is contained in:
		
							
								
								
									
										32
									
								
								application/FML/Controls/Audio.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								application/FML/Controls/Audio.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| /** | ||||
|  * Class representing audio (CMlMediaPlayer) | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Audio extends Control implements Playable, Scriptable { | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new audio control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'audio'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										262
									
								
								application/FML/Controls/Control.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										262
									
								
								application/FML/Controls/Control.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,262 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Renderable; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlControl | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| abstract class Control implements Renderable { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const CENTER = 'center'; | ||||
| 	const CENTER2 = 'center2'; | ||||
| 	const TOP = 'top'; | ||||
| 	const RIGHT = 'right'; | ||||
| 	const BOTTOM = 'bottom'; | ||||
| 	const LEFT = 'left'; | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $tagName = 'control'; | ||||
| 	protected $id = ''; | ||||
| 	protected $x = 0.; | ||||
| 	protected $y = 0.; | ||||
| 	protected $z = 0.; | ||||
| 	protected $width = -1.; | ||||
| 	protected $height = -1.; | ||||
| 	protected $hAlign = self::CENTER; | ||||
| 	protected $vAlign = self::CENTER2; | ||||
| 	protected $scale = 1.; | ||||
| 	protected $hidden = 0; | ||||
| 	protected $classes = array(); | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		if ($id !== null) { | ||||
| 			$this->setId($id); | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Get control id | ||||
| 	 * | ||||
| 	 * @return string | ||||
| 	 */ | ||||
| 	public function getId() { | ||||
| 		return $this->id; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set control id | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setId($id) { | ||||
| 		$this->id = $id; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Assign an unique id if necessary | ||||
| 	 * | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function assignId() { | ||||
| 		if ($this->getId()) { | ||||
| 			return $this; | ||||
| 		} | ||||
| 		$this->setId(uniqid()); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set x position | ||||
| 	 * | ||||
| 	 * @param real $x        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setX($x) { | ||||
| 		$this->x = $x; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set y position | ||||
| 	 * | ||||
| 	 * @param real $y        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setY($y) { | ||||
| 		$this->y = $y; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set z position | ||||
| 	 * | ||||
| 	 * @param real $z        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setZ($z) { | ||||
| 		$this->z = $z; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set position | ||||
| 	 * | ||||
| 	 * @param real $x        	 | ||||
| 	 * @param real $y        	 | ||||
| 	 * @param real $z        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setPosition($x = null, $y = null, $z = null) { | ||||
| 		if ($x !== null) { | ||||
| 			$this->setX($x); | ||||
| 		} | ||||
| 		if ($y !== null) { | ||||
| 			$this->setY($y); | ||||
| 		} | ||||
| 		if ($z !== null) { | ||||
| 			$this->setZ($z); | ||||
| 		} | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set size | ||||
| 	 * | ||||
| 	 * @param real $width        	 | ||||
| 	 * @param real $height        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setSize($width = null, $height = null) { | ||||
| 		if ($width !== null) { | ||||
| 			$this->width = $width; | ||||
| 		} | ||||
| 		if ($height !== null) { | ||||
| 			$this->height = $height; | ||||
| 		} | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set horizontal alignment | ||||
| 	 * | ||||
| 	 * @param string $hAlign        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setHAlign($hAlign) { | ||||
| 		$this->hAlign = $hAlign; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set vertical alignment | ||||
| 	 * | ||||
| 	 * @param string $vAlign        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setVAlign($vAlign) { | ||||
| 		$this->vAlign = $vAlign; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set horizontal and vertical alignment | ||||
| 	 * | ||||
| 	 * @param string $halign        	 | ||||
| 	 * @param string $vAlign        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setAlign($halign, $vAlign) { | ||||
| 		$this->setHAlign($hAlign); | ||||
| 		$this->setVAlign($vAlign); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set scale | ||||
| 	 * | ||||
| 	 * @param real $scale        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setScale($scale) { | ||||
| 		$this->scale = $scale; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set visible | ||||
| 	 * | ||||
| 	 * @param bool $visible        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function setVisible($visible) { | ||||
| 		$this->hidden = ($visible ? 0 : 1); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Add class name | ||||
| 	 * | ||||
| 	 * @param string $class        	 | ||||
| 	 * @return \FML\Controls\Control | ||||
| 	 */ | ||||
| 	public function addClass($class) { | ||||
| 		array_push($this->classes, $class); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Renderable::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = $domDocument->createElement($this->tagName); | ||||
| 		if ($this->id) { | ||||
| 			$xml->setAttribute('id', $this->id); | ||||
| 		} | ||||
| 		if ($this->x !== 0. || $this->y !== 0. || $this->z !== 0.) { | ||||
| 			$xml->setAttribute('posn', "{$this->x} {$this->y} {$this->z}"); | ||||
| 		} | ||||
| 		if ($this->width >= 0. || $this->height >= 0.) { | ||||
| 			$xml->setAttribute('sizen', "{$this->width} {$this->height}"); | ||||
| 		} | ||||
| 		if (get_class($this) !== Frame::getClass()) { | ||||
| 			if ($this->hAlign) { | ||||
| 				$xml->setAttribute('halign', $this->hAlign); | ||||
| 			} | ||||
| 			if ($this->vAlign) { | ||||
| 				$xml->setAttribute('valign', $this->vAlign); | ||||
| 			} | ||||
| 		} | ||||
| 		if ($this->scale !== 1.) { | ||||
| 			$xml->setAttribute('scale', $this->scale); | ||||
| 		} | ||||
| 		if ($this->hidden) { | ||||
| 			$xml->setAttribute('hidden', $this->hidden); | ||||
| 		} | ||||
| 		$classes = ''; | ||||
| 		foreach ($this->classes as $class) { | ||||
| 			$classes .= $class . ' '; | ||||
| 		} | ||||
| 		if ($classes) { | ||||
| 			$xml->setAttribute('class', $classes); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										65
									
								
								application/FML/Controls/Entry.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										65
									
								
								application/FML/Controls/Entry.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,65 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlEntry | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Entry extends Control implements NewLineable, Scriptable, Styleable, TextFormatable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $name = ''; | ||||
| 	protected $default = null; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new entry control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'entry'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set name | ||||
| 	 * | ||||
| 	 * @param string $name        	 | ||||
| 	 * @return \FML\Controls\Entry | ||||
| 	 */ | ||||
| 	public function setName($name) { | ||||
| 		$this->name = $name; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set default | ||||
| 	 * | ||||
| 	 * @param string $default        	 | ||||
| 	 * @return \FML\Controls\Entry | ||||
| 	 */ | ||||
| 	public function setDefault($default) { | ||||
| 		$this->default = $default; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		if ($this->name) { | ||||
| 			$xml->setAttribute('name', $this->name); | ||||
| 		} | ||||
| 		if ($this->default !== null) { | ||||
| 			$xml->setAttribute('default', $this->default); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										48
									
								
								application/FML/Controls/FileEntry.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								application/FML/Controls/FileEntry.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlFileEntry | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class FileEntry extends Entry { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $folder = ''; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new fileentry control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'fileentry'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set folder | ||||
| 	 * | ||||
| 	 * @param string $folder        	 | ||||
| 	 * @return \FML\Controls\FileEntry | ||||
| 	 */ | ||||
| 	public function setFolder($folder) { | ||||
| 		$this->folder = $folder; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Entry::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		$xml->setAttribute('folder', $this->folder); | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										72
									
								
								application/FML/Controls/Frame.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										72
									
								
								application/FML/Controls/Frame.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,72 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Container; | ||||
| use FML\Types\Renderable; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlFrame | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Frame extends Control implements Container { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $children = array(); | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new frame control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'frame'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Container::add() | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public function add(Renderable $child) { | ||||
| 		array_push($this->children, $child); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Container::removeChildren() | ||||
| 	 * @return \FML\Controls\Frame | ||||
| 	 */ | ||||
| 	public function removeChildren() { | ||||
| 		$this->children = array(); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Renderable::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		foreach ($this->children as $child) { | ||||
| 			$childXml = $child->render($domDocument); | ||||
| 			$xml->appendChild($childXml); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Return class name | ||||
| 	 *  | ||||
| 	 * @return string | ||||
| 	 */ | ||||
| 	public static function getClass() { | ||||
| 		return __CLASS__; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										66
									
								
								application/FML/Controls/Frame3d.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										66
									
								
								application/FML/Controls/Frame3d.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,66 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Scriptable; | ||||
|  | ||||
| /** | ||||
|  * Class representing frame3d elements (CMlFrame) | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Frame3d extends Frame implements Scriptable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $style3d = ''; | ||||
| 	protected $scriptEvents = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new frame3d control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'frame3d'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set style3d | ||||
| 	 * | ||||
| 	 * @param string $style3d        	 | ||||
| 	 * @return \FML\Controls\Frame3d | ||||
| 	 */ | ||||
| 	public function setStyle3d($style3d) { | ||||
| 		$this->style3d = $style3d; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Scriptable::setScriptEvents() | ||||
| 	 * @return \FML\Controls\Frame3d | ||||
| 	 */ | ||||
| 	public function setScriptEvents($scriptEvents) { | ||||
| 		$this->scriptEvents = ($scriptEvents ? 1 : 0); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Controls\Frame::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		if ($this->style3d) { | ||||
| 			$xml->setAttribute('style3d', $this->style3d); | ||||
| 		} | ||||
| 		if ($this->scriptEvents) { | ||||
| 			$xml->setAttribute('scriptevents', $this->scriptEvents); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										112
									
								
								application/FML/Controls/Gauge.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								application/FML/Controls/Gauge.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,112 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlGauge | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Gauge extends Control implements Styleable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $ratio = 1.; | ||||
| 	protected $grading = 1.; | ||||
| 	protected $rotation = 0.; | ||||
| 	protected $centered = 0; | ||||
| 	protected $clan = 0; | ||||
| 	protected $drawBg = 1; | ||||
| 	protected $drawBlockBg = 1; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new gauge control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->name = 'gauge'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set ratio | ||||
| 	 * | ||||
| 	 * @param real $ratio        	 | ||||
| 	 */ | ||||
| 	public function setRatio($ratio) { | ||||
| 		$this->ratio = $ratio; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set grading | ||||
| 	 * | ||||
| 	 * @param real $grading        	 | ||||
| 	 */ | ||||
| 	public function setGrading($grading) { | ||||
| 		$this->grading = $grading; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set rotation | ||||
| 	 * | ||||
| 	 * @param real $rotation        	 | ||||
| 	 */ | ||||
| 	public function setRotation($rotation) { | ||||
| 		$this->rotation = $rotation; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set centered | ||||
| 	 * | ||||
| 	 * @param bool $centered        	 | ||||
| 	 */ | ||||
| 	public function setCentered($centered) { | ||||
| 		$this->centered = ($centered ? 1 : 0); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set clan | ||||
| 	 * | ||||
| 	 * @param int $clan        	 | ||||
| 	 */ | ||||
| 	public function setClan($clan) { | ||||
| 		$this->clan = $clan; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set draw background | ||||
| 	 * | ||||
| 	 * @param bool $drawBg        	 | ||||
| 	 */ | ||||
| 	public function setDrawBg($drawBg) { | ||||
| 		$this->drawBg = ($drawBg ? 1 : 0); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set draw block background | ||||
| 	 * | ||||
| 	 * @param bool $drawBlockBg        	 | ||||
| 	 */ | ||||
| 	public function setDrawBlockBg($drawBlockBg) { | ||||
| 		$this->drawBlockBg = ($drawBlockBg ? 1 : 0); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		$xml->setAttribute('ratio', $this->ratio); | ||||
| 		$xml->setAttribute('grading', $this->grading); | ||||
| 		$xml->setAttribute('rotation', $this->rotation); | ||||
| 		$xml->setAttribute('centered', $this->centered); | ||||
| 		$xml->setAttribute('clan', $this->clan); | ||||
| 		$xml->setAttribute('drawbg', $this->drawBg); | ||||
| 		$xml->setAttribute('drawblockbg', $this->drawBlockBg); | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										228
									
								
								application/FML/Controls/Label.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										228
									
								
								application/FML/Controls/Label.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,228 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\Linkable; | ||||
| use FML\Types\NewLineable; | ||||
| use FML\Types\Scriptable; | ||||
| use FML\Types\Styleable; | ||||
| use FML\Types\TextFormatable; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlLabel | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Label extends Control implements Linkable, NewLineable, Scriptable, Styleable, TextFormatable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $text = ''; | ||||
| 	protected $textPrefix = ''; | ||||
| 	protected $textEmboss = 0; | ||||
| 	protected $maxLines = 0; | ||||
| 	protected $url = ''; | ||||
| 	protected $manialink = ''; | ||||
| 	protected $autoNewLine = 0; | ||||
| 	protected $scriptEvents = 0; | ||||
| 	protected $style = ''; | ||||
| 	protected $textSize = -1; | ||||
| 	protected $textColor = ''; | ||||
| 	protected $areaColor = ''; | ||||
| 	protected $areaFocusColor = ''; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct label control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'label'; | ||||
| 		$this->setZ(1); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set text | ||||
| 	 * | ||||
| 	 * @param string $text        	 | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setText($text) { | ||||
| 		$this->text = $text; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set text prefix | ||||
| 	 * | ||||
| 	 * @param string $textPrefix        	 | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setTextPrefix($textPrefix) { | ||||
| 		$this->textPrefix = $textPrefix; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set text emboss | ||||
| 	 * | ||||
| 	 * @param bool $textEmboss        	 | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setTextEmboss($textEmboss) { | ||||
| 		$this->textEmboss = ($textEmboss ? 1 : 0); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set max lines | ||||
| 	 * | ||||
| 	 * @param int $maxLines        	 | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setMaxLines($maxLines) { | ||||
| 		$this->maxLines = $maxLines; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Linkable::setUrl() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setUrl($url) { | ||||
| 		$this->url = $url; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Linkable::setManialink() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setManialink($manialink) { | ||||
| 		$this->manialink = $manialink; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\NewLineable::setAutoNewLine() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setAutoNewLine($autoNewLine) { | ||||
| 		$this->autoNewLine = ($autoNewLine ? 1 : 0); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Scriptable::setScriptEvents() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setScriptEvents($scriptEvents) { | ||||
| 		$this->scriptEvents = ($scriptEvents ? 1 : 0); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Styleable::setStyle() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setStyle($style) { | ||||
| 		$this->style = $style; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\TextFormatable::setTextSize() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setTextSize($textSize) { | ||||
| 		$this->textSize = $textSize; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\TextFormatable::setTextColor() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setTextColor($textColor) { | ||||
| 		$this->textColor = $textColor; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\TextFormatable::setAreaColor() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setAreaColor($areaColor) { | ||||
| 		$this->areaColor = $areaColor; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\TextFormatable::setAreaFocusColor() | ||||
| 	 * @return \FML\Controls\Label | ||||
| 	 */ | ||||
| 	public function setAreaFocusColor($areaFocusColor) { | ||||
| 		$this->areaFocusColor = $areaFocusColor; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		if ($this->text) { | ||||
| 			$xml->setAttribute('text', $this->text); | ||||
| 		} | ||||
| 		if ($this->textPrefix) { | ||||
| 			$xml->setAttribute('textprefix', $this->textPrefix); | ||||
| 		} | ||||
| 		if ($this->textEmboss) { | ||||
| 			$xml->setAttribute('textemboss', $this->textEmboss); | ||||
| 		} | ||||
| 		if ($this->maxLines) { | ||||
| 			$xml->setAttribute('maxlines', $this->maxLines); | ||||
| 		} | ||||
| 		if ($this->url) { | ||||
| 			$xml->setAttribute('url', $this->url); | ||||
| 		} | ||||
| 		if ($this->manialink) { | ||||
| 			$xml->setAttribute('manialink', $this->manialink); | ||||
| 		} | ||||
| 		if ($this->autoNewLine) { | ||||
| 			$xml->setAttribute('autonewline', $this->autoNewLine); | ||||
| 		} | ||||
| 		if ($this->scriptEvents) { | ||||
| 			$xml->setAttribute('scriptevents', $this->scriptEvents); | ||||
| 		} | ||||
| 		if ($this->style) { | ||||
| 			$xml->setAttribute('style', $this->style); | ||||
| 		} | ||||
| 		if ($this->textSize >= 0) { | ||||
| 			$xml->setAttribute('textsize', $this->textSize); | ||||
| 		} | ||||
| 		if ($this->textColor) { | ||||
| 			$xml->setAttribute('textcolor', $this->textColor); | ||||
| 		} | ||||
| 		if ($this->areaColor) { | ||||
| 			$xml->setAttribute('areacolor', $this->areaColor); | ||||
| 		} | ||||
| 		if ($this->areaFocusColor) { | ||||
| 			$xml->setAttribute('areafocuscolor', $this->areaFocusColor); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										37
									
								
								application/FML/Controls/Labels/Label_Button.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								application/FML/Controls/Labels/Label_Button.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Labels; | ||||
|  | ||||
| use FML\Controls\Label; | ||||
|  | ||||
| /** | ||||
|  * Label class for button styles | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Label_Button extends Label { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE_CardButtonMedium = 'CardButtonMedium'; | ||||
| 	const STYLE_CardButtonMediumL = 'CardButtonMediumL'; | ||||
| 	const STYLE_CardButtonMediumS = 'CardButtonMediumS'; | ||||
| 	const STYLE_CardButtonMediumWide = 'CardButtonMediumWide'; | ||||
| 	const STYLE_CardButtonMediumXL = 'CardButtonMediumXL'; | ||||
| 	const STYLE_CardButtonMediumXS = 'CardButtonMediumXS'; | ||||
| 	const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL'; | ||||
| 	const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL'; | ||||
| 	const STYLE_CardButtonSmall = 'CardButtonSmall'; | ||||
| 	const STYLE_CardButtonSmallL = 'CardButtonSmallL'; | ||||
| 	const STYLE_CardButtonSmallS = 'CardButtonSmallS'; | ||||
| 	const STYLE_CardButtonSmallS = 'CardButtonSmallS'; | ||||
| 	const STYLE_CardButtonSmallWide = 'CardButtonSmallWide'; | ||||
| 	const STYLE_CardButtonSmallXL = 'CardButtonSmallXL'; | ||||
| 	const STYLE_CardButtonSmallXS = 'CardButtonSmallXS'; | ||||
| 	const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL'; | ||||
| 	const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL'; | ||||
| 	const STYLE_CardMain_Quit = 'CardMain_Quit'; | ||||
| 	const STYLE_CardMain_Tool = 'CardMain_Tool'; | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										93
									
								
								application/FML/Controls/Labels/Label_Text.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										93
									
								
								application/FML/Controls/Labels/Label_Text.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,93 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Labels; | ||||
|  | ||||
| use FML\Controls\Label; | ||||
|  | ||||
| /** | ||||
|  * Label class for text styles | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Label_Text extends Label { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE_AvatarButtonNormal = 'AvatarButtonNormal'; | ||||
| 	const STYLE_BgMainMenuTitleHeader = 'BgMainMenuTitleHeader'; | ||||
| 	const STYLE_Default = 'Default'; | ||||
| 	const STYLE_FrameTransitionFromLeft = 'FrameTransitionFromLeft'; | ||||
| 	const STYLE_FrameTransitionsFromRight = 'FrameTransitionsFromRight'; | ||||
| 	const STYLE_ListItemMedal = 'ListItemMedal'; | ||||
| 	const STYLE_Manialink_Body = 'Manialink_Body'; | ||||
| 	const STYLE_ProgressBar = 'ProgressBar'; | ||||
| 	const STYLE_ProgressBarSmall = 'ProgressBarSmall'; | ||||
| 	const STYLE_SliderSmall = 'SliderSmall'; | ||||
| 	const STYLE_SliderVolume = 'SliderVolume'; | ||||
| 	const STYLE_StyleTextScriptEditor = 'StyleTextScriptEditor'; | ||||
| 	const STYLE_StyleValueYellowSmall = 'StyleValueYellowSmall'; | ||||
| 	const STYLE_TextActionMaker = 'TextActionMaker'; | ||||
| 	const STYLE_TextButtonBig = 'TextButtonBig'; | ||||
| 	const STYLE_TextButtonMedium = 'TextButtonMedium'; | ||||
| 	const STYLE_TextButtonNav = 'TextButtonNav'; | ||||
| 	const STYLE_TextButtonNavBack = 'TextButtonNavBack'; | ||||
| 	const STYLE_TextButtonSmall = 'TextButtonSmall'; | ||||
| 	const STYLE_TextCardInfoSmall = 'TextCardInfoSmall'; | ||||
| 	const STYLE_TextCardInfoVerySmall = 'TextCardInfoVerySmall'; | ||||
| 	const STYLE_TextCardMedium = 'TextCardMedium'; | ||||
| 	const STYLE_TextCardRaceRank = 'TextCardRaceRank'; | ||||
| 	const STYLE_TextCardScores2 = 'TextCardScores2'; | ||||
| 	const STYLE_TextCardSmall = 'TextCardSmall'; | ||||
| 	const STYLE_TextCardSmallScores2 = 'TextCardSmallScores2'; | ||||
| 	const STYLE_TextCardSmallScores2Rank = 'TextCardSmallScores2Rank'; | ||||
| 	const STYLE_TextChallengeNameMedal = 'TextChallengeNameMedal'; | ||||
| 	const STYLE_TextChallengeNameMedalNone = 'TextChallengeNameMedalNone'; | ||||
| 	const STYLE_TextChallengeNameMedium = 'TextChallengeNameMedium'; | ||||
| 	const STYLE_TextChallengeNameSmall = 'TextChallengeNameSmall'; | ||||
| 	const STYLE_TextCongratsBig = 'TextCongratsBig'; | ||||
| 	const STYLE_TextCredits = 'TextCredits'; | ||||
| 	const STYLE_TextCreditsTitle = 'TextCreditsTitle'; | ||||
| 	const STYLE_TextEditorArticle = 'TextEditorArticle'; | ||||
| 	const STYLE_TextInfoMedium = 'TextInfoMedium'; | ||||
| 	const STYLE_TextInfoSmall = 'TextInfoSmall'; | ||||
| 	const STYLE_TextPlayerCardName = 'TextPlayerCardName'; | ||||
| 	const STYLE_TextPlayerCardScore = 'TextPlayerCardScore'; | ||||
| 	const STYLE_TextRaceChat = 'TextRaceChat'; | ||||
| 	const STYLE_TextRaceChrono = 'TextRaceChrono'; | ||||
| 	const STYLE_TextRaceChronoError = 'TextRaceChronoError'; | ||||
| 	const STYLE_TextRaceChronoOfficial = 'TextRaceChronoOfficial'; | ||||
| 	const STYLE_TextRaceChronoWarning = 'TextRaceChronoWarning'; | ||||
| 	const STYLE_TextRaceMessage = 'TextRaceMessage'; | ||||
| 	const STYLE_TextRaceMessageBig = 'TextRaceMessageBig'; | ||||
| 	const STYLE_TextRaceStaticSmall = 'TextRaceStaticSmall'; | ||||
| 	const STYLE_TextRaceValueSmall = 'TextRaceValueSmall'; | ||||
| 	const STYLE_TextRankingsBig = 'TextRankingsBig'; | ||||
| 	const STYLE_TextSPScoreBig = 'TextSPScoreBig'; | ||||
| 	const STYLE_TextSPScoreMedium = 'TextSPScoreMedium'; | ||||
| 	const STYLE_TextSPScoreSmall = 'TextSPScoreSmall'; | ||||
| 	const STYLE_TextStaticMedium = 'TextStaticMedium'; | ||||
| 	const STYLE_TextStaticSmall = 'TextStaticSmall'; | ||||
| 	const STYLE_TextStaticVerySmall = 'TextStaticVerySmall'; | ||||
| 	const STYLE_TextSubTitle1 = 'TextSubTitle1'; | ||||
| 	const STYLE_TextSubTitle2 = 'TextSubTitle2'; | ||||
| 	const STYLE_TextTips = 'TextTips'; | ||||
| 	const STYLE_TextTitle1 = 'TextTitle1'; | ||||
| 	const STYLE_TextTitle2 = 'TextTitle2'; | ||||
| 	const STYLE_TextTitle2Blink = 'TextTitle2Blink'; | ||||
| 	const STYLE_TextTitle3 = 'TextTitle3'; | ||||
| 	const STYLE_TextTitle3Header = 'TextTitle3Header'; | ||||
| 	const STYLE_TextTitleError = 'TextTitleError'; | ||||
| 	const STYLE_TextValueBig = 'TextValueBig'; | ||||
| 	const STYLE_TextValueMedium = 'TextValueMedium'; | ||||
| 	const STYLE_TextValueSmall = 'TextValueSmall'; | ||||
| 	const STYLE_TextValueSmallSm = 'TextValueSmallSm'; | ||||
| 	const STYLE_TrackerText = 'TrackerText'; | ||||
| 	const STYLE_TrackerTextBig = 'TrackerTextBig'; | ||||
| 	const STYLE_TrackListItem = 'TrackListItem'; | ||||
| 	const STYLE_TrackListLine = 'TrackListLine'; | ||||
| 	const STYLE_UiDriving_BgBottom = 'UiDriving_BgBottom'; | ||||
| 	const STYLE_UiDriving_BgCard = 'UiDriving_BgCard'; | ||||
| 	const STYLE_UiDriving_BgCenter = 'UiDriving_BgCenter'; | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										197
									
								
								application/FML/Controls/Quad.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										197
									
								
								application/FML/Controls/Quad.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,197 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| use FML\Types\BgColorable; | ||||
| use FML\Types\Linkable; | ||||
| use FML\Types\Scriptable; | ||||
| use FML\Types\Styleable; | ||||
| use FML\Types\SubStyleable; | ||||
|  | ||||
| /** | ||||
|  * Class representing CMlQuad | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad extends Control implements BgColorable, Linkable, Scriptable, Styleable, SubStyleable { | ||||
| 	/** | ||||
| 	 * Protected properties | ||||
| 	 */ | ||||
| 	protected $image = ''; | ||||
| 	protected $imageFocus = ''; | ||||
| 	protected $colorize = ''; | ||||
| 	protected $modulizeColor = ''; | ||||
| 	protected $bgColor = ''; | ||||
| 	protected $url = ''; | ||||
| 	protected $manialink = ''; | ||||
| 	protected $scriptEvents = 0; | ||||
| 	protected $style = ''; | ||||
| 	protected $subStyle = ''; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new quad control | ||||
| 	 * | ||||
| 	 * @param string $id        	 | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'quad'; | ||||
| 		$this->setZ(-1); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set image | ||||
| 	 * | ||||
| 	 * @param string $image        	 | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setImage($image) { | ||||
| 		$this->image = $image; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set focus image | ||||
| 	 * | ||||
| 	 * @param string $imageFocus        	 | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setImageFocus($imageFocus) { | ||||
| 		$this->imageFocus = $imageFocus; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set colorize | ||||
| 	 * | ||||
| 	 * @param string $colorize        	 | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setColorize($colorize) { | ||||
| 		$this->colorize = $colorize; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Set modulize color | ||||
| 	 * | ||||
| 	 * @param string $modulizeColor        	 | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setModulizeColor($modulizeColor) { | ||||
| 		$this->modulizeColor = $modulizeColor; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\BgColorable::setBgColor() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setBgColor($bgColor) { | ||||
| 		$this->bgColor = $bgColor; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Linkable::setUrl() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setUrl($url) { | ||||
| 		$this->url = $url; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Linkable::setManialink() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setManialink($manialink) { | ||||
| 		$this->manialink = $manialink; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Scriptable::setScriptEvents() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setScriptEvents($scriptEvents) { | ||||
| 		$this->scriptEvents = ($scriptEvents ? 1 : 0); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\Styleable::setStyle() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setStyle($style) { | ||||
| 		$this->style = $style; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\SubStyleable::setSubStyle() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setSubStyle($subStyle) { | ||||
| 		$this->subStyle = $subStyle; | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Types\SubStyleable::setStyles() | ||||
| 	 * @return \FML\Controls\Quad | ||||
| 	 */ | ||||
| 	public function setStyles($style, $subStyle) { | ||||
| 		$this->setStyle($style); | ||||
| 		$this->setSubStyle($subStyle); | ||||
| 		return $this; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		if ($this->image) { | ||||
| 			$xml->setAttribute('image', $this->image); | ||||
| 		} | ||||
| 		if ($this->imageFocus) { | ||||
| 			$xml->setAttribute('imagefocus', $this->imageFocus); | ||||
| 		} | ||||
| 		if ($this->colorize) { | ||||
| 			$xml->setAttribute('colorize', $this->colorize); | ||||
| 		} | ||||
| 		if ($this->modulizeColor) { | ||||
| 			$xml->setAttribute('modulizecolor', $this->modulizeColor); | ||||
| 		} | ||||
| 		if ($this->bgColor) { | ||||
| 			$xml->setAttribute('bgcolor', $this->bgColor); | ||||
| 		} | ||||
| 		if ($this->url) { | ||||
| 			$xml->setAttribute('url', $this->url); | ||||
| 		} | ||||
| 		if ($this->manialink) { | ||||
| 			$xml->setAttribute('manialink', $this->manialink); | ||||
| 		} | ||||
| 		if ($this->scriptEvents) { | ||||
| 			$xml->setAttribute('scriptevents', $this->scriptEvents); | ||||
| 		} | ||||
| 		if ($this->style) { | ||||
| 			$xml->setAttribute('style', $this->style); | ||||
| 		} | ||||
| 		if ($this->subStyle) { | ||||
| 			$xml->setAttribute('substyle', $this->subStyle); | ||||
| 		} | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										31
									
								
								application/FML/Controls/Quads/Quad_321Go.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								application/FML/Controls/Quads/Quad_321Go.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style '321Go' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_321Go extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = '321Go'; | ||||
| 	const SUBSTYLE_3 = '3'; | ||||
| 	const SUBSTYLE_2 = '2'; | ||||
| 	const SUBSTYLE_1 = '1'; | ||||
| 	const SUBSTYLE_Go = 'Go!'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct 321Go quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										54
									
								
								application/FML/Controls/Quads/Quad_BgRaceScore2.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								application/FML/Controls/Quads/Quad_BgRaceScore2.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'BgRaceScore2' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_BgRaceScore2 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'BgRaceScore2'; | ||||
| 	const SUBSTYLE_BgCardPlayer = 'BgCardPlayer'; | ||||
| 	const SUBSTYLE_BgCardServer = 'BgCardServer'; | ||||
| 	const SUBSTYLE_BgScores = 'BgScores'; | ||||
| 	const SUBSTYLE_Cartouche = 'Cartouche'; | ||||
| 	const SUBSTYLE_CartoucheLine = 'CartoucheLine'; | ||||
| 	const SUBSTYLE_CupFinisher = 'CupFinisher'; | ||||
| 	const SUBSTYLE_CupPotentialFinisher = 'CupPotentialFinisher'; | ||||
| 	const SUBSTYLE_Fame = 'Fame'; | ||||
| 	const SUBSTYLE_Handle = 'Handle'; | ||||
| 	const SUBSTYLE_HandleBlue = 'HandleBlue'; | ||||
| 	const SUBSTYLE_HandleRed = 'HandleRed'; | ||||
| 	const SUBSTYLE_HandleSelectable = 'HandleSelectable'; | ||||
| 	const SUBSTYLE_IsLadderDisabled = 'IsLadderDisabled'; | ||||
| 	const SUBSTYLE_IsLocalPlayer = 'IsLocalPlayer'; | ||||
| 	const SUBSTYLE_LadderPoints = 'LadderPoints'; | ||||
| 	const SUBSTYLE_LadderRank = 'LadderRank'; | ||||
| 	const SUBSTYLE_Laps = 'Laps'; | ||||
| 	const SUBSTYLE_Podium = 'Podium'; | ||||
| 	const SUBSTYLE_Points = 'Points'; | ||||
| 	const SUBSTYLE_SandTimer = 'SandTimer'; | ||||
| 	const SUBSTYLE_ScoreLink = 'ScoreLink'; | ||||
| 	const SUBSTYLE_ScoreReplay = 'ScoreReplay'; | ||||
| 	const SUBSTYLE_SendScore = 'SendScore'; | ||||
| 	const SUBSTYLE_Speaking = 'Speaking'; | ||||
| 	const SUBSTYLE_Spectator = 'Spectator'; | ||||
| 	const SUBSTYLE_Tv = 'Tv'; | ||||
| 	const SUBSTYLE_Warmup = 'Warmup'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct BgRaceScore2 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										35
									
								
								application/FML/Controls/Quads/Quad_Bgs1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								application/FML/Controls/Quads/Quad_Bgs1.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Bgs1' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Bgs1 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Bgs1'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Bgs1 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "BgButton", "BgButtonBig", "BgButtonGlow", "BgButtonGrayed",  | ||||
| 			"BgButtonOff", "BgButtonShadow", "BgButtonSmall", "BgCard", "BgCard1", "BgCard2", "BgCard3", "BgCardBuddy",  | ||||
| 			"BgCardChallenge", "BgCardFolder", "BgCardInventoryItem", "BgCardList", "BgCardOnline", "BgCardPlayer", "BgCardSystem",  | ||||
| 			"BgCardZone", "BgColorContour", "BgDialogBlur", "BgEmpty", "BgGradBottom", "BgGradLeft", "BgGradRight", "BgGradTop",  | ||||
| 			"BgGradV", "BgHealthBar", "BgIconBorder", "BgList", "BgListLine", "BgPager", "BgProgressBar", "BgShadow", "BgSlider",  | ||||
| 			"BgSystemBar", "BgTitle2", "BgTitle3", "BgTitle3_1", "BgTitle3_2", "BgTitle3_3", "BgTitle3_4", "BgTitle3_5", "BgTitleGlow",  | ||||
| 			"BgTitlePage", "BgTitleShadow", "BgWindow1", "BgWindow2", "BgWindow3", "EnergyBar", "EnergyTeam2", "Glow", "HealthBar",  | ||||
| 			"NavButton", "NavButtonBlink", "NavButtonQuit", "ProgressBar", "ProgressBarSmall", "Shadow"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										35
									
								
								application/FML/Controls/Quads/Quad_Bgs1InRace.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								application/FML/Controls/Quads/Quad_Bgs1InRace.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Bgs1InRace' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Bgs1InRace extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Bgs1InRace'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Bgs1InRace quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "BgButton", "BgButtonBig", "BgButtonGlow", "BgButtonGrayed",  | ||||
| 			"BgButtonOff", "BgButtonShadow", "BgButtonSmall", "BgCard", "BgCard1", "BgCard2", "BgCard3", "BgCardBuddy",  | ||||
| 			"BgCardChallenge", "BgCardFolder", "BgCardInventoryItem", "BgCardList", "BgCardOnline", "BgCardPlayer", "BgCardSystem",  | ||||
| 			"BgCardZone", "BgColorContour", "BgDialogBlur", "BgEmpty", "BgGradBottom", "BgGradLeft", "BgGradRight", "BgGradTop",  | ||||
| 			"BgGradV", "BgHealthBar", "BgIconBorder", "BgList", "BgListLine", "BgPager", "BgProgressBar", "BgShadow", "BgSlider",  | ||||
| 			"BgSystemBar", "BgTitle2", "BgTitle3", "BgTitle3_1", "BgTitle3_2", "BgTitle3_3", "BgTitle3_4", "BgTitle3_5", "BgTitleGlow",  | ||||
| 			"BgTitlePage", "BgTitleShadow", "BgWindow1", "BgWindow2", "BgWindow3", "EnergyBar", "EnergyTeam2", "Glow", "HealthBar",  | ||||
| 			"NavButton", "NavButtonBlink", "NavButtonQuit", "ProgressBar", "ProgressBarSmall", "Shadow"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										28
									
								
								application/FML/Controls/Quads/Quad_BgsChallengeMedals.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								application/FML/Controls/Quads/Quad_BgsChallengeMedals.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'BgsChallengeMedals' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_BgsChallengeMedals extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'BgsChallengeMedals'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct BgsChallengeMedals quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("BgBronze", "BgGold", "BgNadeo", "BgNotPlayed", "BgPlayed", "BgSilver"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										30
									
								
								application/FML/Controls/Quads/Quad_BgsPlayerCard.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								application/FML/Controls/Quads/Quad_BgsPlayerCard.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'BgsPlayerCard' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_BgsPlayerCard extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'BgsPlayerCard'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct BgsPlayerCard quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("BgActivePlayerCard", "BgActivePlayerName", "BgActivePlayerScore", "BgCard", "BgCardSystem", "BgMediaTracker",  | ||||
| 			"BgPlayerCard", "BgPlayerCardBig", "BgPlayerCardSmall", "BgPlayerName", "BgPlayerScore", "BgRacePlayerLine",  | ||||
| 			"BgRacePlayerName", "ProgressBar"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										29
									
								
								application/FML/Controls/Quads/Quad_Copilot.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								application/FML/Controls/Quads/Quad_Copilot.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Copilot' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Copilot extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Copilot'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Copilot quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("Down", "DownGood", "DownWrong", "Left", "LeftGood", "LeftWrong", "Right", "RightGood", "RightWrong", "Up", "UpGood",  | ||||
| 			"UpWrong"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										30
									
								
								application/FML/Controls/Quads/Quad_Emblems.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								application/FML/Controls/Quads/Quad_Emblems.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Emblems' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Emblems extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Emblems'; | ||||
| 	const SUBSTYLE_0 = '#0'; | ||||
| 	const SUBSTYLE_1 = '#1'; | ||||
| 	const SUBSTYLE_2 = '#2'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Emblems quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										28
									
								
								application/FML/Controls/Quads/Quad_EnergyBar.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								application/FML/Controls/Quads/Quad_EnergyBar.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'EnergyBar' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_EnergyBar extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'EnergyBar'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct EnergyBar quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("BgText", "EnergyBar", "EnergyBar_0.25", "EnergyBar_Thin", "HeaderGaugeLeft", "HeaderGaugeRight"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										29
									
								
								application/FML/Controls/Quads/Quad_Hud3dEchelons.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								application/FML/Controls/Quads/Quad_Hud3dEchelons.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Hud3dEchelons' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Hud3dEchelons extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Hud3dEchelons'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Hud3dEchelons quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("EchelonBronze1", "EchelonBronze2", "EchelonBronze3", "EchelonGold1", "EchelonGold2", "EchelonGold3", "EchelonSilver1",  | ||||
| 			"EchelonSilver2", "EchelonSilver3"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										34
									
								
								application/FML/Controls/Quads/Quad_Icons128x128_1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								application/FML/Controls/Quads/Quad_Icons128x128_1.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Icons128x128_1' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Icons128x128_1 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Icons128x128_1'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Icons128x128_1 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("Advanced", "Back", "BackFocusable", "Beginner", "Browse", "Buddies", "Challenge", "ChallengeAuthor", "Coppers",  | ||||
| 			"Create", "Credits", "Custom", "CustomStars", "Default", "Download", "Easy", "Editor", "Event", "Extreme", "Forever",  | ||||
| 			"GhostEditor", "Hard", "Hotseat", "Inputs", "Invite", "LadderPoints", "Lan", "Launch", "Load", "LoadTrack", "Manialink",  | ||||
| 			"ManiaZones", "MedalCount", "MediaTracker", "Medium", "Multiplayer", "Nations", "NewTrack", "Options", "Padlock", "Paint",  | ||||
| 			"Platform", "PlayerPage", "Profile", "ProfileAdvanced", "ProfileVehicle", "Puzzle", "Quit", "Race", "Rankings", "Replay",  | ||||
| 			"Save", "ServersAll", "ServersFavorites", "ServersSuggested", "Share", "ShareBlink", "SkillPoints", "Solo", "Statistics",  | ||||
| 			"Stunts", "United", "Upload", "Vehicles"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										34
									
								
								application/FML/Controls/Quads/Quad_Icons128x128_Blink.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								application/FML/Controls/Quads/Quad_Icons128x128_Blink.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Icons128x128_Blink' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Icons128x128_Blink extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Icons128x128_Blink'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Icons128x128_Blink quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("Advanced", "Back", "BackFocusable", "Beginner", "Browse", "Buddies", "Challenge", "ChallengeAuthor", "Coppers",  | ||||
| 			"Create", "Credits", "Custom", "CustomStars", "Default", "Download", "Easy", "Editor", "Event", "Extreme", "Forever",  | ||||
| 			"GhostEditor", "Hard", "Hotseat", "Inputs", "Invite", "LadderPoints", "Lan", "Launch", "Load", "LoadTrack", "Manialink",  | ||||
| 			"ManiaZones", "MedalCount", "MediaTracker", "Medium", "Multiplayer", "Nations", "NewTrack", "Options", "Padlock", "Paint",  | ||||
| 			"Platform", "PlayerPage", "Profile", "ProfileAdvanced", "ProfileVehicle", "Puzzle", "Quit", "Race", "Rankings", "Replay",  | ||||
| 			"Save", "ServersAll", "ServersFavorites", "ServersSuggested", "Share", "ShareBlink", "SkillPoints", "Solo", "Statistics",  | ||||
| 			"Stunts", "United", "Upload", "Vehicles"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										30
									
								
								application/FML/Controls/Quads/Quad_Icons128x32_1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								application/FML/Controls/Quads/Quad_Icons128x32_1.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Icons128x32_1' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Icons128x32_1 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Icons128x32_1'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Icons128x32_1 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("Empty", "ManiaLinkHome", "ManiaLinkSwitch", "ManiaPlanet", "Music", "PainterBrush", "PainterFill", "PainterLayer",  | ||||
| 			"PainterMirror", "PainterSticker", "PainterTeam", "RT_Cup", "RT_Laps", "RT_Rounds", "RT_Script", "RT_Team", "RT_TimeAttack",  | ||||
| 			"RT_Stunts", "Settings", "SliderBar", "SliderBar2", "SliderCursor", "Sound", "UrlBg", "Windowed"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										37
									
								
								application/FML/Controls/Quads/Quad_Icons64x64_1.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								application/FML/Controls/Quads/Quad_Icons64x64_1.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Icons64x64_1' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Icons64x64_1 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Icons64x64_1'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Icons64x64_1 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("3DStereo", "Add", "ArrowBlue", "ArrowDisabled", "ArrowDown", "ArrowFastNext", "ArrowFastPrev", "ArrowFirst",  | ||||
| 			"ArrowGreen", "ArrowLast", "ArrowNext", "ArrowPrev", "ArrowRed", "ArrowUp", "Browser", "Buddy", "ButtonLeagues", "Camera",  | ||||
| 			"CameraLocal", "Check", "ClipPause", "ClipPlay", "ClipRewind", "Close", "Empty", "Finish", "FinishGrey", "First",  | ||||
| 			"GenericButton", "Green", "IconLeaguesLadder", "IconPlayers", "IconPlayersLadder", "IconServers", "Inbox", "LvlGreen",  | ||||
| 			"LvlRed", "LvlYellow", "ManiaLinkNext", "ManiaLinkPrev", "Maximize", "MediaAudioDownloading", "MediaPlay", "MediaStop",  | ||||
| 			"MediaVideoDownloading", "NewMessage", "NotBuddy", "OfficialRace", "Opponents", "Outbox", "QuitRace", "RedHigh", "RedLow",  | ||||
| 			"Refresh", "RestartRace", "Save", "Second", "ShowDown", "ShowDown2", "ShowLeft", "ShowLeft2", "ShowRight", "ShowRight2",  | ||||
| 			"ShowUp", "ShowUp2", "SliderCursor", "SliderCursor2", "StateFavourite", "StatePrivate", "StateSuggested", "Sub",  | ||||
| 			"TagTypeBronze", "TagTypeGold", "TagTypeNadeo", "TagTypeNone", "TagTypeSilver", "Third", "ToolLeague1", "ToolRoot",  | ||||
| 			"ToolTree", "ToolUp", "TrackInfo", "TV", "YellowHigh", "YellowLow"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										29
									
								
								application/FML/Controls/Quads/Quad_Icons64x64_2.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								application/FML/Controls/Quads/Quad_Icons64x64_2.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'Icons64x64_2' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_Icons64x64_2 extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'Icons64x64_2'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct Icons64x64_2 quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("ArrowElimination", "ArrowHit", "Disconnected", "DisconnectedLight", "LaserElimination", "LaserHit",  | ||||
| 			"NucleusElimination", "NucleusHit", "RocketElimination", "RocketHit", "ServerNotice", "UnknownElimination", "UnknownHit"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										34
									
								
								application/FML/Controls/Quads/Quad_ManiaPlanetLogos.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								application/FML/Controls/Quads/Quad_ManiaPlanetLogos.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'ManiaPlanetLogos' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_ManiaPlanetLogos extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'ManiaPlanetLogos'; | ||||
| 	const SUBSTYLE_IconPlanets = 'IconPlanets'; | ||||
| 	const SUBSTYLE_IconPlanetsPerspective = 'IconPlanetsPerspective'; | ||||
| 	const SUBSTYLE_IconPlanetsSmall = 'IconPlanetsSmall'; | ||||
| 	const SUBSTYLE_ManiaPlanetLogoBlack = 'ManiaPlanetLogoBlack'; | ||||
| 	const SUBSTYLE_ManiaPlanetLogoBlackSmall = 'ManiaPlanetLogoBlackSmall'; | ||||
| 	const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite'; | ||||
| 	const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct ManiaPlanetLogos quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										33
									
								
								application/FML/Controls/Quads/Quad_ManiaplanetSystem.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								application/FML/Controls/Quads/Quad_ManiaplanetSystem.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'ManiaplanetSystem' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_ManiaplanetSystem extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'ManiaplanetSystem'; | ||||
| 	const SUBSTYLE_BgDialog = 'BgDialog'; | ||||
| 	const SUBSTYLE_BgDialogAnchor = 'BgDialogAnchor'; | ||||
| 	const SUBSTYLE_BgFloat = 'BgFloat'; | ||||
| 	const SUBSTYLE_Events = 'Events'; | ||||
| 	const SUBSTYLE_Medals = 'Medals'; | ||||
| 	const SUBSTYLE_Statistics = 'Statistics'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct ManiaplanetSystem quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										28
									
								
								application/FML/Controls/Quads/Quad_MedalsBig.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								application/FML/Controls/Quads/Quad_MedalsBig.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'MedalsBig' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_MedalsBig extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'MedalsBig'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct MedalsBig quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("MedalBronze", "MedalGold", "MedalGoldPerspective", "MedalNadeo", "MedalNadeoPerspective", "MedalSilver", "MedalSlot"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										28
									
								
								application/FML/Controls/Quads/Quad_TitleLogos.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								application/FML/Controls/Quads/Quad_TitleLogos.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'TitleLogos' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_TitleLogos extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'TitleLogos'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct TitleLogos quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("Author", "Collection", "Icon", "Title"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
| @@ -0,0 +1,33 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'UIConstruction_Buttons' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_UIConstruction_Buttons extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'UIConstruction_Buttons'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct UIConstruction_Buttons quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 		array("ActionMaker", "Add", "Author", "AuthorTime", "BgEditors", "BgIcons", "BgMain", "BgTools", "BlockEditor", "Camera",  | ||||
| 			"Challenge", "CopyPaste", "DecalEditor", "Delete", "Directory", "Down", "Drive", "Erase", "Help", "Item", "Left",  | ||||
| 			"MacroBlockEditor", "MediaTracker", "ObjectEditor", "OffZone", "Options", "Paint", "Pick", "Plugins", "Quit", "Redo",  | ||||
| 			"Reload", "Right", "Save", "SaveAs", "ScriptEditor", "SpotModelClearUnused", "SpotModelDuplicate", "SpotModelNew",  | ||||
| 			"SpotModelRename", "Square", "Stats", "Sub", "TerrainEditor", "TestSm", "Text", "Tools", "Underground", "Undo", "Up",  | ||||
| 			"Validate", "Validate_Step1", "Validate_Step2", "Validate_Step3"); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
| @@ -0,0 +1,48 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls\Quads; | ||||
|  | ||||
| use FML\Controls\Quad; | ||||
|  | ||||
| /** | ||||
|  * Quad class for style 'UiSMSpectatorScoreBig' | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Quad_UiSMSpectatorScoreBig extends Quad { | ||||
| 	/** | ||||
| 	 * Constants | ||||
| 	 */ | ||||
| 	const STYLE = 'UiSMSpectatorScoreBig'; | ||||
| 	CONST SUBSTYLE_BotLeft = 'BotLeft'; | ||||
| 	CONST SUBSTYLE_BotLeftGlass = 'BotLeftGlass'; | ||||
| 	CONST SUBSTYLE_BotRight = 'BotRight'; | ||||
| 	CONST SUBSTYLE_BotRightGlass = 'BotRightGlass'; | ||||
| 	CONST SUBSTYLE_CenterShield = 'CenterShield'; | ||||
| 	CONST SUBSTYLE_CenterShieldSmall = 'CenterShieldSmall'; | ||||
| 	CONST SUBSTYLE_HandleLeft = 'HandleLeft'; | ||||
| 	CONST SUBSTYLE_HandleRight = 'HandleRight'; | ||||
| 	CONST SUBSTYLE_PlayerGlass = 'PlayerGlass'; | ||||
| 	CONST SUBSTYLE_PlayerIconBg = 'PlayerIconBg'; | ||||
| 	CONST SUBSTYLE_PlayerJunction = 'PlayerJunction'; | ||||
| 	CONST SUBSTYLE_PlayerSlot = 'PlayerSlot'; | ||||
| 	CONST SUBSTYLE_PlayerSlotCenter = 'PlayerSlotCenter'; | ||||
| 	CONST SUBSTYLE_PlayerSlotRev = 'PlayerSlotRev'; | ||||
| 	CONST SUBSTYLE_PlayerSlotSmall = 'PlayerSlotSmall'; | ||||
| 	CONST SUBSTYLE_PlayerSlotSmallRev = 'PlayerSlotSmallRev'; | ||||
| 	CONST SUBSTYLE_TableBgHoriz = 'TableBgHoriz'; | ||||
| 	CONST SUBSTYLE_TableBgVert = 'TableBgVert'; | ||||
| 	CONST SUBSTYLE_Top = 'Top'; | ||||
| 	CONST SUBSTYLE_UIRange1Bg = 'UIRange1Bg'; | ||||
| 	CONST SUBSTYLE_UIRange2Bg = 'UIRange2Bg'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct UiSMSpectatorScoreBig quad | ||||
| 	 */ | ||||
| 	public function __construct() { | ||||
| 		parent::__construct(); | ||||
| 		$this->setStyle(self::STYLE); | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
							
								
								
									
										30
									
								
								application/FML/Controls/Video.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								application/FML/Controls/Video.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FML\Controls; | ||||
|  | ||||
| /** | ||||
|  * Class representing video (CMlMediaPlayer) | ||||
|  * | ||||
|  * @author steeffeen | ||||
|  */ | ||||
| class Video extends Control implements Playable, Scriptable { | ||||
|  | ||||
| 	/** | ||||
| 	 * Construct a new video control | ||||
| 	 */ | ||||
| 	public function __construct($id = null) { | ||||
| 		parent::__construct($id); | ||||
| 		$this->tagName = 'video'; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * | ||||
| 	 * @see \FML\Control::render() | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xml = parent::render($domDocument); | ||||
| 		return $xml; | ||||
| 	} | ||||
| } | ||||
|  | ||||
| ?> | ||||
		Reference in New Issue
	
	Block a user