Huge FML Update

This commit is contained in:
Steffen Schröder
2013-12-31 02:55:19 +01:00
parent 34be67569f
commit 5447588749
67 changed files with 1783 additions and 1898 deletions

View File

@ -3,16 +3,17 @@
namespace FML\Controls;
/**
* Class representing audio (CMlMediaPlayer)
* Class representing Audio (CMlMediaPlayer)
*
* @author steeffeen
*/
class Audio extends Control implements Playable, Scriptable {
/**
* Construct a new audio control
* Construct a new Audio Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);

View File

@ -1,274 +1,287 @@
<?php
namespace FML\Controls;
use FML\Types\Renderable;
/**
* Class representing CMlControl
*
* @author steeffeen
*/
abstract class Control implements Renderable {
/**
* Constants
*/
const CENTER = 'center';
const CENTER2 = 'center2';
const TOP = 'top';
const RIGHT = 'right';
const BOTTOM = 'bottom';
const LEFT = 'left';
/**
* Protected properties
*/
protected $tagName = 'control';
protected $id = '';
protected $x = 0.;
protected $y = 0.;
protected $z = 0.;
protected $width = -1.;
protected $height = -1.;
protected $hAlign = self::CENTER;
protected $vAlign = self::CENTER2;
protected $scale = 1.;
protected $hidden = 0;
protected $classes = array();
/**
* Construct a new control
*
* @param string $id
*/
public function __construct($id = null) {
if ($id !== null) {
$this->setId($id);
}
}
/**
* Get control id
*
* @return string
*/
public function getId() {
return $this->id;
}
/**
* Set control id
*
* @param string $id
* @return \FML\Controls\Control
*/
public function setId($id) {
$this->id = $id;
return $this;
}
/**
* Assign an unique id if necessary
*
* @return \FML\Controls\Control
*/
public function assignId() {
if ($this->getId()) {
return $this;
}
$this->setId(uniqid());
return $this;
}
/**
* Set x position
*
* @param float $x
* @return \FML\Controls\Control
*/
public function setX($x) {
$this->x = $x;
return $this;
}
/**
* Set y position
*
* @param float $y
* @return \FML\Controls\Control
*/
public function setY($y) {
$this->y = $y;
return $this;
}
/**
* Set z position
*
* @param float $z
* @return \FML\Controls\Control
*/
public function setZ($z) {
$this->z = $z;
return $this;
}
/**
* Set position
*
* @param float $x
* @param float $y
* @param float $z
* @return \FML\Controls\Control
*/
public function setPosition($x, $y, $z = null) {
$this->setX($x);
$this->setY($y);
if ($z !== null) {
$this->setZ($z);
}
return $this;
}
/**
* Set width
*
* @param float $width
* @return \FML\Controls\Control
*/
public function setWidth($width) {
$this->width = $width;
return $this;
}
/**
* Set height
*
* @param float $height
* @return \FML\Controls\Control
*/
public function setHeight($height) {
$this->height = $height;
return $this;
}
/**
* Set size
*
* @param float $width
* @param float $height
* @return \FML\Controls\Control
*/
public function setSize($width, $height) {
$this->setWidth($width);
$this->setHeight($height);
return $this;
}
/**
* Set horizontal alignment
*
* @param string $hAlign
* @return \FML\Controls\Control
*/
public function setHAlign($hAlign) {
$this->hAlign = $hAlign;
return $this;
}
/**
* Set vertical alignment
*
* @param string $vAlign
* @return \FML\Controls\Control
*/
public function setVAlign($vAlign) {
$this->vAlign = $vAlign;
return $this;
}
/**
* Set horizontal and vertical alignment
*
* @param string $hAlign
* @param string $vAlign
* @return \FML\Controls\Control
*/
public function setAlign($hAlign, $vAlign) {
$this->setHAlign($hAlign);
$this->setVAlign($vAlign);
return $this;
}
/**
* Set scale
*
* @param float $scale
* @return \FML\Controls\Control
*/
public function setScale($scale) {
$this->scale = $scale;
return $this;
}
/**
* Set visible
*
* @param bool $visible
* @return \FML\Controls\Control
*/
public function setVisible($visible) {
$this->hidden = ($visible ? 0 : 1);
return $this;
}
/**
* Add class name
*
* @param string $class
* @return \FML\Controls\Control
*/
public function addClass($class) {
array_push($this->classes, $class);
return $this;
}
/**
*
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xml = $domDocument->createElement($this->tagName);
if ($this->id) {
$xml->setAttribute('id', $this->id);
}
if ($this->x !== 0. || $this->y !== 0. || $this->z !== 0.) {
$xml->setAttribute('posn', "{$this->x} {$this->y} {$this->z}");
}
if ($this->width >= 0. || $this->height >= 0.) {
$xml->setAttribute('sizen', "{$this->width} {$this->height}");
}
if (get_class($this) !== Frame::getClass()) {
if ($this->hAlign) {
$xml->setAttribute('halign', $this->hAlign);
}
if ($this->vAlign) {
$xml->setAttribute('valign', $this->vAlign);
}
}
if ($this->scale !== 1.) {
$xml->setAttribute('scale', $this->scale);
}
if ($this->hidden) {
$xml->setAttribute('hidden', $this->hidden);
}
$classes = '';
foreach ($this->classes as $class) {
$classes .= $class . ' ';
}
if ($classes) {
$xml->setAttribute('class', $classes);
}
return $xml;
}
<?php
namespace FML\Controls;
use FML\Types\Renderable;
/**
* Class representing CMlControl
*
* @author steeffeen
*/
abstract class Control implements Renderable {
/**
* Constants
*/
const CENTER = 'center';
const CENTER2 = 'center2';
const TOP = 'top';
const RIGHT = 'right';
const BOTTOM = 'bottom';
const LEFT = 'left';
/**
* Protected Properties
*/
protected $tagName = 'control';
protected $id = '';
protected $x = 0.;
protected $y = 0.;
protected $z = 0.;
protected $width = -1.;
protected $height = -1.;
protected $hAlign = self::CENTER;
protected $vAlign = self::CENTER2;
protected $scale = 1.;
protected $hidden = 0;
protected $classes = array();
/**
* Construct a new Control
*
* @param string $id Control Id
*/
public function __construct($id = null) {
if ($id !== null) {
$this->setId($id);
}
}
/**
* Get Control Id
*
* @return string
*/
public function getId() {
return $this->id;
}
/**
* Set Control Id
*
* @param string $id Control Id
* @return \FML\Controls\Control
*/
public function setId($id) {
$this->id = $id;
return $this;
}
/**
* Check Id for dangerous Characters and assign an unique Id if necessary
*
* @return \FML\Controls\Control
*/
public function checkId() {
if (!$this->getId()) {
$this->setId(uniqid());
return $this;
}
$dangerousCharacters = array(' ', ' ', '.', '|', '-', PHP_EOL);
$idCharacters = str_split($this->getId());
$danger = false;
foreach ($idCharacters as $character) {
if (!in_array($character, $dangerousCharacters)) continue;
$danger = true;
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);
}
return $this;
}
/**
* Set X Position
*
* @param float $x Horizontal Position
* @return \FML\Controls\Control
*/
public function setX($x) {
$this->x = $x;
return $this;
}
/**
* Set Y Position
*
* @param float $y Vertical Position
* @return \FML\Controls\Control
*/
public function setY($y) {
$this->y = $y;
return $this;
}
/**
* Set Z Position
*
* @param float $z Depth
* @return \FML\Controls\Control
*/
public function setZ($z) {
$this->z = $z;
return $this;
}
/**
* Set Control Position
*
* @param float $x Horizontal Position
* @param float $y Vertical Position
* @param float $z Depth
* @return \FML\Controls\Control
*/
public function setPosition($x, $y, $z = null) {
$this->setX($x);
$this->setY($y);
if ($z !== null) {
$this->setZ($z);
}
return $this;
}
/**
* Set Control Width
*
* @param float $width Control Width
* @return \FML\Controls\Control
*/
public function setWidth($width) {
$this->width = $width;
return $this;
}
/**
* Set Control Height
*
* @param float $height Control Height
* @return \FML\Controls\Control
*/
public function setHeight($height) {
$this->height = $height;
return $this;
}
/**
* Set Control Size
*
* @param float $width Control Width
* @param float $height Control Height
* @return \FML\Controls\Control
*/
public function setSize($width, $height) {
$this->setWidth($width);
$this->setHeight($height);
return $this;
}
/**
* Set Horizontal Alignment
*
* @param string $hAlign Horizontal Alignment
* @return \FML\Controls\Control
*/
public function setHAlign($hAlign) {
$this->hAlign = $hAlign;
return $this;
}
/**
* Set Vertical Alignment
*
* @param string $vAlign Vertical Alignment
* @return \FML\Controls\Control
*/
public function setVAlign($vAlign) {
$this->vAlign = $vAlign;
return $this;
}
/**
* Set Horizontal and Vertical Alignment
*
* @param string $hAlign Horizontal Alignment
* @param string $vAlign Vertical Alignment
* @return \FML\Controls\Control
*/
public function setAlign($hAlign, $vAlign) {
$this->setHAlign($hAlign);
$this->setVAlign($vAlign);
return $this;
}
/**
* Set Control Scale
*
* @param float $scale Control Scale
* @return \FML\Controls\Control
*/
public function setScale($scale) {
$this->scale = $scale;
return $this;
}
/**
* Set Visibility
*
* @param bool $visible If Control should be visible
* @return \FML\Controls\Control
*/
public function setVisible($visible) {
$this->hidden = ($visible ? 0 : 1);
return $this;
}
/**
* Add new Class Name
*
* @param string $class Class Name
* @return \FML\Controls\Control
*/
public function addClass($class) {
if (!in_array($class, $this->classes)) {
array_push($this->classes, $class);
}
return $this;
}
/**
*
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$xml = $domDocument->createElement($this->tagName);
if ($this->id) {
$xml->setAttribute('id', $this->id);
}
if ($this->x !== 0. || $this->y !== 0. || $this->z !== 0.) {
$xml->setAttribute('posn', "{$this->x} {$this->y} {$this->z}");
}
if ($this->width >= 0. || $this->height >= 0.) {
$xml->setAttribute('sizen', "{$this->width} {$this->height}");
}
if ($this->hAlign) {
$xml->setAttribute('halign', $this->hAlign);
}
if ($this->vAlign) {
$xml->setAttribute('valign', $this->vAlign);
}
if ($this->scale !== 1.) {
$xml->setAttribute('scale', $this->scale);
}
if ($this->hidden) {
$xml->setAttribute('hidden', $this->hidden);
}
$classes = '';
foreach ($this->classes as $class) {
$classes .= $class . ' ';
}
if ($classes) {
$xml->setAttribute('class', $classes);
}
return $xml;
}
}

View File

@ -14,7 +14,7 @@ use FML\Types\TextFormatable;
*/
class Entry extends Control implements NewLineable, Scriptable, Styleable, TextFormatable {
/**
* Protected properties
* Protected Properties
*/
protected $name = '';
protected $default = null;
@ -27,7 +27,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
protected $areaFocusColor = '';
/**
* Construct a new entry control
* Construct a new Entry Control
*
* @param string $id
*/
@ -37,9 +37,10 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Set name
* Set Entry Name
*
* @param string $name
* @param string $name
* Entry Name
* @return \FML\Controls\Entry
*/
public function setName($name) {
@ -48,9 +49,10 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
}
/**
* Set default
* Set Default Value
*
* @param string $default
* @param string $default
* Default Value
* @return \FML\Controls\Entry
*/
public function setDefault($default) {

View File

@ -9,14 +9,15 @@ namespace FML\Controls;
*/
class FileEntry extends Entry {
/**
* Protected properties
* Protected Properties
*/
protected $folder = '';
/**
* Construct a new FileEntry control
* Construct a new FileEntry Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -24,9 +25,10 @@ class FileEntry extends Entry {
}
/**
* Set folder
* Set Folder
*
* @param string $folder
* @param string $folder
* Base Folder
* @return \FML\Controls\FileEntry
*/
public function setFolder($folder) {

View File

@ -12,14 +12,15 @@ use FML\Types\Renderable;
*/
class Frame extends Control implements Container {
/**
* Protected properties
* Protected Properties
*/
protected $children = array();
/**
* Construct a new frame control
* Construct a new Frame Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -58,13 +59,4 @@ class Frame extends Control implements Container {
}
return $xml;
}
/**
* Return class name
*
* @return string
*/
public static function getClass() {
return __CLASS__;
}
}

View File

@ -5,21 +5,22 @@ namespace FML\Controls;
use FML\Types\Scriptable;
/**
* Class representing frame3d elements (CMlFrame)
* Class representing Frame3d Elements (CMlFrame)
*
* @author steeffeen
*/
class Frame3d extends Frame implements Scriptable {
/**
* Protected properties
* Protected Properties
*/
protected $style3d = '';
protected $scriptEvents = 0;
/**
* Construct a new frame3d control
* Construct a new Frame3d Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -29,7 +30,8 @@ class Frame3d extends Frame implements Scriptable {
/**
* Set style3d
*
* @param string $style3d
* @param string $style3d
* 3D Style
* @return \FML\Controls\Frame3d
*/
public function setStyle3d($style3d) {

View File

@ -11,7 +11,7 @@ use FML\Types\Styleable;
*/
class Gauge extends Control implements Styleable {
/**
* Protected properties
* Protected Properties
*/
protected $ratio = 1.;
protected $grading = 1.;
@ -24,9 +24,10 @@ class Gauge extends Control implements Styleable {
protected $style = '';
/**
* Construct a new gauge control
* Construct a new Gauge Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -34,9 +35,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set ratio
* Set Ratio
*
* @param float $ratio
* @param float $ratio
* Ratio Value
* @return \FML\Controls\Gauge
*/
public function setRatio($ratio) {
@ -45,9 +47,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set grading
* Set Grading
*
* @param float $grading
* @param float $grading
* Grading Value
* @return \FML\Controls\Gauge
*/
public function setGrading($grading) {
@ -56,9 +59,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set color
* Set Color
*
* @param string $color
* @param string $color
* Gauge Color
* @return \FML\Controls\Gauge
*/
public function setColor($color) {
@ -67,9 +71,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set rotation
* Set Rotation
*
* @param float $rotation
* @param float $rotation
* Gauge Rotation
* @return \FML\Controls\Gauge
*/
public function setRotation($rotation) {
@ -78,9 +83,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set centered
* Set Centered
*
* @param bool $centered
* @param bool $centered
* If Gauge is centered
* @return \FML\Controls\Gauge
*/
public function setCentered($centered) {
@ -89,9 +95,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set clan
* Set Clan
*
* @param int $clan
* @param int $clan
* Clan number
* @return \FML\Controls\Gauge
*/
public function setClan($clan) {
@ -100,9 +107,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set draw background
* Set Draw Background
*
* @param bool $drawBg
* @param bool $drawBg
* If Gauge Background should be drawn
* @return \FML\Controls\Gauge
*/
public function setDrawBg($drawBg) {
@ -111,9 +119,10 @@ class Gauge extends Control implements Styleable {
}
/**
* Set draw block background
* Set Draw Block Background
*
* @param bool $drawBlockBg
* @param bool $drawBlockBg
* If Gauge Block Background should be drawn
* @return \FML\Controls\Gauge
*/
public function setDrawBlockBg($drawBlockBg) {
@ -124,6 +133,7 @@ class Gauge extends Control implements Styleable {
/**
*
* @see \FML\Types\Styleable::setStyle()
* @return \FML\Controls\Gauge
*/
public function setStyle($style) {
$this->style = $style;

View File

@ -16,7 +16,7 @@ use FML\Types\TextFormatable;
*/
class Label extends Control implements Actionable, Linkable, NewLineable, Scriptable, Styleable, TextFormatable {
/**
* Protected properties
* Protected Properties
*/
protected $text = '';
protected $textPrefix = '';
@ -35,9 +35,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
protected $areaFocusColor = '';
/**
* Construct label control
* Construct a new Label Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -46,9 +47,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set text
* Set Text
*
* @param string $text
* @param string $text
* Text Value
* @return \FML\Controls\Label
*/
public function setText($text) {
@ -57,9 +59,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set text prefix
* Set Text Prefix
*
* @param string $textPrefix
* @param string $textPrefix
* Text Pefix
* @return \FML\Controls\Label
*/
public function setTextPrefix($textPrefix) {
@ -68,9 +71,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set text emboss
* Set Text Emboss
*
* @param bool $textEmboss
* @param bool $textEmboss
* If Text should be embossed
* @return \FML\Controls\Label
*/
public function setTextEmboss($textEmboss) {
@ -79,9 +83,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set translate
* Set Translate
*
* @param bool $translate
* @param bool $translate
* If Text should be translated
* @return \FML\Controls\Label
*/
public function setTranslate($translate) {
@ -90,9 +95,10 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
}
/**
* Set max lines
* Set Max Lines Count
*
* @param int $maxLines
* @param int $maxLines
* Max Lines Count
* @return \FML\Controls\Label
*/
public function setMaxLines($maxLines) {

View File

@ -16,7 +16,7 @@ use FML\Types\SubStyleable;
*/
class Quad extends Control implements Actionable, BgColorable, Linkable, Scriptable, Styleable, SubStyleable {
/**
* Protected properties
* Protected Properties
*/
protected $image = '';
protected $imageFocus = '';
@ -31,9 +31,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
protected $subStyle = '';
/**
* Construct a new quad control
* Construct a new Quad Control
*
* @param string $id
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);
@ -42,9 +43,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set image
* Set Image Url
*
* @param string $image
* @param string $image
* Image Url
* @return \FML\Controls\Quad
*/
public function setImage($image) {
@ -53,9 +55,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set focus image
* Set Focus Image Url
*
* @param string $imageFocus
* @param string $imageFocus
* Focus Image Url
* @return \FML\Controls\Quad
*/
public function setImageFocus($imageFocus) {
@ -64,9 +67,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set colorize
* Set Colorization
*
* @param string $colorize
* @param string $colorize
* Colorize Value
* @return \FML\Controls\Quad
*/
public function setColorize($colorize) {
@ -75,9 +79,10 @@ class Quad extends Control implements Actionable, BgColorable, Linkable, Scripta
}
/**
* Set modulize color
* Set Modulization
*
* @param string $modulizeColor
* @param string $modulizeColor
* Modulize Value
* @return \FML\Controls\Quad
*/
public function setModulizeColor($modulizeColor) {

View File

@ -20,10 +20,11 @@ class Quad_321Go extends Quad {
const SUBSTYLE_Go = 'Go!';
/**
* Construct 321Go quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -43,10 +43,11 @@ class Quad_BgRaceScore2 extends Quad {
const SUBSTYLE_Warmup = 'Warmup';
/**
* Construct BgRaceScore2 quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,76 +14,77 @@ 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 SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
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_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_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_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_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';
/**
* Construct Bgs1 quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,76 +14,77 @@ 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 SUBSTYLE_BgCardInventoryItem = 'BgCardInventoryItem';
const SUBSTYLE_BgCardList = 'BgCardList';
const SUBSTYLE_BgCardOnline = 'BgCardOnline';
const SUBSTYLE_BgCardPlayer = 'BgCardPlayer';
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_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_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_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_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';
/**
* Construct Bgs1InRace quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,18 +14,19 @@ class Quad_BgsChallengeMedals extends Quad {
* Constants
*/
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_BgBronze = 'BgBronze';
const SUBSTYLE_BgGold = 'BgGold';
const SUBSTYLE_BgNadeo = 'BgNadeo';
const SUBSTYLE_BgNotPlayed = 'BgNotPlayed';
const SUBSTYLE_BgPlayed = 'BgPlayed';
const SUBSTYLE_BgSilver = 'BgSilver';
/**
* Construct BgsChallengeMedals quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -30,10 +30,11 @@ class Quad_BgsPlayerCard extends Quad {
const SUBSTYLE_ProgressBar = 'ProgressBar';
/**
* Construct BgsPlayerCard quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,24 +14,25 @@ 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 SUBSTYLE_RightWrong = 'RightWrong';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_UpGood = 'UpGood';
const SUBSTYLE_UpWrong = 'UpWrong';
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';
/**
* Construct Copilot quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -19,10 +19,11 @@ class Quad_Emblems extends Quad {
const SUBSTYLE_2 = '#2';
/**
* Construct Emblems quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -22,10 +22,11 @@ class Quad_EnergyBar extends Quad {
const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
/**
* Construct EnergyBar quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,21 +14,22 @@ class Quad_Hud3dEchelons extends Quad {
* Constants
*/
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_EchelonSilver1 = 'EchelonSilver1';
const SUBSTYLE_EchelonSilver2 = 'EchelonSilver2';
const SUBSTYLE_EchelonSilver3 = 'EchelonSilver3';
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_EchelonSilver1 = 'EchelonSilver1';
const SUBSTYLE_EchelonSilver2 = 'EchelonSilver2';
const SUBSTYLE_EchelonSilver3 = 'EchelonSilver3';
/**
* Construct Hud3dEchelons quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,76 +14,76 @@ class Quad_Icons128x128_1 extends Quad {
* Constants
*/
const STYLE = 'Icons128x128_1';
const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
/**
* Construct Icons128x128_1 quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,76 +14,77 @@ class Quad_Icons128x128_Blink extends Quad {
* Constants
*/
const STYLE = 'Icons128x128_Blink';
const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles';
/**
* Construct Icons128x128_Blink quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,37 +14,38 @@ class Quad_Icons128x32_1 extends Quad {
* Constants
*/
const STYLE = 'Icons128x32_1';
const SUBSTYLE_Empty = 'Empty';
const SUBSTYLE_ManiaLinkHome = 'ManiaLinkHome';
const SUBSTYLE_ManiaLinkSwitch = 'ManiaLinkSwitch';
const SUBSTYLE_ManiaPlanet = 'ManiaPlanet';
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_Empty = 'Empty';
const SUBSTYLE_ManiaLinkHome = 'ManiaLinkHome';
const SUBSTYLE_ManiaLinkSwitch = 'ManiaLinkSwitch';
const SUBSTYLE_ManiaPlanet = 'ManiaPlanet';
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';
/**
* Construct Icons128x32_1 quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -101,10 +101,11 @@ class Quad_Icons64x64_1 extends Quad {
const SUBSTYLE_YellowLow = 'YellowLow';
/**
* Construct Icons64x64_1 quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,25 +14,26 @@ 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 SUBSTYLE_NucleusElimination = 'NucleusElimination';
const SUBSTYLE_NucleusHit = 'NucleusHit';
const SUBSTYLE_RocketElimination = 'RocketElimination';
const SUBSTYLE_RocketHit = 'RocketHit';
const SUBSTYLE_ServerNotice = 'ServerNotice';
const SUBSTYLE_UnknownElimination = 'UnknownElimination';
const SUBSTYLE_UnknownHit = 'UnknownHit';
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_UnknownElimination = 'UnknownElimination';
const SUBSTYLE_UnknownHit = 'UnknownHit';
/**
* Construct Icons64x64_2 quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -23,10 +23,11 @@ class Quad_ManiaPlanetLogos extends Quad {
const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall';
/**
* Construct ManiaPlanetLogos quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -22,10 +22,11 @@ class Quad_ManiaplanetSystem extends Quad {
const SUBSTYLE_Statistics = 'Statistics';
/**
* Construct ManiaplanetSystem quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,19 +14,20 @@ class Quad_MedalsBig extends Quad {
* Constants
*/
const STYLE = 'MedalsBig';
const SUBSTYLE_MedalBronze = 'MedalBronze';
const SUBSTYLE_MedalGold = 'MedalGold';
const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective';
const SUBSTYLE_MedalNadeo = 'MedalNadeo';
const SUBSTYLE_MedalNadeoPerspective = 'MedalNadeoPerspective';
const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot';
const SUBSTYLE_MedalBronze = 'MedalBronze';
const SUBSTYLE_MedalGold = 'MedalGold';
const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective';
const SUBSTYLE_MedalNadeo = 'MedalNadeo';
const SUBSTYLE_MedalNadeoPerspective = 'MedalNadeoPerspective';
const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot';
/**
* Construct MedalsBig quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,16 +14,17 @@ class Quad_TitleLogos extends Quad {
* Constants
*/
const STYLE = 'TitleLogos';
const SUBSTYLE_Author = 'Author';
const SUBSTYLE_Collection = 'Collection';
const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title';
const SUBSTYLE_Author = 'Author';
const SUBSTYLE_Collection = 'Collection';
const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title';
/**
* Construct TitleLogos quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -14,66 +14,67 @@ class Quad_UIConstruction_Buttons extends Quad {
* Constants
*/
const STYLE = 'UIConstruction_Buttons';
const SUBSTYLE_ActionMaker = 'ActionMaker';
const SUBSTYLE_Add = 'Add';
const SUBSTYLE_Author = 'Author';
const SUBSTYLE_AuthorTime = 'AuthorTime';
const SUBSTYLE_BgEditors = 'BgEditors';
const SUBSTYLE_BgIcons = 'BgIcons';
const SUBSTYLE_BgMain = 'BgMain';
const SUBSTYLE_BgTools = 'BgTools';
const SUBSTYLE_BlockEditor = 'BlockEditor';
const SUBSTYLE_Camera = 'Camera';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_CopyPaste = 'CopyPaste';
const SUBSTYLE_DecalEditor = 'DecalEditor';
const SUBSTYLE_Delete = 'Delete';
const SUBSTYLE_Directory = 'Directory';
const SUBSTYLE_Down = 'Down';
const SUBSTYLE_Drive = 'Drive';
const SUBSTYLE_Erase = 'Erase';
const SUBSTYLE_Help = 'Help';
const SUBSTYLE_Item = 'Item';
const SUBSTYLE_Left = 'Left';
const SUBSTYLE_MacroBlockEditor = 'MacroBlockEditor';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_ObjectEditor = 'ObjectEditor';
const SUBSTYLE_OffZone = 'OffZone';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Pick = 'Pick';
const SUBSTYLE_Plugins = 'Plugins';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Redo = 'Redo';
const SUBSTYLE_Reload = 'Reload';
const SUBSTYLE_Right = 'Right';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_SaveAs = 'SaveAs';
const SUBSTYLE_ScriptEditor = 'ScriptEditor';
const SUBSTYLE_SpotModelClearUnused = 'SpotModelClearUnused';
const SUBSTYLE_SpotModelDuplicate = 'SpotModelDuplicate';
const SUBSTYLE_SpotModelNew = 'SpotModelNew';
const SUBSTYLE_SpotModelRename = 'SpotModelRename';
const SUBSTYLE_Square = 'Square';
const SUBSTYLE_Stats = 'Stats';
const SUBSTYLE_Sub = 'Sub';
const SUBSTYLE_TerrainEditor = 'TerrainEditor';
const SUBSTYLE_TestSm = 'TestSm';
const SUBSTYLE_Text = 'Text';
const SUBSTYLE_Tools = 'Tools';
const SUBSTYLE_Underground = 'Underground';
const SUBSTYLE_Undo = 'Undo';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_Validate = 'Validate';
const SUBSTYLE_Validate_Step1 = 'Validate_Step1';
const SUBSTYLE_Validate_Step2 = 'Validate_Step2';
const SUBSTYLE_Validate_Step3 = 'Validate_Step3';
const SUBSTYLE_ActionMaker = 'ActionMaker';
const SUBSTYLE_Add = 'Add';
const SUBSTYLE_Author = 'Author';
const SUBSTYLE_AuthorTime = 'AuthorTime';
const SUBSTYLE_BgEditors = 'BgEditors';
const SUBSTYLE_BgIcons = 'BgIcons';
const SUBSTYLE_BgMain = 'BgMain';
const SUBSTYLE_BgTools = 'BgTools';
const SUBSTYLE_BlockEditor = 'BlockEditor';
const SUBSTYLE_Camera = 'Camera';
const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_CopyPaste = 'CopyPaste';
const SUBSTYLE_DecalEditor = 'DecalEditor';
const SUBSTYLE_Delete = 'Delete';
const SUBSTYLE_Directory = 'Directory';
const SUBSTYLE_Down = 'Down';
const SUBSTYLE_Drive = 'Drive';
const SUBSTYLE_Erase = 'Erase';
const SUBSTYLE_Help = 'Help';
const SUBSTYLE_Item = 'Item';
const SUBSTYLE_Left = 'Left';
const SUBSTYLE_MacroBlockEditor = 'MacroBlockEditor';
const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_ObjectEditor = 'ObjectEditor';
const SUBSTYLE_OffZone = 'OffZone';
const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Pick = 'Pick';
const SUBSTYLE_Plugins = 'Plugins';
const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Redo = 'Redo';
const SUBSTYLE_Reload = 'Reload';
const SUBSTYLE_Right = 'Right';
const SUBSTYLE_Save = 'Save';
const SUBSTYLE_SaveAs = 'SaveAs';
const SUBSTYLE_ScriptEditor = 'ScriptEditor';
const SUBSTYLE_SpotModelClearUnused = 'SpotModelClearUnused';
const SUBSTYLE_SpotModelDuplicate = 'SpotModelDuplicate';
const SUBSTYLE_SpotModelNew = 'SpotModelNew';
const SUBSTYLE_SpotModelRename = 'SpotModelRename';
const SUBSTYLE_Square = 'Square';
const SUBSTYLE_Stats = 'Stats';
const SUBSTYLE_Sub = 'Sub';
const SUBSTYLE_TerrainEditor = 'TerrainEditor';
const SUBSTYLE_TestSm = 'TestSm';
const SUBSTYLE_Text = 'Text';
const SUBSTYLE_Tools = 'Tools';
const SUBSTYLE_Underground = 'Underground';
const SUBSTYLE_Undo = 'Undo';
const SUBSTYLE_Up = 'Up';
const SUBSTYLE_Validate = 'Validate';
const SUBSTYLE_Validate_Step1 = 'Validate_Step1';
const SUBSTYLE_Validate_Step2 = 'Validate_Step2';
const SUBSTYLE_Validate_Step3 = 'Validate_Step3';
/**
* Construct UIConstruction_Buttons quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -37,10 +37,11 @@ class Quad_UiSMSpectatorScoreBig extends Quad {
CONST SUBSTYLE_UIRange2Bg = 'UIRange2Bg';
/**
* Construct UiSMSpectatorScoreBig quad
*
* @see \FML\Controls\Quad
*/
public function __construct() {
parent::__construct();
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}

View File

@ -10,7 +10,10 @@ namespace FML\Controls;
class Video extends Control implements Playable, Scriptable {
/**
* Construct a new video control
* Construct a new Video Control
*
* @param string $id
* Control Id
*/
public function __construct($id = null) {
parent::__construct($id);