FML Update

This commit is contained in:
Steffen Schröder
2014-06-21 03:18:21 +02:00
parent 816ff486ef
commit c8d599189c
107 changed files with 2484 additions and 3099 deletions

View File

@ -15,36 +15,16 @@ use FML\Types\Scriptable;
*/
class Audio extends Control implements Playable, Scriptable {
/*
* Protected Properties
* Protected properties
*/
protected $data = '';
protected $dataId = '';
protected $play = 0;
protected $looping = 0;
protected $music = 0;
protected $tagName = 'audio';
protected $data = null;
protected $dataId = null;
protected $play = null;
protected $looping = true;
protected $music = null;
protected $volume = 1.;
protected $scriptEvents = 0;
/**
* Construct a new Audio Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'audio';
}
/**
* Create a new Audio Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Audio
*/
public static function create($id = null) {
$audio = new Audio($id);
return $audio;
}
protected $scriptEvents = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -110,7 +90,7 @@ class Audio extends Control implements Playable, Scriptable {
}
/**
* @see \FML\Control::render()
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = parent::render($domDocument);

View File

@ -14,6 +14,7 @@ use FML\Script\Features\UISound;
use FML\Script\ScriptLabel;
use FML\Types\Renderable;
use FML\Types\ScriptFeatureable;
use FML\UniqueID;
/**
* Base Control
@ -35,48 +36,55 @@ abstract class Control implements Renderable, ScriptFeatureable {
const LEFT = 'left';
/*
* Static Properties
*/
protected static $currentIndex = 0;
/*
* Protected Properties
* Protected properties
*/
protected $tagName = 'control';
protected $id = '';
protected $x = 0.;
protected $y = 0.;
protected $z = 0.;
protected $controlId = null;
protected $posX = 0.;
protected $posY = 0.;
protected $posZ = 0.;
protected $width = -1.;
protected $height = -1.;
protected $hAlign = self::CENTER;
protected $vAlign = self::CENTER2;
protected $scale = 1.;
protected $hidden = 0;
protected $hidden = null;
protected $rotation = 0.;
/** @var string[] $classes */
protected $classes = array();
/** @var ScriptFeature[] $scriptFeatures */
protected $scriptFeatures = array();
/**
* Construct a new Control
* Create a new Control object
*
* @param string $id (optional) Control Id
* @param string $controlId (optional) Control id
* @return \FML\Controls\Control|static
*/
public function __construct($id = null) {
if ($id !== null) {
$this->setId($id);
public static function create($controlId = null) {
return new static($controlId);
}
/**
* Construct a new Control object
*
* @param string $controlId (optional) Control id
*/
public function __construct($controlId = null) {
if (!is_null($controlId)) {
$this->setId($controlId);
}
}
/**
* Check Id for dangerous Characters and assign a unique Id if necessary
* Check Id for dangerous characters and assign a new unique id if necessary
*
* @param bool $forceNewId Whether to force setting a newly generated Id
* @return \FML\Controls\Control
* @param bool $forceNewId (optional) Whether to force setting a newly generated id
* @return \FML\Controls\Control|static
*/
public function checkId($forceNewId = false) {
if ($forceNewId || !$this->getId()) {
$this->setId('FML_ID_' . self::$currentIndex);
self::$currentIndex++;
$this->setId(new UniqueID());
return $this;
}
$dangerousCharacters = array(' ', ' ', '.', '|', '-', PHP_EOL);
@ -90,93 +98,94 @@ abstract class Control implements Renderable, ScriptFeatureable {
break;
}
if ($danger) {
trigger_error("Please don't use special Characters in Ids, they might cause Problems! (I stripped them for You.)");
$id = str_ireplace($dangerousCharacters, '', $this->getId());
$this->setId($id);
trigger_error("Please don't use special characters in ids, they might cause problems! (I stripped them for you.)");
$controlId = str_ireplace($dangerousCharacters, '', $this->getId());
$this->setId($controlId);
}
return $this;
}
/**
* Get Control Id
* Get the Control id
*
* @param bool $escaped (optional) Whether the Id should be escaped for ManiaScript
* @param bool $escaped (optional) Whether the id should be escaped for ManiaScript
* @param bool $addApostrophes (optional) Whether to add apostrophes before and after the text
* @return string
*/
public function getId($escaped = false) {
public function getId($escaped = false, $addApostrophes = false) {
if ($escaped) {
return Builder::escapeText($this->id);
return Builder::escapeText($this->controlId, $addApostrophes);
}
return $this->id;
return $this->controlId;
}
/**
* Set Control Id
* Set Control id
*
* @param string $id Control Id
* @return \FML\Controls\Control
* @param string $controlId Control id
* @return \FML\Controls\Control|static
*/
public function setId($id) {
$this->id = (string)$id;
public function setId($controlId) {
$this->controlId = (string)$controlId;
return $this;
}
/**
* Set Control Position
* Set Control position
*
* @param float $x Horizontal Position
* @param float $y Vertical Position
* @param float $z (optional) Depth
* @return \FML\Controls\Control
* @param float $posX Horizontal position
* @param float $posY Vertical position
* @param float $posZ (optional) Depth
* @return \FML\Controls\Control|static
*/
public function setPosition($x, $y, $z = null) {
$this->setX($x);
$this->setY($y);
if ($z !== null) {
$this->setZ($z);
public function setPosition($posX, $posY, $posZ = null) {
$this->setX($posX);
$this->setY($posY);
if (!is_null($posZ)) {
$this->setZ($posZ);
}
return $this;
}
/**
* Set X Position
* Set X position
*
* @param float $x Horizontal Position
* @return \FML\Controls\Control
* @param float $posX Horizontal position
* @return \FML\Controls\Control|static
*/
public function setX($x) {
$this->x = (float)$x;
public function setX($posX) {
$this->posX = (float)$posX;
return $this;
}
/**
* Set Y Position
* Set Y position
*
* @param float $y Vertical Position
* @return \FML\Controls\Control
* @param float $posY Vertical position
* @return \FML\Controls\Control|static
*/
public function setY($y) {
$this->y = (float)$y;
public function setY($posY) {
$this->posY = (float)$posY;
return $this;
}
/**
* Set Z Position
* Set Z position
*
* @param float $z Depth
* @return \FML\Controls\Control
* @param float $posZ Depth
* @return \FML\Controls\Control|static
*/
public function setZ($z) {
$this->z = (float)$z;
public function setZ($posZ) {
$this->posZ = (float)$posZ;
return $this;
}
/**
* Set Control Size
* Set Control size
*
* @param float $width Control Width
* @param float $height Control Height
* @return \FML\Controls\Control
* @param float $width Control width
* @param float $height Control height
* @return \FML\Controls\Control|static
*/
public function setSize($width, $height) {
$this->setWidth($width);
@ -185,10 +194,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Control Width
* Set Control width
*
* @param float $width Control Width
* @return \FML\Controls\Control
* @param float $width Control width
* @return \FML\Controls\Control|static
*/
public function setWidth($width) {
$this->width = (float)$width;
@ -196,10 +205,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Control Height
* Set Control height
*
* @param float $height Control Height
* @return \FML\Controls\Control
* @param float $height Control height
* @return \FML\Controls\Control|static
*/
public function setHeight($height) {
$this->height = (float)$height;
@ -207,9 +216,9 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Center Alignment
* Center alignment
*
* @return \FML\Controls\Control
* @return \FML\Controls\Control|static
*/
public function centerAlign() {
$this->setAlign(self::CENTER, self::CENTER2);
@ -217,11 +226,11 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Horizontal and Vertical Alignment
* Set horizontal and vertical alignment
*
* @param string $hAlign Horizontal Alignment
* @param string $vAlign Vertical Alignment
* @return \FML\Controls\Control
* @param string $hAlign Horizontal alignment
* @param string $vAlign Vertical alignment
* @return \FML\Controls\Control|static
*/
public function setAlign($hAlign, $vAlign) {
$this->setHAlign($hAlign);
@ -230,10 +239,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Horizontal Alignment
* Set horizontal alignment
*
* @param string $hAlign Horizontal Alignment
* @return \FML\Controls\Control
* @param string $hAlign Horizontal alignment
* @return \FML\Controls\Control|static
*/
public function setHAlign($hAlign) {
$this->hAlign = (string)$hAlign;
@ -241,10 +250,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Vertical Alignment
* Set vertical alignment
*
* @param string $vAlign Vertical Alignment
* @return \FML\Controls\Control
* @param string $vAlign Vertical alignment
* @return \FML\Controls\Control|static
*/
public function setVAlign($vAlign) {
$this->vAlign = (string)$vAlign;
@ -252,9 +261,9 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Reset Alignment
* Reset alignment
*
* @return \FML\Controls\Control
* @return \FML\Controls\Control|static
*/
public function resetAlign() {
$this->setAlign(null, null);
@ -262,10 +271,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Control Scale
* Set Control scale
*
* @param float $scale Control Scale
* @return \FML\Controls\Control
* @param float $scale Control scale
* @return \FML\Controls\Control|static
*/
public function setScale($scale) {
$this->scale = (float)$scale;
@ -273,10 +282,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Set Visibility
* Set visibility
*
* @param bool $visible Whether Control should be visible
* @return \FML\Controls\Control
* @param bool $visible Whether the Control should be visible
* @return \FML\Controls\Control|static
*/
public function setVisible($visible = true) {
$this->hidden = ($visible ? 0 : 1);
@ -284,10 +293,21 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Add new Class Name
* Set Control rotation
*
* @param string $class Class Name
* @return \FML\Controls\Control
* @param float $rotation
* @return \FML\Controls\Control|static
*/
public function setRotation($rotation) {
$this->rotation = (float)$rotation;
return $this;
}
/**
* Add a new class name
*
* @param string $class Class name
* @return \FML\Controls\Control|static
*/
public function addClass($class) {
$class = (string)$class;
@ -301,31 +321,37 @@ abstract class Control implements Renderable, ScriptFeatureable {
* Add a dynamic Action Trigger
*
* @param string $actionName Action to trigger
* @param string $eventLabel (optional) Event on which the Action is triggered
* @return \FML\Controls\Control
* @param string $eventLabel (optional) Event on which the action is triggered
* @return \FML\Controls\Control|static
*/
public function addActionTriggerFeature($actionName, $eventLabel = ScriptLabel::MOUSECLICK) {
$actionTrigger = new ActionTrigger($actionName, $this, $eventLabel);
$this->addScriptFeature($actionTrigger);
if (is_object($actionName) && ($actionName instanceof ActionTrigger)) {
$this->addScriptFeature($actionName);
} else {
$actionTrigger = new ActionTrigger($actionName, $this, $eventLabel);
$this->addScriptFeature($actionTrigger);
}
return $this;
}
/**
* Add a Script Feature
* Add a new Script Feature
*
* @param ScriptFeature $scriptFeature Script Feature
* @return \FML\Controls\Control
* @return \FML\Controls\Control|static
*/
public function addScriptFeature(ScriptFeature $scriptFeature) {
array_push($this->scriptFeatures, $scriptFeature);
if (!in_array($scriptFeature, $this->scriptFeatures, true)) {
array_push($this->scriptFeatures, $scriptFeature);
}
return $this;
}
/**
* Add a dynamic Feature opening the current Map Info
* Add a dynamic Feature opening the current map info
*
* @param string $eventLabel (optional) Event on which the Map Info will be opened
* @return \FML\Controls\Control
* @param string $eventLabel (optional) Event on which the map info will be opened
* @return \FML\Controls\Control|static
*/
public function addMapInfoFeature($eventLabel = ScriptLabel::MOUSECLICK) {
$mapInfo = new MapInfo($this, $eventLabel);
@ -334,11 +360,11 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Add a dynamic Feature to open a specific Player Profile
* Add a dynamic Feature to open a specific player profile
*
* @param string $login The Login of the Player
* @param string $eventLabel (optional) Event on which the Player Profile will be opened
* @return \FML\Controls\Control
* @param string $login Login of the player
* @param string $eventLabel (optional) Event on which the player profile will be opened
* @return \FML\Controls\Control|static
*/
public function addPlayerProfileFeature($login, $eventLabel = ScriptLabel::MOUSECLICK) {
$playerProfile = new PlayerProfile($login, $this, $eventLabel);
@ -347,12 +373,12 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Add a dynamic Feature playing an UISound
* Add a dynamic Feature playing a UISound
*
* @param string $soundName UISound Name
* @param int $variant (optional) Sound Variant
* @param string $eventLabel (optional) Event on which the Sound will be played
* @return \FML\Controls\Control
* @param string $soundName UISound name
* @param int $variant (optional) Sound variant
* @param string $eventLabel (optional) Event on which the sound will be played
* @return \FML\Controls\Control|static
*/
public function addUISoundFeature($soundName, $variant = 0, $eventLabel = ScriptLabel::MOUSECLICK) {
$uiSound = new UISound($soundName, $this, $variant, $eventLabel);
@ -364,10 +390,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
* Add a dynamic Feature toggling another Control
*
* @param Control $toggledControl Toggled Control
* @param string $labelName (optional) Script Label Name
* @param bool $onlyShow (optional) Whether it should only Show the Control but not toggle
* @param bool $onlyHide (optional) Whether it should only Hide the Control but not toggle
* @return \FML\Controls\Control
* @param string $labelName (optional) Script label name
* @param bool $onlyShow (optional) Whether it should only show the Control but not toggle
* @param bool $onlyHide (optional) Whether it should only hide the Control but not toggle
* @return \FML\Controls\Control|static
*/
public function addToggleFeature(Control $toggledControl, $labelName = Scriptlabel::MOUSECLICK, $onlyShow = false, $onlyHide = false) {
$toggle = new Toggle($this, $toggledControl, $labelName, $onlyShow, $onlyHide);
@ -379,9 +405,9 @@ abstract class Control implements Renderable, ScriptFeatureable {
* Add a dynamic Feature showing a Tooltip on hovering
*
* @param Control $tooltipControl Tooltip Control
* @param bool $stayOnClick (optional) Whether the Tooltip should stay on Click
* @param bool $invert (optional) Whether the Visibility Toggling should be inverted
* @return \FML\Controls\Control
* @param bool $stayOnClick (optional) Whether the Tooltip should stay on click
* @param bool $invert (optional) Whether the visibility toggling should be inverted
* @return \FML\Controls\Control|static
*/
public function addTooltipFeature(Control $tooltipControl, $stayOnClick = false, $invert = false) {
$tooltip = new Tooltip($this, $tooltipControl, $stayOnClick, $invert);
@ -393,10 +419,10 @@ abstract class Control implements Renderable, ScriptFeatureable {
* Add a dynamic Feature showing a Tooltip on hovering
*
* @param Label $tooltipControl Tooltip Control
* @param string $text The Text to display on the Tooltip Label
* @param bool $stayOnClick (optional) Whether the Tooltip should stay on Click
* @param bool $invert (optional) Whether the Visibility Toggling should be inverted
* @return \FML\Controls\Control
* @param string $text Text to display on the Tooltip Label
* @param bool $stayOnClick (optional) Whether the Tooltip should stay on click
* @param bool $invert (optional) Whether the visibility toggling should be inverted
* @return \FML\Controls\Control|static
*/
public function addTooltipLabelFeature(Label $tooltipControl, $text, $stayOnClick = false, $invert = false) {
$tooltip = new Tooltip($this, $tooltipControl, $stayOnClick, $invert, $text);
@ -405,11 +431,11 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Add a Custom Control Script Text Part
* Add a custom Control Script text part
*
* @param string $scriptText Script Text
* @param string $label (optional) Script Label Name
* @return \FML\Controls\Control
* @param string $scriptText Script text
* @param string $label (optional) Script label name
* @return \FML\Controls\Control|static
*/
public function addScriptText($scriptText, $label = ScriptLabel::MOUSECLICK) {
$customText = new ControlScript($this, $scriptText, $label);
@ -420,7 +446,7 @@ abstract class Control implements Renderable, ScriptFeatureable {
/**
* Remove all Script Features
*
* @return \FML\Controls\Control
* @return \FML\Controls\Control|static
*/
public function removeScriptFeatures() {
$this->scriptFeatures = array();
@ -439,19 +465,19 @@ abstract class Control implements Renderable, ScriptFeatureable {
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName);
if ($this->id) {
$xmlElement->setAttribute('id', $this->id);
if ($this->controlId) {
$xmlElement->setAttribute('id', $this->controlId);
}
if ($this->x != 0. || $this->y != 0. || $this->z != 0.) {
$xmlElement->setAttribute('posn', "{$this->x} {$this->y} {$this->z}");
if ($this->posX || $this->posY || $this->posZ) {
$xmlElement->setAttribute('posn', "{$this->posX} {$this->posY} {$this->posZ}");
}
if ($this->width >= 0. || $this->height >= 0.) {
$xmlElement->setAttribute('sizen', "{$this->width} {$this->height}");
}
if ($this->hAlign) {
if ($this->hAlign !== self::LEFT) {
$xmlElement->setAttribute('halign', $this->hAlign);
}
if ($this->vAlign) {
if ($this->vAlign !== self::TOP) {
$xmlElement->setAttribute('valign', $this->vAlign);
}
if ($this->scale != 1.) {
@ -460,6 +486,9 @@ abstract class Control implements Renderable, ScriptFeatureable {
if ($this->hidden) {
$xmlElement->setAttribute('hidden', $this->hidden);
}
if ($this->rotation) {
$xmlElement->setAttribute('rot', $this->rotation);
}
if (!empty($this->classes)) {
$classes = implode(' ', $this->classes);
$xmlElement->setAttribute('class', $classes);
@ -468,7 +497,7 @@ abstract class Control implements Renderable, ScriptFeatureable {
}
/**
* Get the ManiaScript Class of the Control
* Get the ManiaScript class of the Control
*
* @return string
*/

View File

@ -18,40 +18,20 @@ use FML\Types\TextFormatable;
*/
class Entry extends Control implements NewLineable, Scriptable, Styleable, TextFormatable {
/*
* Protected Properties
* Protected properties
*/
protected $name = '';
protected $tagName = 'entry';
protected $name = null;
protected $default = null;
protected $autoNewLine = 0;
protected $scriptEvents = 0;
protected $style = '';
protected $textColor = '';
protected $autoNewLine = null;
protected $scriptEvents = null;
protected $style = null;
protected $textColor = null;
protected $textSize = -1;
protected $focusAreaColor1 = '';
protected $focusAreaColor2 = '';
protected $focusAreaColor1 = null;
protected $focusAreaColor2 = null;
protected $autoComplete = null;
/**
* Construct a new Entry Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'entry';
}
/**
* Create a new Entry Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Entry
*/
public static function create($id = null) {
$entry = new Entry($id);
return $entry;
}
/**
* @see \FML\Controls\Control::getManiaScriptClass()
*/
@ -60,7 +40,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Get the Entry Name
* Get the Entry name
*
* @return string
*/
@ -69,9 +49,9 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Set Entry Name
* Set Entry name
*
* @param string $name Entry Name
* @param string $name Entry name
* @return \FML\Controls\Entry
*/
public function setName($name) {
@ -80,7 +60,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Get the Default Value
* Get the default value
*
* @return mixed
*/
@ -89,10 +69,10 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Set Default Value
* Set default value
*
* @param string $default Default Value
* @return \FML\Controls\Entry
* @param string $default Default value
* @return \FML\Controls\Entry|static
*/
public function setDefault($default) {
$this->default = $default;
@ -156,10 +136,10 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Set Auto Completion
* Set auto completion
*
* @param bool $autoComplete Whether the Default Value should be automatically completed based on the current Request Parameters
* @return \FML\Controls\Entry
* @param bool $autoComplete Whether the default value should be automatically completed based on the current request parameters
* @return \FML\Controls\Entry|static
*/
public function setAutoComplete($autoComplete) {
$this->autoComplete = (bool)$autoComplete;
@ -169,8 +149,8 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
/**
* Add a dynamic Feature submitting the Entry
*
* @param string $url Submit Url
* @return \FML\Controls\Entry
* @param string $url Submit url
* @return \FML\Controls\Entry|static
*/
public function addSubmitFeature($url) {
$entrySubmit = new EntrySubmit($this, $url);
@ -186,7 +166,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
if ($this->name) {
$xmlElement->setAttribute('name', $this->name);
}
if ($this->default !== null) {
if (!is_null($this->default)) {
$xmlElement->setAttribute('default', $this->default);
} else if ($this->autoComplete) {
$value = null;

View File

@ -12,30 +12,10 @@ namespace FML\Controls;
*/
class FileEntry extends Entry {
/*
* Protected Properties
* Protected properties
*/
protected $folder = '';
/**
* Construct a new FileEntry Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'fileentry';
}
/**
* Create a new FileEntry Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\FileEntry
*/
public static function create($id = null) {
$fileEntry = new FileEntry($id);
return $fileEntry;
}
protected $tagName = 'fileentry';
protected $folder = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -45,10 +25,10 @@ class FileEntry extends Entry {
}
/**
* Set Folder
* Set the base folder
*
* @param string $folder Base Folder
* @return \FML\Controls\FileEntry
* @param string $folder Base folder
* @return \FML\Controls\FileEntry|static
*/
public function setFolder($folder) {
$this->folder = (string)$folder;

View File

@ -17,33 +17,14 @@ use FML\Types\ScriptFeatureable;
*/
class Frame extends Control implements Container {
/*
* Protected Properties
* Protected properties
*/
protected $tagName = 'frame';
/** @var Renderable[] $children */
protected $children = array();
/** @var Format $format */
protected $format = null;
/**
* Construct a new Frame Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'frame';
}
/**
* Create a new Frame Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Frame
*/
public static function create($id = null) {
$frame = new Frame($id);
return $frame;
}
/**
* @see \FML\Controls\Control::getManiaScriptClass()
*/
@ -110,7 +91,6 @@ class Frame extends Control implements Container {
$xmlElement->appendChild($formatXml);
}
foreach ($this->children as $child) {
/** @var Renderable $child */
$childXmlElement = $child->render($domDocument);
$xmlElement->appendChild($childXmlElement);
}

View File

@ -29,39 +29,19 @@ class Frame3d extends Frame implements Scriptable {
const STYLE_Window = 'Window';
/*
* Protected Properties
* Protected properties
*/
protected $style3dId = '';
protected $tagName = 'frame3d';
protected $style3dId = null;
/** @var Style3d $style3d */
protected $style3d = null;
protected $scriptEvents = 0;
protected $scriptEvents = null;
/**
* Create a new Frame3d Control
* Set Style3d id
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Frame3d
*/
public static function create($id = null) {
$frame3d = new Frame3d($id);
return $frame3d;
}
/**
* Construct a new Frame3d Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'frame3d';
}
/**
* Set Style3d Id
*
* @param string $style3dId Style3d Id
* @return \FML\Controls\Frame3d
* @param string $style3dId Style3d id
* @return \FML\Controls\Frame3d|static
*/
public function setStyle3dId($style3dId) {
$this->style3dId = (string)$style3dId;
@ -72,11 +52,12 @@ class Frame3d extends Frame implements Scriptable {
/**
* Set Style3d
*
* @param Style3d $style3d Style3d Object
* @return \FML\Controls\Frame3d
* @param Style3d $style3d Style3d object
* @return \FML\Controls\Frame3d|static
*/
public function setStyle3d(Style3d $style3d) {
$this->style3d = $style3d;
$this->style3d = $style3d;
$this->style3dId = null;
return $this;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls;
use FML\Elements\FrameModel;
/**
* Class representing an Instance of a Frame Model
* Class representing an instance of a Frame Model
* (CMlFrame)
*
* @author steeffeen <mail@steeffeen.com>
@ -14,31 +14,42 @@ use FML\Elements\FrameModel;
*/
class FrameInstance extends Control {
/*
* Protected Properties
* Protected properties
*/
protected $modelId = '';
protected $tagName = 'frameinstance';
protected $modelId = null;
/** @var FrameModel $model */
protected $model = null;
/**
* Construct a new Frame Instance
* Create a new Frame Instance object
*
* @param string $modelId (optional) Frame Model Id
* @param string $controlId (optional) Control Id
* @param string $modelId (optional) Frame Model id
* @param string $controlId (optional) Frame id
* @return \FML\Controls\FrameInstance|static
*/
public static function create($modelId = null, $controlId = null) {
return new static($modelId, $controlId);
}
/**
* Construct a new Frame Instance object
*
* @param string $modelId (optional) Frame Model id
* @param string $controlId (optional) Frame id
*/
public function __construct($modelId = null, $controlId = null) {
parent::__construct($controlId);
$this->tagName = 'frameinstance';
if ($modelId !== null) {
if (!is_null($modelId)) {
$this->setModelId($modelId);
}
}
/**
* Set Model Id
* Set Frame Model id
*
* @param string $modelId Model Id
* @return \FML\Controls\FrameInstance
* @param string $modelId Frame Model id
* @return \FML\Controls\FrameInstance|static
*/
public function setModelId($modelId) {
$this->modelId = (string)$modelId;
@ -47,15 +58,15 @@ class FrameInstance extends Control {
}
/**
* Create a new Frame Instance
* Set Frame Model
*
* @param string $modelId (optional) Frame Model Id
* @param string $controlId (optional) Control Id
* @return \FML\Controls\Frame
* @param FrameModel $frameModel Frame Model
* @return \FML\Controls\FrameInstance|static
*/
public static function create($modelId = null, $controlId = null) {
$frameInstance = new FrameInstance($modelId, $controlId);
return $frameInstance;
public function setModel(FrameModel $frameModel) {
$this->model = $frameModel;
$this->modelId = null;
return $this;
}
/**
@ -65,18 +76,6 @@ class FrameInstance extends Control {
return 'CMlFrame';
}
/**
* Set Frame Model to use
*
* @param FrameModel $frameModel Frame Model
* @return \FML\Controls\FrameInstance
*/
public function setModel(FrameModel $frameModel) {
$this->model = $frameModel;
$this->modelId = '';
return $this;
}
/**
* @see \FML\Renderable::render()
*/

View File

@ -22,38 +22,18 @@ class Gauge extends Control implements Styleable {
const STYLE_ProgressBarSmall = 'ProgressBarSmall';
/*
* Protected Properties
* Protected properties
*/
protected $tagName = 'gauge';
protected $ratio = 0.;
protected $grading = 1.;
protected $color = '';
protected $color = null;
protected $rotation = 0.;
protected $centered = 0;
protected $clan = 0;
protected $centered = null;
protected $clan = null;
protected $drawBg = 1;
protected $drawBlockBg = 1;
protected $style = '';
/**
* Construct a new Gauge Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'gauge';
}
/**
* Create a new Gauge Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Gauge
*/
public static function create($id = null) {
$gauge = new Gauge($id);
return $gauge;
}
protected $style = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -63,10 +43,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Ratio
* Set ratio
*
* @param float $ratio Ratio Value
* @return \FML\Controls\Gauge
* @param float $ratio Ratio value
* @return \FML\Controls\Gauge|static
*/
public function setRatio($ratio) {
$this->ratio = (float)$ratio;
@ -74,10 +54,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Grading
* Set grading
*
* @param float $grading Grading Value
* @return \FML\Controls\Gauge
* @param float $grading Grading value
* @return \FML\Controls\Gauge|static
*/
public function setGrading($grading) {
$this->grading = (float)$grading;
@ -85,10 +65,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Color
* Set color
*
* @param string $color Gauge Color
* @return \FML\Controls\Gauge
* @param string $color Gauge color
* @return \FML\Controls\Gauge|static
*/
public function setColor($color) {
$this->color = (string)$color;
@ -96,10 +76,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Rotation
* Set rotation
*
* @param float $rotation Gauge Rotation
* @return \FML\Controls\Gauge
* @param float $rotation Gauge rotation
* @return \FML\Controls\Gauge|static
*/
public function setRotation($rotation) {
$this->rotation = (float)$rotation;
@ -107,10 +87,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Centered
* Set centered
*
* @param bool $centered Whether Gauge is centered
* @return \FML\Controls\Gauge
* @param bool $centered Whether the Gauge is centered
* @return \FML\Controls\Gauge|static
*/
public function setCentered($centered) {
$this->centered = ($centered ? 1 : 0);
@ -118,10 +98,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Clan
* Set clan
*
* @param int $clan Clan number
* @return \FML\Controls\Gauge
* @return \FML\Controls\Gauge|static
*/
public function setClan($clan) {
$this->clan = (int)$clan;
@ -129,10 +109,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Draw Background
* Set draw background
*
* @param bool $drawBg Whether Gauge Background should be drawn
* @return \FML\Controls\Gauge
* @param bool $drawBg Whether the Gauges background should be drawn
* @return \FML\Controls\Gauge|static
*/
public function setDrawBg($drawBg) {
$this->drawBg = ($drawBg ? 1 : 0);
@ -140,10 +120,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set Draw Block Background
* Set draw block background
*
* @param bool $drawBlockBg Whether Gauge Block Background should be drawn
* @return \FML\Controls\Gauge
* @param bool $drawBlockBg Whether the Gauges block background should be drawn
* @return \FML\Controls\Gauge|static
*/
public function setDrawBlockBg($drawBlockBg) {
$this->drawBlockBg = ($drawBlockBg ? 1 : 0);

View File

@ -20,49 +20,29 @@ use FML\Types\TextFormatable;
*/
class Label extends Control implements Actionable, Linkable, NewLineable, Scriptable, Styleable, TextFormatable {
/*
* Protected Properties
* Protected properties
*/
protected $text = '';
protected $textId = '';
protected $textPrefix = '';
protected $textEmboss = 0;
protected $translate = 0;
protected $tagName = 'label';
protected $text = null;
protected $textId = null;
protected $textPrefix = null;
protected $textEmboss = null;
protected $translate = null;
protected $maxLines = -1;
protected $action = '';
protected $opacity = 1.;
protected $action = null;
protected $actionKey = -1;
protected $url = '';
protected $urlId = '';
protected $manialink = '';
protected $manialinkId = '';
protected $autoNewLine = 0;
protected $scriptEvents = 0;
protected $style = '';
protected $url = null;
protected $urlId = null;
protected $manialink = null;
protected $manialinkId = null;
protected $autoNewLine = null;
protected $scriptEvents = null;
protected $style = null;
protected $textSize = -1;
protected $textColor = '';
protected $focusAreaColor1 = '';
protected $focusAreaColor2 = '';
/**
* Construct a new Label Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'label';
$this->setZ(1);
}
/**
* Create a new Label Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Label
*/
public static function create($id = null) {
$label = new Label($id);
return $label;
}
protected $textColor = null;
protected $focusAreaColor1 = null;
protected $focusAreaColor2 = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -72,10 +52,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Text
* Set text
*
* @param string $text Text Value
* @return \FML\Controls\Label
* @param string $text Text value
* @return \FML\Controls\Label|static
*/
public function setText($text) {
$this->text = (string)$text;
@ -83,10 +63,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Text Id to use from the Dico
* Set text id to use from Dico
*
* @param string $textId Text Id
* @return \FML\Controls\Label
* @param string $textId Text id
* @return \FML\Controls\Label|static
*/
public function setTextId($textId) {
$this->textId = (string)$textId;
@ -94,10 +74,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Text Prefix
* Set text prefix
*
* @param string $textPrefix Text Prefix
* @return \FML\Controls\Label
* @param string $textPrefix Text prefix
* @return \FML\Controls\Label|static
*/
public function setTextPrefix($textPrefix) {
$this->textPrefix = (string)$textPrefix;
@ -105,10 +85,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Text Emboss
* Set text emboss
*
* @param bool $textEmboss Whether Text should be embossed
* @return \FML\Controls\Label
* @param bool $textEmboss Whether the text should be embossed
* @return \FML\Controls\Label|static
*/
public function setTextEmboss($textEmboss) {
$this->textEmboss = ($textEmboss ? 1 : 0);
@ -116,10 +96,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Translate
* Set translate
*
* @param bool $translate Whether Text should be translated
* @return \FML\Controls\Label
* @param bool $translate Whether the text should be translated
* @return \FML\Controls\Label|static
*/
public function setTranslate($translate) {
$this->translate = ($translate ? 1 : 0);
@ -127,10 +107,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set Max Lines Count
* Set max lines count
*
* @param int $maxLines Max Lines Count
* @return \FML\Controls\Label
* @param int $maxLines Max lines count
* @return \FML\Controls\Label|static
*/
public function setMaxLines($maxLines) {
$this->maxLines = (int)$maxLines;
@ -249,11 +229,11 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Add a dynamic Feature showing the current Time
* Add a dynamic Feature showing the current time
*
* @param bool $showSeconds (optional) Whether the Seconds should be shown
* @param bool $showFullDate (optional) Whether the Date should be shown
* @return \FML\Controls\Label
* @param bool $showSeconds (optional) Whether the seconds should be shown
* @param bool $showFullDate (optional) Whether the date should be shown
* @return \FML\Controls\Label|static
*/
public function addClockFeature($showSeconds = true, $showFullDate = false) {
$clock = new Clock($this, $showSeconds, $showFullDate);
@ -262,7 +242,7 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* @see \FML\Control::render()
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = parent::render($domDocument);
@ -284,6 +264,9 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
if ($this->maxLines >= 0) {
$xmlElement->setAttribute('maxlines', $this->maxLines);
}
if ($this->opacity != 1.) {
$xmlElement->setAttribute('opacity', $this->opacity);
}
if (strlen($this->action) > 0) {
$xmlElement->setAttribute('action', $this->action);
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Labels;
use FML\Controls\Label;
/**
* Label Class for Button Styles
* Label class for button styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -33,24 +33,4 @@ class Label_Button extends Label {
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
const STYLE_CardMain_Quit = 'CardMain_Quit';
const STYLE_CardMain_Tool = 'CardMain_Tool';
/**
* Create a new Label_Button Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Labels\Label_Button
*/
public static function create($id = null) {
$labelButton = new Label_Button($id);
return $labelButton;
}
/**
* Construct a new Label_Button Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
}
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Labels;
use FML\Controls\Label;
/**
* Label Class for Text Styles
* Label class for text styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -94,24 +94,4 @@ class Label_Text extends Label {
const STYLE_UiDriving_BgBottom = 'UiDriving_BgBottom';
const STYLE_UiDriving_BgCard = 'UiDriving_BgCard';
const STYLE_UiDriving_BgCenter = 'UiDriving_BgCenter';
/**
* Create a new Label_Text Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Labels\Label_Text
*/
public static function create($id = null) {
$labelText = new Label_Text($id);
return $labelText;
}
/**
* Construct a new Label_Text Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
}
}

View File

@ -20,47 +20,26 @@ use FML\Types\SubStyleable;
*/
class Quad extends Control implements Actionable, BgColorable, Linkable, Scriptable, Styleable, SubStyleable {
/*
* Protected Properties
* Protected properties
*/
protected $image = '';
protected $imageId = '';
protected $imageFocus = '';
protected $imageFocusId = '';
protected $colorize = '';
protected $modulizeColor = '';
protected $tagName = 'quad';
protected $image = null;
protected $imageId = null;
protected $imageFocus = null;
protected $imageFocusId = null;
protected $colorize = null;
protected $modulizeColor = null;
protected $autoScale = 1;
protected $action = '';
protected $action = null;
protected $actionKey = -1;
protected $bgColor = '';
protected $url = '';
protected $urlId = '';
protected $manialink = '';
protected $manialinkId = '';
protected $scriptEvents = 0;
protected $style = '';
protected $subStyle = '';
/**
* Construct a new Quad Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'quad';
$this->setZ(-1);
}
/**
* Create a new Quad Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quad
*/
public static function create($id = null) {
$quad = new Quad($id);
return $quad;
}
protected $bgColor = null;
protected $url = null;
protected $urlId = null;
protected $manialink = null;
protected $manialinkId = null;
protected $scriptEvents = null;
protected $style = null;
protected $subStyle = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -70,10 +49,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Image Url
* Set image url
*
* @param string $image Image Url
* @return \FML\Controls\Quad
* @param string $image Image url
* @return \FML\Controls\Quad|static
*/
public function setImage($image) {
$this->image = (string)$image;
@ -81,10 +60,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Image Id to use from the Dico
* Set image id to use from Dico
*
* @param string $imageId Image Id
* @return \FML\Controls\Quad
* @param string $imageId Image id
* @return \FML\Controls\Quad|static
*/
public function setImageId($imageId) {
$this->imageId = (string)$imageId;
@ -92,10 +71,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Focus Image Url
* Set focus image url
*
* @param string $imageFocus Focus Image Url
* @return \FML\Controls\Quad
* @param string $imageFocus Focus image url
* @return \FML\Controls\Quad|static
*/
public function setImageFocus($imageFocus) {
$this->imageFocus = (string)$imageFocus;
@ -103,10 +82,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Focus Image Id to use from the Dico
* Set focus image id to use from Dico
*
* @param string $imageFocusId Focus Image Id
* @return \FML\Controls\Quad
* @param string $imageFocusId Focus image id
* @return \FML\Controls\Quad|static
*/
public function setImageFocusId($imageFocusId) {
$this->imageFocusId = (string)$imageFocusId;
@ -114,10 +93,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Colorization
* Set colorization
*
* @param string $colorize Colorize Value
* @return \FML\Controls\Quad
* @param string $colorize Colorize value
* @return \FML\Controls\Quad|static
*/
public function setColorize($colorize) {
$this->colorize = (string)$colorize;
@ -125,10 +104,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set Modulization
* Set modulization
*
* @param string $modulizeColor Modulize Value
* @return \FML\Controls\Quad
* @param string $modulizeColor Modulize value
* @return \FML\Controls\Quad|static
*/
public function setModulizeColor($modulizeColor) {
$this->modulizeColor = (string)$modulizeColor;
@ -136,10 +115,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Disable the automatic Image Scaling
* Disable the automatic image scaling
*
* @param bool $autoScale Whether the Image should scale automatically
* @return \FML\Controls\Quad
* @param bool $autoScale Whether the image should scale automatically
* @return \FML\Controls\Quad|static
*/
public function setAutoScale($autoScale) {
$this->autoScale = ($autoScale ? 1 : 0);
@ -246,7 +225,7 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
* Apply the given CheckBox Design
*
* @param CheckBoxDesign $checkBoxDesign CheckBox Design
* @return \FML\Controls\Quad
* @return \FML\Controls\Quad|static
*/
public function applyCheckBoxDesign(CheckBoxDesign $checkBoxDesign) {
$checkBoxDesign->applyToQuad($this);
@ -254,7 +233,7 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* @see \FML\Control::render()
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = parent::render($domDocument);

View File

@ -5,40 +5,24 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for '321Go' Style
* Quad class for '321Go' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_321Go extends Quad {
/*
* Constants
*/
const STYLE = '321Go';
const SUBSTYLE_3 = '3';
const SUBSTYLE_2 = '2';
const SUBSTYLE_1 = '1';
const STYLE = '321Go';
const SUBSTYLE_3 = '3';
const SUBSTYLE_2 = '2';
const SUBSTYLE_1 = '1';
const SUBSTYLE_Go = 'Go!';
/**
* Create a new Quad_321Go Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_321Go
/*
* Protected properties
*/
public static function create($id = null) {
$quad321Go = new Quad_321Go($id);
return $quad321Go;
}
/**
* Construct a new Quad_321Go Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,63 +5,47 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'BgRaceScore2' Style
* Quad class for 'BgRaceScore2' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
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 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';
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';
/**
* Create a new Quad_BgRaceScore2 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_BgRaceScore2
/*
* Protected properties
*/
public static function create($id = null) {
$quadBgRaceScore2 = new Quad_BgRaceScore2($id);
return $quadBgRaceScore2;
}
/**
* Construct a new Quad_BgRaceScore2 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,102 +5,86 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Bgs1' Style
* Quad class for 'Bgs1' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Bgs1 extends Quad {
/*
* Constants
*/
const STYLE = 'Bgs1';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
const SUBSTYLE_ArrowRight = 'ArrowRight';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_BgButton = 'BgButton';
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCard1 = 'BgCard1';
const SUBSTYLE_BgCard2 = 'BgCard2';
const SUBSTYLE_BgCard3 = 'BgCard3';
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
const STYLE = 'Bgs1';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
const SUBSTYLE_ArrowRight = 'ArrowRight';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_BgButton = 'BgButton';
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCard1 = 'BgCard1';
const SUBSTYLE_BgCard2 = 'BgCard2';
const SUBSTYLE_BgCard3 = 'BgCard3';
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
const SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgCardZone = 'BgCardZone';
const SUBSTYLE_BgColorContour = 'BgColorContour';
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
const SUBSTYLE_BgEmpty = 'BgEmpty';
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
const SUBSTYLE_BgGradRight = 'BgGradRight';
const SUBSTYLE_BgGradTop = 'BgGradTop';
const SUBSTYLE_BgGradV = 'BgGradV';
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
const SUBSTYLE_BgList = 'BgList';
const SUBSTYLE_BgListLine = 'BgListLine';
const SUBSTYLE_BgPager = 'BgPager';
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
const SUBSTYLE_BgShadow = 'BgShadow';
const SUBSTYLE_BgSlider = 'BgSlider';
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
const SUBSTYLE_BgTitle2 = 'BgTitle2';
const SUBSTYLE_BgTitle3 = 'BgTitle3';
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
const SUBSTYLE_BgWindow1 = 'BgWindow1';
const SUBSTYLE_BgWindow2 = 'BgWindow2';
const SUBSTYLE_BgWindow3 = 'BgWindow3';
const SUBSTYLE_BgWindow4 = 'BgWindow4';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
const SUBSTYLE_Glow = 'Glow';
const SUBSTYLE_HealthBar = 'HealthBar';
const SUBSTYLE_NavButton = 'NavButton';
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
const SUBSTYLE_ProgressBar = 'ProgressBar';
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
const SUBSTYLE_Shadow = 'Shadow';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgCardZone = 'BgCardZone';
const SUBSTYLE_BgColorContour = 'BgColorContour';
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
const SUBSTYLE_BgEmpty = 'BgEmpty';
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
const SUBSTYLE_BgGradRight = 'BgGradRight';
const SUBSTYLE_BgGradTop = 'BgGradTop';
const SUBSTYLE_BgGradV = 'BgGradV';
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
const SUBSTYLE_BgList = 'BgList';
const SUBSTYLE_BgListLine = 'BgListLine';
const SUBSTYLE_BgPager = 'BgPager';
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
const SUBSTYLE_BgShadow = 'BgShadow';
const SUBSTYLE_BgSlider = 'BgSlider';
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
const SUBSTYLE_BgTitle2 = 'BgTitle2';
const SUBSTYLE_BgTitle3 = 'BgTitle3';
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
const SUBSTYLE_BgWindow1 = 'BgWindow1';
const SUBSTYLE_BgWindow2 = 'BgWindow2';
const SUBSTYLE_BgWindow3 = 'BgWindow3';
const SUBSTYLE_BgWindow4 = 'BgWindow4';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
const SUBSTYLE_Glow = 'Glow';
const SUBSTYLE_HealthBar = 'HealthBar';
const SUBSTYLE_NavButton = 'NavButton';
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
const SUBSTYLE_ProgressBar = 'ProgressBar';
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
const SUBSTYLE_Shadow = 'Shadow';
/**
* Create a new Quad_Bgs1 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Bgs1
/*
* Protected properties
*/
public static function create($id = null) {
$quadBgs1 = new Quad_Bgs1($id);
return $quadBgs1;
}
/**
* Construct a new Quad_Bgs1 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,102 +5,86 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Bgs1InRace' Style
* Quad class for 'Bgs1InRace' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Bgs1InRace extends Quad {
/*
* Constants
*/
const STYLE = 'Bgs1InRace';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
const SUBSTYLE_ArrowRight = 'ArrowRight';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_BgButton = 'BgButton';
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCard1 = 'BgCard1';
const SUBSTYLE_BgCard2 = 'BgCard2';
const SUBSTYLE_BgCard3 = 'BgCard3';
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
const STYLE = 'Bgs1InRace';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowLeft = 'ArrowLeft';
const SUBSTYLE_ArrowRight = 'ArrowRight';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_BgButton = 'BgButton';
const SUBSTYLE_BgButtonBig = 'BgButtonBig';
const SUBSTYLE_BgButtonGlow = 'BgButtonGlow';
const SUBSTYLE_BgButtonGrayed = 'BgButtonGrayed';
const SUBSTYLE_BgButtonOff = 'BgButtonOff';
const SUBSTYLE_BgButtonShadow = 'BgButtonShadow';
const SUBSTYLE_BgButtonSmall = 'BgButtonSmall';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCard1 = 'BgCard1';
const SUBSTYLE_BgCard2 = 'BgCard2';
const SUBSTYLE_BgCard3 = 'BgCard3';
const SUBSTYLE_BgCardBuddy = 'BgCardBuddy';
const SUBSTYLE_BgCardChallenge = 'BgCardChallenge';
const SUBSTYLE_BgCardFolder = 'BgCardFolder';
const SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgCardZone = 'BgCardZone';
const SUBSTYLE_BgColorContour = 'BgColorContour';
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
const SUBSTYLE_BgEmpty = 'BgEmpty';
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
const SUBSTYLE_BgGradRight = 'BgGradRight';
const SUBSTYLE_BgGradTop = 'BgGradTop';
const SUBSTYLE_BgGradV = 'BgGradV';
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
const SUBSTYLE_BgList = 'BgList';
const SUBSTYLE_BgListLine = 'BgListLine';
const SUBSTYLE_BgPager = 'BgPager';
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
const SUBSTYLE_BgShadow = 'BgShadow';
const SUBSTYLE_BgSlider = 'BgSlider';
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
const SUBSTYLE_BgTitle2 = 'BgTitle2';
const SUBSTYLE_BgTitle3 = 'BgTitle3';
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
const SUBSTYLE_BgWindow1 = 'BgWindow1';
const SUBSTYLE_BgWindow2 = 'BgWindow2';
const SUBSTYLE_BgWindow3 = 'BgWindow3';
const SUBSTYLE_BgWindow4 = 'BgWindow4';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
const SUBSTYLE_Glow = 'Glow';
const SUBSTYLE_HealthBar = 'HealthBar';
const SUBSTYLE_NavButton = 'NavButton';
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
const SUBSTYLE_ProgressBar = 'ProgressBar';
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
const SUBSTYLE_Shadow = 'Shadow';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
const SUBSTYLE_BgCardProperty = 'BgCardProperty';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgCardZone = 'BgCardZone';
const SUBSTYLE_BgColorContour = 'BgColorContour';
const SUBSTYLE_BgDialogBlur = 'BgDialogBlur';
const SUBSTYLE_BgEmpty = 'BgEmpty';
const SUBSTYLE_BgGradBottom = 'BgGradBottom';
const SUBSTYLE_BgGradLeft = 'BgGradLeft';
const SUBSTYLE_BgGradRight = 'BgGradRight';
const SUBSTYLE_BgGradTop = 'BgGradTop';
const SUBSTYLE_BgGradV = 'BgGradV';
const SUBSTYLE_BgHealthBar = 'BgHealthBar';
const SUBSTYLE_BgIconBorder = 'BgIconBorder';
const SUBSTYLE_BgList = 'BgList';
const SUBSTYLE_BgListLine = 'BgListLine';
const SUBSTYLE_BgPager = 'BgPager';
const SUBSTYLE_BgProgressBar = 'BgProgressBar';
const SUBSTYLE_BgShadow = 'BgShadow';
const SUBSTYLE_BgSlider = 'BgSlider';
const SUBSTYLE_BgSystemBar = 'BgSystemBar';
const SUBSTYLE_BgTitle2 = 'BgTitle2';
const SUBSTYLE_BgTitle3 = 'BgTitle3';
const SUBSTYLE_BgTitle3_1 = 'BgTitle3_1';
const SUBSTYLE_BgTitle3_2 = 'BgTitle3_2';
const SUBSTYLE_BgTitle3_3 = 'BgTitle3_3';
const SUBSTYLE_BgTitle3_4 = 'BgTitle3_4';
const SUBSTYLE_BgTitle3_5 = 'BgTitle3_5';
const SUBSTYLE_BgTitleGlow = 'BgTitleGlow';
const SUBSTYLE_BgTitlePage = 'BgTitlePage';
const SUBSTYLE_BgTitleShadow = 'BgTitleShadow';
const SUBSTYLE_BgWindow1 = 'BgWindow1';
const SUBSTYLE_BgWindow2 = 'BgWindow2';
const SUBSTYLE_BgWindow3 = 'BgWindow3';
const SUBSTYLE_BgWindow4 = 'BgWindow4';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyTeam2 = 'EnergyTeam2';
const SUBSTYLE_Glow = 'Glow';
const SUBSTYLE_HealthBar = 'HealthBar';
const SUBSTYLE_NavButton = 'NavButton';
const SUBSTYLE_NavButtonBlink = 'NavButtonBlink';
const SUBSTYLE_NavButtonQuit = 'NavButtonQuit';
const SUBSTYLE_ProgressBar = 'ProgressBar';
const SUBSTYLE_ProgressBarSmall = 'ProgressBarSmall';
const SUBSTYLE_Shadow = 'Shadow';
/**
* Create a new Quad_Bgs1InRace Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Bgs1InRace
/*
* Protected properties
*/
public static function create($id = null) {
$quadBgs1InRace = new Quad_Bgs1InRace($id);
return $quadBgs1InRace;
}
/**
* Construct a new Quad_Bgs1InRace Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,42 +5,26 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'BgsChallengeMedals' Style
* Quad class for 'BgsChallengeMedals' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_BgsChallengeMedals extends Quad {
/*
* Constants
*/
const STYLE = 'BgsChallengeMedals';
const SUBSTYLE_BgBronze = 'BgBronze';
const SUBSTYLE_BgGold = 'BgGold';
const SUBSTYLE_BgNadeo = 'BgNadeo';
const STYLE = 'BgsChallengeMedals';
const SUBSTYLE_BgBronze = 'BgBronze';
const SUBSTYLE_BgGold = 'BgGold';
const SUBSTYLE_BgNadeo = 'BgNadeo';
const SUBSTYLE_BgNotPlayed = 'BgNotPlayed';
const SUBSTYLE_BgPlayed = 'BgPlayed';
const SUBSTYLE_BgSilver = 'BgSilver';
const SUBSTYLE_BgPlayed = 'BgPlayed';
const SUBSTYLE_BgSilver = 'BgSilver';
/**
* Create a new Quad_BgsChallengeMedals Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_BgsChallengeMedals
/*
* Protected properties
*/
public static function create($id = null) {
$quadBgsChallengeMedals = new Quad_BgsChallengeMedals($id);
return $quadBgsChallengeMedals;
}
/**
* Construct a new Quad_BgsChallengeMedals Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,50 +5,34 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'BgsPlayerCard' Style
* Quad class for 'BgsPlayerCard' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_BgsPlayerCard extends Quad {
/*
* Constants
*/
const STYLE = 'BgsPlayerCard';
const SUBSTYLE_BgActivePlayerCard = 'BgActivePlayerCard';
const SUBSTYLE_BgActivePlayerName = 'BgActivePlayerName';
const STYLE = 'BgsPlayerCard';
const SUBSTYLE_BgActivePlayerCard = 'BgActivePlayerCard';
const SUBSTYLE_BgActivePlayerName = 'BgActivePlayerName';
const SUBSTYLE_BgActivePlayerScore = 'BgActivePlayerScore';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgMediaTracker = 'BgMediaTracker';
const SUBSTYLE_BgPlayerCard = 'BgPlayerCard';
const SUBSTYLE_BgPlayerCardBig = 'BgPlayerCardBig';
const SUBSTYLE_BgPlayerCardSmall = 'BgPlayerCardSmall';
const SUBSTYLE_BgPlayerName = 'BgPlayerName';
const SUBSTYLE_BgPlayerScore = 'BgPlayerScore';
const SUBSTYLE_BgRacePlayerLine = 'BgRacePlayerLine';
const SUBSTYLE_BgRacePlayerName = 'BgRacePlayerName';
const SUBSTYLE_ProgressBar = 'ProgressBar';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgMediaTracker = 'BgMediaTracker';
const SUBSTYLE_BgPlayerCard = 'BgPlayerCard';
const SUBSTYLE_BgPlayerCardBig = 'BgPlayerCardBig';
const SUBSTYLE_BgPlayerCardSmall = 'BgPlayerCardSmall';
const SUBSTYLE_BgPlayerName = 'BgPlayerName';
const SUBSTYLE_BgPlayerScore = 'BgPlayerScore';
const SUBSTYLE_BgRacePlayerLine = 'BgRacePlayerLine';
const SUBSTYLE_BgRacePlayerName = 'BgRacePlayerName';
const SUBSTYLE_ProgressBar = 'ProgressBar';
/**
* Create a new Quad_BgsPlayerCard Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_BgsPlayerCard
/*
* Protected properties
*/
public static function create($id = null) {
$quadBgsPlayerCard = new Quad_BgsPlayerCard($id);
return $quadBgsPlayerCard;
}
/**
* Construct a new Quad_BgsPlayerCard Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,48 +5,32 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Copilot' Style
* Quad class for 'Copilot' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Copilot extends Quad {
/*
* Constants
*/
const STYLE = 'Copilot';
const SUBSTYLE_Down = 'Down';
const SUBSTYLE_DownGood = 'DownGood';
const SUBSTYLE_DownWrong = 'DownWrong';
const SUBSTYLE_Left = 'Left';
const SUBSTYLE_LeftGood = 'LeftGood';
const SUBSTYLE_LeftWrong = 'LeftWrong';
const SUBSTYLE_Right = 'Right';
const SUBSTYLE_RightGood = 'RightGood';
const STYLE = 'Copilot';
const SUBSTYLE_Down = 'Down';
const SUBSTYLE_DownGood = 'DownGood';
const SUBSTYLE_DownWrong = 'DownWrong';
const SUBSTYLE_Left = 'Left';
const SUBSTYLE_LeftGood = 'LeftGood';
const SUBSTYLE_LeftWrong = 'LeftWrong';
const SUBSTYLE_Right = 'Right';
const SUBSTYLE_RightGood = 'RightGood';
const SUBSTYLE_RightWrong = 'RightWrong';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_UpGood = 'UpGood';
const SUBSTYLE_UpWrong = 'UpWrong';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_UpGood = 'UpGood';
const SUBSTYLE_UpWrong = 'UpWrong';
/**
* Create a new Quad_Copilot Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Copilot
/*
* Protected properties
*/
public static function create($id = null) {
$quadCopilot = new Quad_Copilot($id);
return $quadCopilot;
}
/**
* Construct a new Quad_Copilot Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,39 +5,23 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Emblems' Style
* Quad class for 'Emblems' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Emblems extends Quad {
/*
* Constants
*/
const STYLE = 'Emblems';
const STYLE = 'Emblems';
const SUBSTYLE_0 = '#0';
const SUBSTYLE_1 = '#1';
const SUBSTYLE_2 = '#2';
/**
* Create a new Quad_Emblems Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Emblems
/*
* Protected properties
*/
public static function create($id = null) {
$quadEmblems = new Quad_Emblems($id);
return $quadEmblems;
}
/**
* Construct a new Quad_Emblems Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,42 +5,26 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'EnergyBar' Style
* Quad class for 'EnergyBar' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_EnergyBar extends Quad {
/*
* Constants
*/
const STYLE = 'EnergyBar';
const SUBSTYLE_BgText = 'BgText';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyBar_0_25 = 'EnergyBar_0.25';
const SUBSTYLE_EnergyBar_Thin = 'EnergyBar_Thin';
const SUBSTYLE_HeaderGaugeLeft = 'HeaderGaugeLeft';
const STYLE = 'EnergyBar';
const SUBSTYLE_BgText = 'BgText';
const SUBSTYLE_EnergyBar = 'EnergyBar';
const SUBSTYLE_EnergyBar_0_25 = 'EnergyBar_0.25';
const SUBSTYLE_EnergyBar_Thin = 'EnergyBar_Thin';
const SUBSTYLE_HeaderGaugeLeft = 'HeaderGaugeLeft';
const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
/**
* Create a new Quad_EnergyBar Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_EnergyBar
/*
* Protected properties
*/
public static function create($id = null) {
$quadEnergybar = new Quad_EnergyBar($id);
return $quadEnergybar;
}
/**
* Construct a new Quad_EnergyBar Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,45 +5,29 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Hud3dEchelons' Style
* Quad class for 'Hud3dEchelons' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Hud3dEchelons extends Quad {
/*
* Constants
*/
const STYLE = 'Hud3dEchelons';
const STYLE = 'Hud3dEchelons';
const SUBSTYLE_EchelonBronze1 = 'EchelonBronze1';
const SUBSTYLE_EchelonBronze2 = 'EchelonBronze2';
const SUBSTYLE_EchelonBronze3 = 'EchelonBronze3';
const SUBSTYLE_EchelonGold1 = 'EchelonGold1';
const SUBSTYLE_EchelonGold2 = 'EchelonGold2';
const SUBSTYLE_EchelonGold3 = 'EchelonGold3';
const SUBSTYLE_EchelonGold1 = 'EchelonGold1';
const SUBSTYLE_EchelonGold2 = 'EchelonGold2';
const SUBSTYLE_EchelonGold3 = 'EchelonGold3';
const SUBSTYLE_EchelonSilver1 = 'EchelonSilver1';
const SUBSTYLE_EchelonSilver2 = 'EchelonSilver2';
const SUBSTYLE_EchelonSilver3 = 'EchelonSilver3';
/**
* Create a new Quad_Hud3dEchelons Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Hud3dEchelons
/*
* Protected properties
*/
public static function create($id = null) {
$quadHud3dEchelons = new Quad_Hud3dEchelons($id);
return $quadHud3dEchelons;
}
/**
* Construct a new Quad_Hud3dEchelons Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,44 +5,28 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Hud3dIcons' Style
* Quad class for 'Hud3dIcons' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Hud3dIcons extends Quad {
/*
* Constants
*/
const STYLE = 'Hud3dIcons';
const SUBSTYLE_Cross = 'Cross';
const STYLE = 'Hud3dIcons';
const SUBSTYLE_Cross = 'Cross';
const SUBSTYLE_CrossTargeted = 'CrossTargeted';
const SUBSTYLE_Player1 = 'Player1';
const SUBSTYLE_Player2 = 'Player2';
const SUBSTYLE_Player3 = 'Player3';
const SUBSTYLE_PointA = 'PointA';
const SUBSTYLE_PointB = 'PointB';
const SUBSTYLE_PointC = 'PointC';
const SUBSTYLE_Player1 = 'Player1';
const SUBSTYLE_Player2 = 'Player2';
const SUBSTYLE_Player3 = 'Player3';
const SUBSTYLE_PointA = 'PointA';
const SUBSTYLE_PointB = 'PointB';
const SUBSTYLE_PointC = 'PointC';
/**
* Create a new Quad_Hud3dIcons Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Hud3dIcons
/*
* Protected properties
*/
public static function create($id = null) {
$quadHud3dIcons = new Quad_Hud3dIcons($id);
return $quadHud3dIcons;
}
/**
* Construct a new Quad_Hud3dIcons Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Icons128x128_1' Style
* Quad class for 'Icons128x128_1' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -81,24 +81,8 @@ class Quad_Icons128x128_1 extends Quad {
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
/**
* Create a new Quad_Icons128x128_1 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Icons128x128_1
/*
* Protected properties
*/
public static function create($id = null) {
$quadIcons128x128_1 = new Quad_Icons128x128_1($id);
return $quadIcons128x128_1;
}
/**
* Construct a new Quad_Icons128x128_1 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Icons128x128_Blink' Style
* Quad class for 'Icons128x128_Blink' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -81,24 +81,8 @@ class Quad_Icons128x128_Blink extends Quad {
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
/**
* Create a new Quad_Icons128x128_Blink Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Icons128x128_Blink
/*
* Protected properties
*/
public static function create($id = null) {
$quadIcons128x128_Blink = new Quad_Icons128x128_Blink($id);
return $quadIcons128x128_Blink;
}
/**
* Construct a new Quad_Icons128x128_Blink Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,62 +5,46 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Icons128x32_1' Style
* Quad class for 'Icons128x32_1' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Icons128x32_1 extends Quad {
/*
* Constants
*/
const STYLE = 'Icons128x32_1';
const SUBSTYLE_Empty = 'Empty';
const SUBSTYLE_ManiaLinkHome = 'ManiaLinkHome';
const STYLE = 'Icons128x32_1';
const SUBSTYLE_Empty = 'Empty';
const SUBSTYLE_ManiaLinkHome = 'ManiaLinkHome';
const SUBSTYLE_ManiaLinkSwitch = 'ManiaLinkSwitch';
const SUBSTYLE_ManiaPlanet = 'ManiaPlanet';
const SUBSTYLE_Minimize = 'Minimize';
const SUBSTYLE_Music = 'Music';
const SUBSTYLE_PainterBrush = 'PainterBrush';
const SUBSTYLE_PainterFill = 'PainterFill';
const SUBSTYLE_PainterLayer = 'PainterLayer';
const SUBSTYLE_PainterMirror = 'PainterMirror';
const SUBSTYLE_PainterSticker = 'PainterSticker';
const SUBSTYLE_PainterTeam = 'PainterTeam';
const SUBSTYLE_RT_Cup = 'RT_Cup';
const SUBSTYLE_RT_Laps = 'RT_Laps';
const SUBSTYLE_RT_Rounds = 'RT_Rounds';
const SUBSTYLE_RT_Script = 'RT_Script';
const SUBSTYLE_RT_Team = 'RT_Team';
const SUBSTYLE_RT_TimeAttack = 'RT_TimeAttack';
const SUBSTYLE_RT_Stunts = 'RT_Stunts';
const SUBSTYLE_Settings = 'Settings';
const SUBSTYLE_SliderBar = 'SliderBar';
const SUBSTYLE_SliderBar2 = 'SliderBar2';
const SUBSTYLE_SliderCursor = 'SliderCursor';
const SUBSTYLE_Sound = 'Sound';
const SUBSTYLE_UrlBg = 'UrlBg';
const SUBSTYLE_Windowed = 'Windowed';
const SUBSTYLE_ManiaPlanet = 'ManiaPlanet';
const SUBSTYLE_Minimize = 'Minimize';
const SUBSTYLE_Music = 'Music';
const SUBSTYLE_PainterBrush = 'PainterBrush';
const SUBSTYLE_PainterFill = 'PainterFill';
const SUBSTYLE_PainterLayer = 'PainterLayer';
const SUBSTYLE_PainterMirror = 'PainterMirror';
const SUBSTYLE_PainterSticker = 'PainterSticker';
const SUBSTYLE_PainterTeam = 'PainterTeam';
const SUBSTYLE_RT_Cup = 'RT_Cup';
const SUBSTYLE_RT_Laps = 'RT_Laps';
const SUBSTYLE_RT_Rounds = 'RT_Rounds';
const SUBSTYLE_RT_Script = 'RT_Script';
const SUBSTYLE_RT_Team = 'RT_Team';
const SUBSTYLE_RT_TimeAttack = 'RT_TimeAttack';
const SUBSTYLE_RT_Stunts = 'RT_Stunts';
const SUBSTYLE_Settings = 'Settings';
const SUBSTYLE_SliderBar = 'SliderBar';
const SUBSTYLE_SliderBar2 = 'SliderBar2';
const SUBSTYLE_SliderCursor = 'SliderCursor';
const SUBSTYLE_Sound = 'Sound';
const SUBSTYLE_UrlBg = 'UrlBg';
const SUBSTYLE_Windowed = 'Windowed';
/**
* Create a new Quad_Icons128x32_1 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Icons128x32_1
/*
* Protected properties
*/
public static function create($id = null) {
$quadIcons128x32_1 = new Quad_Icons128x32_1($id);
return $quadIcons128x32_1;
}
/**
* Construct a new Quad_Icons128x32_1 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,122 +5,106 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Icons64x64_1' Style
* Quad class for 'Icons64x64_1' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Icons64x64_1 extends Quad {
/*
* Constants
*/
const STYLE = 'Icons64x64_1';
const SUBSTYLE_3DStereo = '3DStereo';
const SUBSTYLE_Add = 'Add';
const SUBSTYLE_ArrowBlue = 'ArrowBlue';
const SUBSTYLE_ArrowDisabled = 'ArrowDisabled';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowFastNext = 'ArrowFastNext';
const SUBSTYLE_ArrowFastPrev = 'ArrowFastPrev';
const SUBSTYLE_ArrowFirst = 'ArrowFirst';
const SUBSTYLE_ArrowGreen = 'ArrowGreen';
const SUBSTYLE_ArrowLast = 'ArrowLast';
const SUBSTYLE_ArrowNext = 'ArrowNext';
const SUBSTYLE_ArrowPrev = 'ArrowPrev';
const SUBSTYLE_ArrowRed = 'ArrowRed';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_Browser = 'Browser';
const SUBSTYLE_Buddy = 'Buddy';
const SUBSTYLE_ButtonLeagues = 'ButtonLeagues';
const SUBSTYLE_Camera = 'Camera';
const SUBSTYLE_CameraLocal = 'CameraLocal';
const SUBSTYLE_Check = 'Check';
const SUBSTYLE_ClipPause = 'ClipPause';
const SUBSTYLE_ClipPlay = 'ClipPlay';
const SUBSTYLE_ClipRewind = 'ClipRewind';
const SUBSTYLE_Close = 'Close';
const SUBSTYLE_Empty = 'Empty';
const SUBSTYLE_Finish = 'Finish';
const SUBSTYLE_FinishGrey = 'FinishGrey';
const SUBSTYLE_First = 'First';
const SUBSTYLE_GenericButton = 'GenericButton';
const SUBSTYLE_Green = 'Green';
const SUBSTYLE_IconLeaguesLadder = 'IconLeaguesLadder';
const SUBSTYLE_IconPlayers = 'IconPlayers';
const SUBSTYLE_IconPlayersLadder = 'IconPlayersLadder';
const SUBSTYLE_IconServers = 'IconServers';
const SUBSTYLE_Inbox = 'Inbox';
const SUBSTYLE_LvlGreen = 'LvlGreen';
const SUBSTYLE_LvlRed = 'LvlRed';
const SUBSTYLE_LvlYellow = 'LvlYellow';
const SUBSTYLE_ManiaLinkNext = 'ManiaLinkNext';
const SUBSTYLE_ManiaLinkPrev = 'ManiaLinkPrev';
const SUBSTYLE_Maximize = 'Maximize';
const STYLE = 'Icons64x64_1';
const SUBSTYLE_3DStereo = '3DStereo';
const SUBSTYLE_Add = 'Add';
const SUBSTYLE_ArrowBlue = 'ArrowBlue';
const SUBSTYLE_ArrowDisabled = 'ArrowDisabled';
const SUBSTYLE_ArrowDown = 'ArrowDown';
const SUBSTYLE_ArrowFastNext = 'ArrowFastNext';
const SUBSTYLE_ArrowFastPrev = 'ArrowFastPrev';
const SUBSTYLE_ArrowFirst = 'ArrowFirst';
const SUBSTYLE_ArrowGreen = 'ArrowGreen';
const SUBSTYLE_ArrowLast = 'ArrowLast';
const SUBSTYLE_ArrowNext = 'ArrowNext';
const SUBSTYLE_ArrowPrev = 'ArrowPrev';
const SUBSTYLE_ArrowRed = 'ArrowRed';
const SUBSTYLE_ArrowUp = 'ArrowUp';
const SUBSTYLE_Browser = 'Browser';
const SUBSTYLE_Buddy = 'Buddy';
const SUBSTYLE_ButtonLeagues = 'ButtonLeagues';
const SUBSTYLE_Camera = 'Camera';
const SUBSTYLE_CameraLocal = 'CameraLocal';
const SUBSTYLE_Check = 'Check';
const SUBSTYLE_ClipPause = 'ClipPause';
const SUBSTYLE_ClipPlay = 'ClipPlay';
const SUBSTYLE_ClipRewind = 'ClipRewind';
const SUBSTYLE_Close = 'Close';
const SUBSTYLE_Empty = 'Empty';
const SUBSTYLE_Finish = 'Finish';
const SUBSTYLE_FinishGrey = 'FinishGrey';
const SUBSTYLE_First = 'First';
const SUBSTYLE_GenericButton = 'GenericButton';
const SUBSTYLE_Green = 'Green';
const SUBSTYLE_IconLeaguesLadder = 'IconLeaguesLadder';
const SUBSTYLE_IconPlayers = 'IconPlayers';
const SUBSTYLE_IconPlayersLadder = 'IconPlayersLadder';
const SUBSTYLE_IconServers = 'IconServers';
const SUBSTYLE_Inbox = 'Inbox';
const SUBSTYLE_LvlGreen = 'LvlGreen';
const SUBSTYLE_LvlRed = 'LvlRed';
const SUBSTYLE_LvlYellow = 'LvlYellow';
const SUBSTYLE_ManiaLinkNext = 'ManiaLinkNext';
const SUBSTYLE_ManiaLinkPrev = 'ManiaLinkPrev';
const SUBSTYLE_Maximize = 'Maximize';
const SUBSTYLE_MediaAudioDownloading = 'MediaAudioDownloading';
const SUBSTYLE_MediaPlay = 'MediaPlay';
const SUBSTYLE_MediaStop = 'MediaStop';
const SUBSTYLE_MediaPlay = 'MediaPlay';
const SUBSTYLE_MediaStop = 'MediaStop';
const SUBSTYLE_MediaVideoDownloading = 'MediaVideoDownloading';
const SUBSTYLE_NewMessage = 'NewMessage';
const SUBSTYLE_NotBuddy = 'NotBuddy';
const SUBSTYLE_OfficialRace = 'OfficialRace';
const SUBSTYLE_Opponents = 'Opponents';
const SUBSTYLE_Outbox = 'Outbox';
const SUBSTYLE_QuitRace = 'QuitRace';
const SUBSTYLE_RedHigh = 'RedHigh';
const SUBSTYLE_RedLow = 'RedLow';
const SUBSTYLE_Refresh = 'Refresh';
const SUBSTYLE_RestartRace = 'RestartRace';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_Second = 'Second';
const SUBSTYLE_ShowDown = 'ShowDown';
const SUBSTYLE_ShowDown2 = 'ShowDown2';
const SUBSTYLE_ShowLeft = 'ShowLeft';
const SUBSTYLE_ShowLeft2 = 'ShowLeft2';
const SUBSTYLE_ShowRight = 'ShowRight';
const SUBSTYLE_ShowRight2 = 'ShowRight2';
const SUBSTYLE_ShowUp = 'ShowUp';
const SUBSTYLE_ShowUp2 = 'ShowUp2';
const SUBSTYLE_ShowUpChanging = 'ShowUpChanging';
const SUBSTYLE_SliderCursor = 'SliderCursor';
const SUBSTYLE_SliderCursor2 = 'SliderCursor2';
const SUBSTYLE_StateFavourite = 'StateFavourite';
const SUBSTYLE_StatePrivate = 'StatePrivate';
const SUBSTYLE_StateSuggested = 'StateSuggested';
const SUBSTYLE_Sub = 'Sub';
const SUBSTYLE_TagTypeBronze = 'TagTypeBronze';
const SUBSTYLE_TagTypeGold = 'TagTypeGold';
const SUBSTYLE_TagTypeNadeo = 'TagTypeNadeo';
const SUBSTYLE_TagTypeNone = 'TagTypeNone';
const SUBSTYLE_TagTypeSilver = 'TagTypeSilver';
const SUBSTYLE_Third = 'Third';
const SUBSTYLE_ToolLeague1 = 'ToolLeague1';
const SUBSTYLE_ToolRoot = 'ToolRoot';
const SUBSTYLE_ToolTree = 'ToolTree';
const SUBSTYLE_ToolUp = 'ToolUp';
const SUBSTYLE_TrackInfo = 'TrackInfo';
const SUBSTYLE_TV = 'TV';
const SUBSTYLE_YellowHigh = 'YellowHigh';
const SUBSTYLE_YellowLow = 'YellowLow';
const SUBSTYLE_NewMessage = 'NewMessage';
const SUBSTYLE_NotBuddy = 'NotBuddy';
const SUBSTYLE_OfficialRace = 'OfficialRace';
const SUBSTYLE_Opponents = 'Opponents';
const SUBSTYLE_Outbox = 'Outbox';
const SUBSTYLE_QuitRace = 'QuitRace';
const SUBSTYLE_RedHigh = 'RedHigh';
const SUBSTYLE_RedLow = 'RedLow';
const SUBSTYLE_Refresh = 'Refresh';
const SUBSTYLE_RestartRace = 'RestartRace';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_Second = 'Second';
const SUBSTYLE_ShowDown = 'ShowDown';
const SUBSTYLE_ShowDown2 = 'ShowDown2';
const SUBSTYLE_ShowLeft = 'ShowLeft';
const SUBSTYLE_ShowLeft2 = 'ShowLeft2';
const SUBSTYLE_ShowRight = 'ShowRight';
const SUBSTYLE_ShowRight2 = 'ShowRight2';
const SUBSTYLE_ShowUp = 'ShowUp';
const SUBSTYLE_ShowUp2 = 'ShowUp2';
const SUBSTYLE_ShowUpChanging = 'ShowUpChanging';
const SUBSTYLE_SliderCursor = 'SliderCursor';
const SUBSTYLE_SliderCursor2 = 'SliderCursor2';
const SUBSTYLE_StateFavourite = 'StateFavourite';
const SUBSTYLE_StatePrivate = 'StatePrivate';
const SUBSTYLE_StateSuggested = 'StateSuggested';
const SUBSTYLE_Sub = 'Sub';
const SUBSTYLE_TagTypeBronze = 'TagTypeBronze';
const SUBSTYLE_TagTypeGold = 'TagTypeGold';
const SUBSTYLE_TagTypeNadeo = 'TagTypeNadeo';
const SUBSTYLE_TagTypeNone = 'TagTypeNone';
const SUBSTYLE_TagTypeSilver = 'TagTypeSilver';
const SUBSTYLE_Third = 'Third';
const SUBSTYLE_ToolLeague1 = 'ToolLeague1';
const SUBSTYLE_ToolRoot = 'ToolRoot';
const SUBSTYLE_ToolTree = 'ToolTree';
const SUBSTYLE_ToolUp = 'ToolUp';
const SUBSTYLE_TrackInfo = 'TrackInfo';
const SUBSTYLE_TV = 'TV';
const SUBSTYLE_YellowHigh = 'YellowHigh';
const SUBSTYLE_YellowLow = 'YellowLow';
/**
* Create a new Quad_Icons64x64_1 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Icons64x64_1
/*
* Protected properties
*/
public static function create($id = null) {
$quadIcons64x64_1 = new Quad_Icons64x64_1($id);
return $quadIcons64x64_1;
}
/**
* Construct a new Quad_Icons64x64_1 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,50 +5,34 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'Icons64x64_2' Style
* Quad class for 'Icons64x64_2' styles
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_Icons64x64_2 extends Quad {
/*
* Constants
*/
const STYLE = 'Icons64x64_2';
const SUBSTYLE_ArrowElimination = 'ArrowElimination';
const SUBSTYLE_ArrowHit = 'ArrowHit';
const SUBSTYLE_Disconnected = 'Disconnected';
const SUBSTYLE_DisconnectedLight = 'DisconnectedLight';
const SUBSTYLE_LaserElimination = 'LaserElimination';
const SUBSTYLE_LaserHit = 'LaserHit';
const STYLE = 'Icons64x64_2';
const SUBSTYLE_ArrowElimination = 'ArrowElimination';
const SUBSTYLE_ArrowHit = 'ArrowHit';
const SUBSTYLE_Disconnected = 'Disconnected';
const SUBSTYLE_DisconnectedLight = 'DisconnectedLight';
const SUBSTYLE_LaserElimination = 'LaserElimination';
const SUBSTYLE_LaserHit = 'LaserHit';
const SUBSTYLE_NucleusElimination = 'NucleusElimination';
const SUBSTYLE_NucleusHit = 'NucleusHit';
const SUBSTYLE_RocketElimination = 'RocketElimination';
const SUBSTYLE_RocketHit = 'RocketHit';
const SUBSTYLE_ServerNotice = 'ServerNotice';
const SUBSTYLE_SortBy = 'SortBy';
const SUBSTYLE_NucleusHit = 'NucleusHit';
const SUBSTYLE_RocketElimination = 'RocketElimination';
const SUBSTYLE_RocketHit = 'RocketHit';
const SUBSTYLE_ServerNotice = 'ServerNotice';
const SUBSTYLE_SortBy = 'SortBy';
const SUBSTYLE_UnknownElimination = 'UnknownElimination';
const SUBSTYLE_UnknownHit = 'UnknownHit';
const SUBSTYLE_UnknownHit = 'UnknownHit';
/**
* Create a new Quad_Icons64x64_2 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_Icons64x64_2
/*
* Protected properties
*/
public static function create($id = null) {
$quadIcons64x64_2 = new Quad_Icons64x64_2($id);
return $quadIcons64x64_2;
}
/**
* Construct a new Quad_Icons64x64_2 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'ManiaPlanetLogos' Style
* Quad class for 'ManiaPlanetLogos' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -24,24 +24,8 @@ class Quad_ManiaPlanetLogos extends Quad {
const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite';
const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall';
/**
* Create a new Quad_ManiaPlanetLogos Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_ManiaPlanetLogos
/*
* Protected properties
*/
public static function create($id = null) {
$quadManiaPlanetLogos = new Quad_ManiaPlanetLogos($id);
return $quadManiaPlanetLogos;
}
/**
* Construct a new Quad_ManiaPlanetLogos Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'ManiaPlanetMainMenu' Style
* Quad class for 'ManiaPlanetMainMenu' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -28,24 +28,8 @@ class Quad_ManiaPlanetMainMenu extends Quad {
const SUBSTYLE_TitleBg = 'TitleBg';
const SUBSTYLE_TopBar = 'TopBar';
/**
* Create a new Quad_ManiaPlanetMainMenu Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_ManiaPlanetMainMenu
/*
* Protected properties
*/
public static function create($id = null) {
$quadManiaPlanetMainMenu = new Quad_ManiaPlanetMainMenu($id);
return $quadManiaPlanetMainMenu;
}
/**
* Construct a new Quad_ManiaPlanetMainMenu Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'ManiaplanetSystem' Style
* Quad class for 'ManiaplanetSystem' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -23,24 +23,8 @@ class Quad_ManiaplanetSystem extends Quad {
const SUBSTYLE_Medals = 'Medals';
const SUBSTYLE_Statistics = 'Statistics';
/**
* Create a new Quad_ManiaplanetSystem Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_ManiaplanetSystem
/*
* Protected properties
*/
public static function create($id = null) {
$quadManiaplanetSystem = new Quad_ManiaplanetSystem($id);
return $quadManiaplanetSystem;
}
/**
* Construct a new Quad_ManiaplanetSystem Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'MedalsBig' Style
* Quad class for 'MedalsBig' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -24,24 +24,8 @@ class Quad_MedalsBig extends Quad {
const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot';
/**
* Create a new Quad_MedalsBig Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_MedalsBig
/*
* Protected properties
*/
public static function create($id = null) {
$quadMedalsBig = new Quad_MedalsBig($id);
return $quadMedalsBig;
}
/**
* Construct a new Quad_MedalsBig Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'TitleLogos' Style
* Quad class for 'TitleLogos' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -21,24 +21,8 @@ class Quad_TitleLogos extends Quad {
const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title';
/**
* Create a new Quad_TitleLogos Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_TitleLogos
/*
* Protected properties
*/
public static function create($id = null) {
$quadTitleLogos = new Quad_TitleLogos($id);
return $quadTitleLogos;
}
/**
* Construct a new Quad_TitleLogos Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'UIConstruction_Buttons' Style
* Quad class for 'UIConstruction_Buttons' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -73,24 +73,8 @@ class Quad_UIConstruction_Buttons extends Quad {
const SUBSTYLE_Validate_Step2 = 'Validate_Step2';
const SUBSTYLE_Validate_Step3 = 'Validate_Step3';
/**
* Create a new Quad_UIConstruction_Buttons Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_UIConstruction_Buttons
/*
* Protected properties
*/
public static function create($id = null) {
$quadUIConstructionButtons = new Quad_UIConstruction_Buttons($id);
return $quadUIConstructionButtons;
}
/**
* Construct a new Quad_UIConstruction_Buttons Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'UIConstruction_Buttons2' Style
* Quad class for 'UIConstruction_Buttons2' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -29,24 +29,8 @@ class Quad_UIConstruction_Buttons2 extends Quad {
const SUBSTYLE_Open = 'Open';
const SUBSTYLE_Symmetry = 'Symmetry';
/**
* Create a new Quad_UIConstruction_Buttons2 Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_UIConstruction_Buttons2
/*
* Protected properties
*/
public static function create($id = null) {
$quadUIConstructionButtons2 = new Quad_UIConstruction_Buttons2($id);
return $quadUIConstructionButtons2;
}
/**
* Construct a new Quad_UIConstruction_Buttons2 Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -5,7 +5,7 @@ namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
* Quad Class for 'UiSMSpectatorScoreBig' Style
* Quad class for 'UiSMSpectatorScoreBig' styles
*
* @author steeffeen <mail@steeffeen.com>
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
@ -38,24 +38,8 @@ class Quad_UiSMSpectatorScoreBig extends Quad {
CONST SUBSTYLE_UIRange1Bg = 'UIRange1Bg';
CONST SUBSTYLE_UIRange2Bg = 'UIRange2Bg';
/**
* Create a new Quad_UiSMSpectatorScoreBig Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_UiSMSpectatorScoreBig
/*
* Protected properties
*/
public static function create($id = null) {
$quadUiSMSpectatorScoreBig = new Quad_UiSMSpectatorScoreBig($id);
return $quadUiSMSpectatorScoreBig;
}
/**
* Construct a new Quad_UiSMSpectatorScoreBig Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
protected $style = self::STYLE;
}

View File

@ -15,36 +15,16 @@ use FML\Types\Scriptable;
*/
class Video extends Control implements Playable, Scriptable {
/*
* Protected Properties
* Protected properties
*/
protected $data = '';
protected $dataId = '';
protected $play = 0;
protected $looping = 0;
protected $music = 0;
protected $tagName = 'video';
protected $data = null;
protected $dataId = null;
protected $play = null;
protected $looping = true;
protected $music = null;
protected $volume = 1.;
protected $scriptEvents = 0;
/**
* Construct a new Video Control
*
* @param string $id (optional) Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
$this->tagName = 'video';
}
/**
* Create a new Video Control
*
* @param string $id (optional) Control Id
* @return \FML\Controls\Video
*/
public static function create($id = null) {
$video = new Video($id);
return $video;
}
protected $scriptEvents = null;
/**
* @see \FML\Controls\Control::getManiaScriptClass()
@ -110,7 +90,7 @@ class Video extends Control implements Playable, Scriptable {
}
/**
* @see \FML\Control::render()
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = parent::render($domDocument);