FML Update

This commit is contained in:
Steffen Schröder 2014-05-18 19:45:50 +02:00
parent 31cba03bba
commit 4194f99c2a
45 changed files with 922 additions and 598 deletions

View File

@ -202,14 +202,13 @@ class ServerSettings implements ConfiguratorMenu, CallbackListener {
if (is_bool($value)) { if (is_bool($value)) {
// Boolean checkbox // Boolean checkbox
$checkBox = new CheckBox(self::ACTION_PREFIX_SETTING . $name, $value);
$settingFrame->add($checkBox);
$quad = new Quad(); $quad = new Quad();
$checkBox->setQuad($quad);
$quad->setX($width / 2 * 0.46); $quad->setX($width / 2 * 0.46);
$quad->setZ(-0.01); $quad->setZ(-0.01);
$quad->setSize(4, 4); $quad->setSize(4, 4);
$checkBox = new CheckBox(self::ACTION_PREFIX_SETTING . $name, $value, $quad);
$settingFrame->add($checkBox);
} else { } else {
// Other // Other
$entry = new Entry(); $entry = new Entry();

View File

@ -23,8 +23,6 @@ class CheckBox implements Renderable, ScriptFeatureable {
* Protected Properties * Protected Properties
*/ */
protected $name = null; protected $name = null;
protected $default = null;
protected $hiddenEntryDisabled = null;
protected $feature = null; protected $feature = null;
/** /**
@ -35,10 +33,10 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @param Quad $quad (optional) CheckBox Quad * @param Quad $quad (optional) CheckBox Quad
*/ */
public function __construct($name = null, $default = null, Quad $quad = null) { public function __construct($name = null, $default = null, Quad $quad = null) {
$this->feature = new CheckBoxFeature();
$this->setName($name); $this->setName($name);
$this->setDefault($default); $this->setDefault($default);
$this->feature = new CheckBoxFeature(); $this->setQuad($quad);
$this->feature->setQuad($quad);
} }
/** /**
@ -59,18 +57,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @return \FML\Components\CheckBox * @return \FML\Components\CheckBox
*/ */
public function setDefault($default) { public function setDefault($default) {
$this->default = ($default ? 1 : 0); $this->feature->setDefault($default);
return $this;
}
/**
* Disable the hidden Entry that's sending the Value on Page Actions
*
* @param bool $disable (optional) Whether to disable or not
* @return \FML\Components\CheckBox
*/
public function disableHiddenEntry($disable = true) {
$this->hiddenEntryDisabled = (bool)$disable;
return $this; return $this;
} }
@ -106,7 +93,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @param Quad $quad CheckBox Quad * @param Quad $quad CheckBox Quad
* @return \FML\Components\CheckBox * @return \FML\Components\CheckBox
*/ */
public function setQuad(Quad $quad) { public function setQuad(Quad $quad = null) {
$this->feature->setQuad($quad); $this->feature->setQuad($quad);
return $this; return $this;
} }
@ -128,9 +115,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
if (!$this->feature->getQuad() && $createIfEmpty) { if (!$this->feature->getQuad() && $createIfEmpty) {
$quad = new Quad(); $quad = new Quad();
$quad->setSize(10, 10); $quad->setSize(10, 10);
$quad->setScriptEvents(true); $this->setQuad($quad);
$this->feature->setQuad($quad);
} }
return $this->feature->getQuad(); return $this->feature->getQuad();
} }
@ -140,18 +125,13 @@ class CheckBox implements Renderable, ScriptFeatureable {
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$frame = new Frame(); $frame = new Frame();
$frame->addScriptFeature($this->feature);
$quad = $this->getQuad(); $quad = $this->getQuad();
$frame->add($quad); $frame->add($quad);
if (!$this->hiddenEntryDisabled) { $entry = $this->buildEntry();
$entry = $this->buildEntry(); $frame->add($entry);
$frame->add($entry); $this->feature->setEntry($entry);
$this->feature->setEntry($entry);
} else {
$this->feature->setEntry(null);
}
return $frame->render($domDocument); return $frame->render($domDocument);
} }
@ -165,7 +145,6 @@ class CheckBox implements Renderable, ScriptFeatureable {
$entry = new Entry(); $entry = new Entry();
$entry->setVisible(false); $entry->setVisible(false);
$entry->setName($this->name); $entry->setName($this->name);
$entry->setDefault($this->default);
return $entry; return $entry;
} }
} }

View File

@ -0,0 +1,135 @@
<?php
namespace FML\Components;
use FML\Controls\Entry;
use FML\Controls\Frame;
use FML\Controls\Label;
use FML\Script\Features\ScriptFeature;
use FML\Script\Features\ValuePickerFeature;
use FML\Types\Renderable;
use FML\Types\ScriptFeatureable;
/**
* ValuePicker Component
*
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ValuePicker implements Renderable, ScriptFeatureable {
/*
* Protected Properties
*/
protected $name = null;
protected $feature = null;
/**
* Create a new ValuePicker Component
*
* @param string $name (optional) CheckBox Name
* @param array $values (optional) Possible Values
* @param bool $default (optional) Default Value
* @param Label $label (optional) ValuePicker Label
*/
public function __construct($name = null, array $values = array(), $default = null, Label $label = null) {
$this->feature = new ValuePickerFeature();
$this->setName($name);
$this->setValues($values);
$this->setDefault($default);
$this->setLabel($label);
}
/**
* Set the Name
*
* @param string $name ValuePicker Name
* @return \FML\Components\ValuePicker
*/
public function setName($name) {
$this->name = (string)$name;
return $this;
}
/**
* Set the possible Values
*
* @param array $values Possible Values
* @return \FML\Components\ValuePicker
*/
public function setValues(array $values) {
$this->feature->setValues($values);
return $this;
}
/**
* Set the Default Value
*
* @param bool $default Default Value
* @return \FML\Components\ValuePicker
*/
public function setDefault($default) {
$this->feature->setDefault($default);
return $this;
}
/**
* Set the ValuePicker Label
*
* @param Label $label ValuePicker Label
* @return \FML\Components\ValuePicker
*/
public function setLabel(Label $label = null) {
$this->feature->setLabel($label);
return $this;
}
/**
* Get the ValuePicker Label
*
* @param bool $createIfEmpty (optional) Create the Label if it's not set
* @return \FML\Controls\Label
*/
public function getLabel($createIfEmpty = true) {
if (!$this->feature->getLabel() && $createIfEmpty) {
$label = new Label();
$this->setLabel($label);
}
return $this->feature->getLabel();
}
/**
* @see \FML\Types\ScriptFeatureable::getScriptFeatures()
*/
public function getScriptFeatures() {
return ScriptFeature::collect($this->feature, $this->getLabel(), $this->feature->getEntry());
}
/**
* @see \ManiaControl\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {
$frame = new Frame();
$label = $this->getLabel();
$frame->add($label);
$entry = $this->buildEntry();
$frame->add($entry);
$this->feature->setEntry($entry);
return $frame->render($domDocument);
}
/**
* Build the hidden Entry
*
* @return Entry
*/
protected function buildEntry() {
$entry = new Entry();
$entry->setVisible(false);
$entry->setName($this->name);
return $entry;
}
}

View File

@ -7,32 +7,32 @@ use FML\Controls\Label;
/** /**
* Label Class for Button Styles * Label Class for Button Styles
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Label_Button extends Label { class Label_Button extends Label {
/* /*
* Constants * Constants
*/ */
const STYLE_CardButtonMedium = 'CardButtonMedium'; const STYLE_CardButtonMedium = 'CardButtonMedium';
const STYLE_CardButtonMediumL = 'CardButtonMediumL'; const STYLE_CardButtonMediumL = 'CardButtonMediumL';
const STYLE_CardButtonMediumS = 'CardButtonMediumS'; const STYLE_CardButtonMediumS = 'CardButtonMediumS';
const STYLE_CardButtonMediumWide = 'CardButtonMediumWide'; const STYLE_CardButtonMediumWide = 'CardButtonMediumWide';
const STYLE_CardButtonMediumXL = 'CardButtonMediumXL'; const STYLE_CardButtonMediumXL = 'CardButtonMediumXL';
const STYLE_CardButtonMediumXS = 'CardButtonMediumXS'; const STYLE_CardButtonMediumXS = 'CardButtonMediumXS';
const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL'; const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL';
const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL'; const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL';
const STYLE_CardButtonSmall = 'CardButtonSmall'; const STYLE_CardButtonSmall = 'CardButtonSmall';
const STYLE_CardButtonSmallL = 'CardButtonSmallL'; const STYLE_CardButtonSmallL = 'CardButtonSmallL';
const STYLE_CardButtonSmallS = 'CardButtonSmallS'; const STYLE_CardButtonSmallS = 'CardButtonSmallS';
const STYLE_CardButtonSmallWide = 'CardButtonSmallWide'; const STYLE_CardButtonSmallWide = 'CardButtonSmallWide';
const STYLE_CardButtonSmallXL = 'CardButtonSmallXL'; const STYLE_CardButtonSmallXL = 'CardButtonSmallXL';
const STYLE_CardButtonSmallXS = 'CardButtonSmallXS'; const STYLE_CardButtonSmallXS = 'CardButtonSmallXS';
const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL'; const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL';
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL'; const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
const STYLE_CardMain_Quit = 'CardMain_Quit'; const STYLE_CardMain_Quit = 'CardMain_Quit';
const STYLE_CardMain_Tool = 'CardMain_Tool'; const STYLE_CardMain_Tool = 'CardMain_Tool';
/** /**
* Create a new Label_Button Control * Create a new Label_Button Control

View File

@ -7,93 +7,93 @@ use FML\Controls\Label;
/** /**
* Label Class for Text Styles * Label Class for Text Styles
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Label_Text extends Label { class Label_Text extends Label {
/* /*
* Constants * Constants
*/ */
const STYLE_AvatarButtonNormal = 'AvatarButtonNormal'; const STYLE_AvatarButtonNormal = 'AvatarButtonNormal';
const STYLE_BgMainMenuTitleHeader = 'BgMainMenuTitleHeader'; const STYLE_BgMainMenuTitleHeader = 'BgMainMenuTitleHeader';
const STYLE_Default = 'Default'; const STYLE_Default = 'Default';
const STYLE_FrameTransitionFromLeft = 'FrameTransitionFromLeft'; const STYLE_FrameTransitionFromLeft = 'FrameTransitionFromLeft';
const STYLE_FrameTransitionsFromRight = 'FrameTransitionsFromRight'; const STYLE_FrameTransitionsFromRight = 'FrameTransitionsFromRight';
const STYLE_ListItemMedal = 'ListItemMedal'; const STYLE_ListItemMedal = 'ListItemMedal';
const STYLE_Manialink_Body = 'Manialink_Body'; const STYLE_Manialink_Body = 'Manialink_Body';
const STYLE_ProgressBar = 'ProgressBar'; const STYLE_ProgressBar = 'ProgressBar';
const STYLE_ProgressBarSmall = 'ProgressBarSmall'; const STYLE_ProgressBarSmall = 'ProgressBarSmall';
const STYLE_SliderSmall = 'SliderSmall'; const STYLE_SliderSmall = 'SliderSmall';
const STYLE_SliderVolume = 'SliderVolume'; const STYLE_SliderVolume = 'SliderVolume';
const STYLE_StyleTextScriptEditor = 'StyleTextScriptEditor'; const STYLE_StyleTextScriptEditor = 'StyleTextScriptEditor';
const STYLE_StyleValueYellowSmall = 'StyleValueYellowSmall'; const STYLE_StyleValueYellowSmall = 'StyleValueYellowSmall';
const STYLE_TextActionMaker = 'TextActionMaker'; const STYLE_TextActionMaker = 'TextActionMaker';
const STYLE_TextButtonBig = 'TextButtonBig'; const STYLE_TextButtonBig = 'TextButtonBig';
const STYLE_TextButtonMedium = 'TextButtonMedium'; const STYLE_TextButtonMedium = 'TextButtonMedium';
const STYLE_TextButtonNav = 'TextButtonNav'; const STYLE_TextButtonNav = 'TextButtonNav';
const STYLE_TextButtonNavBack = 'TextButtonNavBack'; const STYLE_TextButtonNavBack = 'TextButtonNavBack';
const STYLE_TextButtonSmall = 'TextButtonSmall'; const STYLE_TextButtonSmall = 'TextButtonSmall';
const STYLE_TextCardInfoSmall = 'TextCardInfoSmall'; const STYLE_TextCardInfoSmall = 'TextCardInfoSmall';
const STYLE_TextCardInfoVerySmall = 'TextCardInfoVerySmall'; const STYLE_TextCardInfoVerySmall = 'TextCardInfoVerySmall';
const STYLE_TextCardMedium = 'TextCardMedium'; const STYLE_TextCardMedium = 'TextCardMedium';
const STYLE_TextCardMediumWhite = 'TextCardMediumWhite'; const STYLE_TextCardMediumWhite = 'TextCardMediumWhite';
const STYLE_TextCardRaceRank = 'TextCardRaceRank'; const STYLE_TextCardRaceRank = 'TextCardRaceRank';
const STYLE_TextCardScores2 = 'TextCardScores2'; const STYLE_TextCardScores2 = 'TextCardScores2';
const STYLE_TextCardSmall = 'TextCardSmall'; const STYLE_TextCardSmall = 'TextCardSmall';
const STYLE_TextCardSmallScores2 = 'TextCardSmallScores2'; const STYLE_TextCardSmallScores2 = 'TextCardSmallScores2';
const STYLE_TextCardSmallScores2Rank = 'TextCardSmallScores2Rank'; const STYLE_TextCardSmallScores2Rank = 'TextCardSmallScores2Rank';
const STYLE_TextChallengeNameMedal = 'TextChallengeNameMedal'; const STYLE_TextChallengeNameMedal = 'TextChallengeNameMedal';
const STYLE_TextChallengeNameMedalNone = 'TextChallengeNameMedalNone'; const STYLE_TextChallengeNameMedalNone = 'TextChallengeNameMedalNone';
const STYLE_TextChallengeNameMedium = 'TextChallengeNameMedium'; const STYLE_TextChallengeNameMedium = 'TextChallengeNameMedium';
const STYLE_TextChallengeNameSmall = 'TextChallengeNameSmall'; const STYLE_TextChallengeNameSmall = 'TextChallengeNameSmall';
const STYLE_TextCongratsBig = 'TextCongratsBig'; const STYLE_TextCongratsBig = 'TextCongratsBig';
const STYLE_TextCredits = 'TextCredits'; const STYLE_TextCredits = 'TextCredits';
const STYLE_TextCreditsTitle = 'TextCreditsTitle'; const STYLE_TextCreditsTitle = 'TextCreditsTitle';
const STYLE_TextEditorArticle = 'TextEditorArticle'; const STYLE_TextEditorArticle = 'TextEditorArticle';
const STYLE_TextInfoMedium = 'TextInfoMedium'; const STYLE_TextInfoMedium = 'TextInfoMedium';
const STYLE_TextInfoSmall = 'TextInfoSmall'; const STYLE_TextInfoSmall = 'TextInfoSmall';
const STYLE_TextPlayerCardName = 'TextPlayerCardName'; const STYLE_TextPlayerCardName = 'TextPlayerCardName';
const STYLE_TextPlayerCardScore = 'TextPlayerCardScore'; const STYLE_TextPlayerCardScore = 'TextPlayerCardScore';
const STYLE_TextRaceChat = 'TextRaceChat'; const STYLE_TextRaceChat = 'TextRaceChat';
const STYLE_TextRaceChrono = 'TextRaceChrono'; const STYLE_TextRaceChrono = 'TextRaceChrono';
const STYLE_TextRaceChronoError = 'TextRaceChronoError'; const STYLE_TextRaceChronoError = 'TextRaceChronoError';
const STYLE_TextRaceChronoOfficial = 'TextRaceChronoOfficial'; const STYLE_TextRaceChronoOfficial = 'TextRaceChronoOfficial';
const STYLE_TextRaceChronoWarning = 'TextRaceChronoWarning'; const STYLE_TextRaceChronoWarning = 'TextRaceChronoWarning';
const STYLE_TextRaceMessage = 'TextRaceMessage'; const STYLE_TextRaceMessage = 'TextRaceMessage';
const STYLE_TextRaceMessageBig = 'TextRaceMessageBig'; const STYLE_TextRaceMessageBig = 'TextRaceMessageBig';
const STYLE_TextRaceStaticSmall = 'TextRaceStaticSmall'; const STYLE_TextRaceStaticSmall = 'TextRaceStaticSmall';
const STYLE_TextRaceValueSmall = 'TextRaceValueSmall'; const STYLE_TextRaceValueSmall = 'TextRaceValueSmall';
const STYLE_TextRankingsBig = 'TextRankingsBig'; const STYLE_TextRankingsBig = 'TextRankingsBig';
const STYLE_TextSPScoreBig = 'TextSPScoreBig'; const STYLE_TextSPScoreBig = 'TextSPScoreBig';
const STYLE_TextSPScoreMedium = 'TextSPScoreMedium'; const STYLE_TextSPScoreMedium = 'TextSPScoreMedium';
const STYLE_TextSPScoreSmall = 'TextSPScoreSmall'; const STYLE_TextSPScoreSmall = 'TextSPScoreSmall';
const STYLE_TextStaticMedium = 'TextStaticMedium'; const STYLE_TextStaticMedium = 'TextStaticMedium';
const STYLE_TextStaticSmall = 'TextStaticSmall'; const STYLE_TextStaticSmall = 'TextStaticSmall';
const STYLE_TextStaticVerySmall = 'TextStaticVerySmall'; const STYLE_TextStaticVerySmall = 'TextStaticVerySmall';
const STYLE_TextSubTitle1 = 'TextSubTitle1'; const STYLE_TextSubTitle1 = 'TextSubTitle1';
const STYLE_TextSubTitle2 = 'TextSubTitle2'; const STYLE_TextSubTitle2 = 'TextSubTitle2';
const STYLE_TextTips = 'TextTips'; const STYLE_TextTips = 'TextTips';
const STYLE_TextTitle1 = 'TextTitle1'; const STYLE_TextTitle1 = 'TextTitle1';
const STYLE_TextTitle2 = 'TextTitle2'; const STYLE_TextTitle2 = 'TextTitle2';
const STYLE_TextTitle2Blink = 'TextTitle2Blink'; const STYLE_TextTitle2Blink = 'TextTitle2Blink';
const STYLE_TextTitle3 = 'TextTitle3'; const STYLE_TextTitle3 = 'TextTitle3';
const STYLE_TextTitle3Header = 'TextTitle3Header'; const STYLE_TextTitle3Header = 'TextTitle3Header';
const STYLE_TextTitleError = 'TextTitleError'; const STYLE_TextTitleError = 'TextTitleError';
const STYLE_TextToolTipAM = 'TextToolTipAM'; const STYLE_TextToolTipAM = 'TextToolTipAM';
const STYLE_TextToolTipAMBig = 'TextToolTipAMBig'; const STYLE_TextToolTipAMBig = 'TextToolTipAMBig';
const STYLE_TextValueBig = 'TextValueBig'; const STYLE_TextValueBig = 'TextValueBig';
const STYLE_TextValueMedium = 'TextValueMedium'; const STYLE_TextValueMedium = 'TextValueMedium';
const STYLE_TextValueMediumSm = 'TextValueMediumSm'; const STYLE_TextValueMediumSm = 'TextValueMediumSm';
const STYLE_TextValueSmall = 'TextValueSmall'; const STYLE_TextValueSmall = 'TextValueSmall';
const STYLE_TextValueSmallSm = 'TextValueSmallSm'; const STYLE_TextValueSmallSm = 'TextValueSmallSm';
const STYLE_TrackerText = 'TrackerText'; const STYLE_TrackerText = 'TrackerText';
const STYLE_TrackerTextBig = 'TrackerTextBig'; const STYLE_TrackerTextBig = 'TrackerTextBig';
const STYLE_TrackListItem = 'TrackListItem'; const STYLE_TrackListItem = 'TrackListItem';
const STYLE_TrackListLine = 'TrackListLine'; const STYLE_TrackListLine = 'TrackListLine';
const STYLE_UiDriving_BgBottom = 'UiDriving_BgBottom'; const STYLE_UiDriving_BgBottom = 'UiDriving_BgBottom';
const STYLE_UiDriving_BgCard = 'UiDriving_BgCard'; const STYLE_UiDriving_BgCard = 'UiDriving_BgCard';
const STYLE_UiDriving_BgCenter = 'UiDriving_BgCenter'; const STYLE_UiDriving_BgCenter = 'UiDriving_BgCenter';
/** /**
* Create a new Label_Text Control * Create a new Label_Text Control

View File

@ -7,79 +7,79 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'Icons128x128_1' Style * Quad Class for 'Icons128x128_1' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_Icons128x128_1 extends Quad { class Quad_Icons128x128_1 extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'Icons128x128_1'; const STYLE = 'Icons128x128_1';
const SUBSTYLE_Advanced = 'Advanced'; const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back'; const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable'; const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner'; const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse'; const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies'; const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge'; const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor'; const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers'; const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create'; const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits'; const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom'; const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars'; const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default'; const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download'; const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy'; const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor'; const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event'; const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme'; const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever'; const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor'; const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard'; const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat'; const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs'; const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite'; const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints'; const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan'; const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch'; const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load'; const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack'; const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink'; const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones'; const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount'; const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker'; const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium'; const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer'; const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations'; const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack'; const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options'; const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock'; const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint'; const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform'; const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage'; const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile'; const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced'; const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle'; const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle'; const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit'; const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race'; const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings'; const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay'; const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save'; const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll'; const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites'; const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested'; const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share'; const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink'; const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints'; const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo'; const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics'; const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts'; const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United'; const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload'; const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles'; const SUBSTYLE_Vehicles = 'Vehicles';
/** /**
* Create a new Quad_Icons128x128_1 Control * Create a new Quad_Icons128x128_1 Control

View File

@ -7,79 +7,79 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'Icons128x128_Blink' Style * Quad Class for 'Icons128x128_Blink' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_Icons128x128_Blink extends Quad { class Quad_Icons128x128_Blink extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'Icons128x128_Blink'; const STYLE = 'Icons128x128_Blink';
const SUBSTYLE_Advanced = 'Advanced'; const SUBSTYLE_Advanced = 'Advanced';
const SUBSTYLE_Back = 'Back'; const SUBSTYLE_Back = 'Back';
const SUBSTYLE_BackFocusable = 'BackFocusable'; const SUBSTYLE_BackFocusable = 'BackFocusable';
const SUBSTYLE_Beginner = 'Beginner'; const SUBSTYLE_Beginner = 'Beginner';
const SUBSTYLE_Browse = 'Browse'; const SUBSTYLE_Browse = 'Browse';
const SUBSTYLE_Buddies = 'Buddies'; const SUBSTYLE_Buddies = 'Buddies';
const SUBSTYLE_Challenge = 'Challenge'; const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor'; const SUBSTYLE_ChallengeAuthor = 'ChallengeAuthor';
const SUBSTYLE_Coppers = 'Coppers'; const SUBSTYLE_Coppers = 'Coppers';
const SUBSTYLE_Create = 'Create'; const SUBSTYLE_Create = 'Create';
const SUBSTYLE_Credits = 'Credits'; const SUBSTYLE_Credits = 'Credits';
const SUBSTYLE_Custom = 'Custom'; const SUBSTYLE_Custom = 'Custom';
const SUBSTYLE_CustomStars = 'CustomStars'; const SUBSTYLE_CustomStars = 'CustomStars';
const SUBSTYLE_Default = 'Default'; const SUBSTYLE_Default = 'Default';
const SUBSTYLE_Download = 'Download'; const SUBSTYLE_Download = 'Download';
const SUBSTYLE_Easy = 'Easy'; const SUBSTYLE_Easy = 'Easy';
const SUBSTYLE_Editor = 'Editor'; const SUBSTYLE_Editor = 'Editor';
const SUBSTYLE_Event = 'Event'; const SUBSTYLE_Event = 'Event';
const SUBSTYLE_Extreme = 'Extreme'; const SUBSTYLE_Extreme = 'Extreme';
const SUBSTYLE_Forever = 'Forever'; const SUBSTYLE_Forever = 'Forever';
const SUBSTYLE_GhostEditor = 'GhostEditor'; const SUBSTYLE_GhostEditor = 'GhostEditor';
const SUBSTYLE_Hard = 'Hard'; const SUBSTYLE_Hard = 'Hard';
const SUBSTYLE_Hotseat = 'Hotseat'; const SUBSTYLE_Hotseat = 'Hotseat';
const SUBSTYLE_Inputs = 'Inputs'; const SUBSTYLE_Inputs = 'Inputs';
const SUBSTYLE_Invite = 'Invite'; const SUBSTYLE_Invite = 'Invite';
const SUBSTYLE_LadderPoints = 'LadderPoints'; const SUBSTYLE_LadderPoints = 'LadderPoints';
const SUBSTYLE_Lan = 'Lan'; const SUBSTYLE_Lan = 'Lan';
const SUBSTYLE_Launch = 'Launch'; const SUBSTYLE_Launch = 'Launch';
const SUBSTYLE_Load = 'Load'; const SUBSTYLE_Load = 'Load';
const SUBSTYLE_LoadTrack = 'LoadTrack'; const SUBSTYLE_LoadTrack = 'LoadTrack';
const SUBSTYLE_Manialink = 'Manialink'; const SUBSTYLE_Manialink = 'Manialink';
const SUBSTYLE_ManiaZones = 'ManiaZones'; const SUBSTYLE_ManiaZones = 'ManiaZones';
const SUBSTYLE_MedalCount = 'MedalCount'; const SUBSTYLE_MedalCount = 'MedalCount';
const SUBSTYLE_MediaTracker = 'MediaTracker'; const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_Medium = 'Medium'; const SUBSTYLE_Medium = 'Medium';
const SUBSTYLE_Multiplayer = 'Multiplayer'; const SUBSTYLE_Multiplayer = 'Multiplayer';
const SUBSTYLE_Nations = 'Nations'; const SUBSTYLE_Nations = 'Nations';
const SUBSTYLE_NewTrack = 'NewTrack'; const SUBSTYLE_NewTrack = 'NewTrack';
const SUBSTYLE_Options = 'Options'; const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Padlock = 'Padlock'; const SUBSTYLE_Padlock = 'Padlock';
const SUBSTYLE_Paint = 'Paint'; const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Platform = 'Platform'; const SUBSTYLE_Platform = 'Platform';
const SUBSTYLE_PlayerPage = 'PlayerPage'; const SUBSTYLE_PlayerPage = 'PlayerPage';
const SUBSTYLE_Profile = 'Profile'; const SUBSTYLE_Profile = 'Profile';
const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced'; const SUBSTYLE_ProfileAdvanced = 'ProfileAdvanced';
const SUBSTYLE_ProfileVehicle = 'ProfileVehicle'; const SUBSTYLE_ProfileVehicle = 'ProfileVehicle';
const SUBSTYLE_Puzzle = 'Puzzle'; const SUBSTYLE_Puzzle = 'Puzzle';
const SUBSTYLE_Quit = 'Quit'; const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Race = 'Race'; const SUBSTYLE_Race = 'Race';
const SUBSTYLE_Rankings = 'Rankings'; const SUBSTYLE_Rankings = 'Rankings';
const SUBSTYLE_Replay = 'Replay'; const SUBSTYLE_Replay = 'Replay';
const SUBSTYLE_Save = 'Save'; const SUBSTYLE_Save = 'Save';
const SUBSTYLE_ServersAll = 'ServersAll'; const SUBSTYLE_ServersAll = 'ServersAll';
const SUBSTYLE_ServersFavorites = 'ServersFavorites'; const SUBSTYLE_ServersFavorites = 'ServersFavorites';
const SUBSTYLE_ServersSuggested = 'ServersSuggested'; const SUBSTYLE_ServersSuggested = 'ServersSuggested';
const SUBSTYLE_Share = 'Share'; const SUBSTYLE_Share = 'Share';
const SUBSTYLE_ShareBlink = 'ShareBlink'; const SUBSTYLE_ShareBlink = 'ShareBlink';
const SUBSTYLE_SkillPoints = 'SkillPoints'; const SUBSTYLE_SkillPoints = 'SkillPoints';
const SUBSTYLE_Solo = 'Solo'; const SUBSTYLE_Solo = 'Solo';
const SUBSTYLE_Statistics = 'Statistics'; const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_Stunts = 'Stunts'; const SUBSTYLE_Stunts = 'Stunts';
const SUBSTYLE_United = 'United'; const SUBSTYLE_United = 'United';
const SUBSTYLE_Upload = 'Upload'; const SUBSTYLE_Upload = 'Upload';
const SUBSTYLE_Vehicles = 'Vehicles'; const SUBSTYLE_Vehicles = 'Vehicles';
/** /**
* Create a new Quad_Icons128x128_Blink Control * Create a new Quad_Icons128x128_Blink Control

View File

@ -7,21 +7,21 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'ManiaPlanetLogos' Style * Quad Class for 'ManiaPlanetLogos' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_ManiaPlanetLogos extends Quad { class Quad_ManiaPlanetLogos extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'ManiaPlanetLogos'; const STYLE = 'ManiaPlanetLogos';
const SUBSTYLE_IconPlanets = 'IconPlanets'; const SUBSTYLE_IconPlanets = 'IconPlanets';
const SUBSTYLE_IconPlanetsPerspective = 'IconPlanetsPerspective'; const SUBSTYLE_IconPlanetsPerspective = 'IconPlanetsPerspective';
const SUBSTYLE_IconPlanetsSmall = 'IconPlanetsSmall'; const SUBSTYLE_IconPlanetsSmall = 'IconPlanetsSmall';
const SUBSTYLE_ManiaPlanetLogoBlack = 'ManiaPlanetLogoBlack'; const SUBSTYLE_ManiaPlanetLogoBlack = 'ManiaPlanetLogoBlack';
const SUBSTYLE_ManiaPlanetLogoBlackSmall = 'ManiaPlanetLogoBlackSmall'; const SUBSTYLE_ManiaPlanetLogoBlackSmall = 'ManiaPlanetLogoBlackSmall';
const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite'; const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite';
const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall'; const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall';
/** /**

View File

@ -7,26 +7,26 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'ManiaPlanetMainMenu' Style * Quad Class for 'ManiaPlanetMainMenu' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_ManiaPlanetMainMenu extends Quad { class Quad_ManiaPlanetMainMenu extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'ManiaPlanetMainMenu'; const STYLE = 'ManiaPlanetMainMenu';
const SUBSTYLE_BottomBar = 'BottomBar'; const SUBSTYLE_BottomBar = 'BottomBar';
const SUBSTYLE_Highlight = 'Highlight'; const SUBSTYLE_Highlight = 'Highlight';
const SUBSTYLE_IconAdd = 'IconAdd'; const SUBSTYLE_IconAdd = 'IconAdd';
const SUBSTYLE_IconHome = 'IconHome'; const SUBSTYLE_IconHome = 'IconHome';
const SUBSTYLE_IconPlay = 'IconPlay'; const SUBSTYLE_IconPlay = 'IconPlay';
const SUBSTYLE_IconQuit = 'IconQuit'; const SUBSTYLE_IconQuit = 'IconQuit';
const SUBSTYLE_IconSettings = 'IconSettings'; const SUBSTYLE_IconSettings = 'IconSettings';
const SUBSTYLE_IconStore = 'IconStore'; const SUBSTYLE_IconStore = 'IconStore';
const SUBSTYLE_MainBg = 'MainBg'; const SUBSTYLE_MainBg = 'MainBg';
const SUBSTYLE_TitleBg = 'TitleBg'; const SUBSTYLE_TitleBg = 'TitleBg';
const SUBSTYLE_TopBar = 'TopBar'; const SUBSTYLE_TopBar = 'TopBar';
/** /**
* Create a new Quad_ManiaPlanetMainMenu Control * Create a new Quad_ManiaPlanetMainMenu Control

View File

@ -7,21 +7,21 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'ManiaplanetSystem' Style * Quad Class for 'ManiaplanetSystem' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_ManiaplanetSystem extends Quad { class Quad_ManiaplanetSystem extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'ManiaplanetSystem'; const STYLE = 'ManiaplanetSystem';
const SUBSTYLE_BgDialog = 'BgDialog'; const SUBSTYLE_BgDialog = 'BgDialog';
const SUBSTYLE_BgDialogAnchor = 'BgDialogAnchor'; const SUBSTYLE_BgDialogAnchor = 'BgDialogAnchor';
const SUBSTYLE_BgFloat = 'BgFloat'; const SUBSTYLE_BgFloat = 'BgFloat';
const SUBSTYLE_Events = 'Events'; const SUBSTYLE_Events = 'Events';
const SUBSTYLE_Medals = 'Medals'; const SUBSTYLE_Medals = 'Medals';
const SUBSTYLE_Statistics = 'Statistics'; const SUBSTYLE_Statistics = 'Statistics';
/** /**
* Create a new Quad_ManiaplanetSystem Control * Create a new Quad_ManiaplanetSystem Control

View File

@ -7,22 +7,22 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'MedalsBig' Style * Quad Class for 'MedalsBig' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_MedalsBig extends Quad { class Quad_MedalsBig extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'MedalsBig'; const STYLE = 'MedalsBig';
const SUBSTYLE_MedalBronze = 'MedalBronze'; const SUBSTYLE_MedalBronze = 'MedalBronze';
const SUBSTYLE_MedalGold = 'MedalGold'; const SUBSTYLE_MedalGold = 'MedalGold';
const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective'; const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective';
const SUBSTYLE_MedalNadeo = 'MedalNadeo'; const SUBSTYLE_MedalNadeo = 'MedalNadeo';
const SUBSTYLE_MedalNadeoPerspective = 'MedalNadeoPerspective'; const SUBSTYLE_MedalNadeoPerspective = 'MedalNadeoPerspective';
const SUBSTYLE_MedalSilver = 'MedalSilver'; const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot'; const SUBSTYLE_MedalSlot = 'MedalSlot';
/** /**
* Create a new Quad_MedalsBig Control * Create a new Quad_MedalsBig Control

View File

@ -7,19 +7,19 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'TitleLogos' Style * Quad Class for 'TitleLogos' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_TitleLogos extends Quad { class Quad_TitleLogos extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'TitleLogos'; const STYLE = 'TitleLogos';
const SUBSTYLE_Author = 'Author'; const SUBSTYLE_Author = 'Author';
const SUBSTYLE_Collection = 'Collection'; const SUBSTYLE_Collection = 'Collection';
const SUBSTYLE_Icon = 'Icon'; const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title'; const SUBSTYLE_Title = 'Title';
/** /**
* Create a new Quad_TitleLogos Control * Create a new Quad_TitleLogos Control

View File

@ -7,71 +7,71 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'UIConstruction_Buttons' Style * Quad Class for 'UIConstruction_Buttons' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_UIConstruction_Buttons extends Quad { class Quad_UIConstruction_Buttons extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'UIConstruction_Buttons'; const STYLE = 'UIConstruction_Buttons';
const SUBSTYLE_ActionMaker = 'ActionMaker'; const SUBSTYLE_ActionMaker = 'ActionMaker';
const SUBSTYLE_Add = 'Add'; const SUBSTYLE_Add = 'Add';
const SUBSTYLE_AirMapping = 'AirMapping'; const SUBSTYLE_AirMapping = 'AirMapping';
const SUBSTYLE_Author = 'Author'; const SUBSTYLE_Author = 'Author';
const SUBSTYLE_AuthorTime = 'AuthorTime'; const SUBSTYLE_AuthorTime = 'AuthorTime';
const SUBSTYLE_BgEditors = 'BgEditors'; const SUBSTYLE_BgEditors = 'BgEditors';
const SUBSTYLE_BgIcons = 'BgIcons'; const SUBSTYLE_BgIcons = 'BgIcons';
const SUBSTYLE_BgMain = 'BgMain'; const SUBSTYLE_BgMain = 'BgMain';
const SUBSTYLE_BgTools = 'BgTools'; const SUBSTYLE_BgTools = 'BgTools';
const SUBSTYLE_BlockEditor = 'BlockEditor'; const SUBSTYLE_BlockEditor = 'BlockEditor';
const SUBSTYLE_Camera = 'Camera'; const SUBSTYLE_Camera = 'Camera';
const SUBSTYLE_Challenge = 'Challenge'; const SUBSTYLE_Challenge = 'Challenge';
const SUBSTYLE_CopyPaste = 'CopyPaste'; const SUBSTYLE_CopyPaste = 'CopyPaste';
const SUBSTYLE_DecalEditor = 'DecalEditor'; const SUBSTYLE_DecalEditor = 'DecalEditor';
const SUBSTYLE_Delete = 'Delete'; const SUBSTYLE_Delete = 'Delete';
const SUBSTYLE_Directory = 'Directory'; const SUBSTYLE_Directory = 'Directory';
const SUBSTYLE_Down = 'Down'; const SUBSTYLE_Down = 'Down';
const SUBSTYLE_Drive = 'Drive'; const SUBSTYLE_Drive = 'Drive';
const SUBSTYLE_Erase = 'Erase'; const SUBSTYLE_Erase = 'Erase';
const SUBSTYLE_GhostBlocks = 'GhostBlocks'; const SUBSTYLE_GhostBlocks = 'GhostBlocks';
const SUBSTYLE_Help = 'Help'; const SUBSTYLE_Help = 'Help';
const SUBSTYLE_Item = 'Item'; const SUBSTYLE_Item = 'Item';
const SUBSTYLE_Left = 'Left'; const SUBSTYLE_Left = 'Left';
const SUBSTYLE_MacroBlockEditor = 'MacroBlockEditor'; const SUBSTYLE_MacroBlockEditor = 'MacroBlockEditor';
const SUBSTYLE_MediaTracker = 'MediaTracker'; const SUBSTYLE_MediaTracker = 'MediaTracker';
const SUBSTYLE_ObjectEditor = 'ObjectEditor'; const SUBSTYLE_ObjectEditor = 'ObjectEditor';
const SUBSTYLE_OffZone = 'OffZone'; const SUBSTYLE_OffZone = 'OffZone';
const SUBSTYLE_Options = 'Options'; const SUBSTYLE_Options = 'Options';
const SUBSTYLE_Paint = 'Paint'; const SUBSTYLE_Paint = 'Paint';
const SUBSTYLE_Pick = 'Pick'; const SUBSTYLE_Pick = 'Pick';
const SUBSTYLE_Plugins = 'Plugins'; const SUBSTYLE_Plugins = 'Plugins';
const SUBSTYLE_Quit = 'Quit'; const SUBSTYLE_Quit = 'Quit';
const SUBSTYLE_Redo = 'Redo'; const SUBSTYLE_Redo = 'Redo';
const SUBSTYLE_Reload = 'Reload'; const SUBSTYLE_Reload = 'Reload';
const SUBSTYLE_Right = 'Right'; const SUBSTYLE_Right = 'Right';
const SUBSTYLE_Save = 'Save'; const SUBSTYLE_Save = 'Save';
const SUBSTYLE_SaveAs = 'SaveAs'; const SUBSTYLE_SaveAs = 'SaveAs';
const SUBSTYLE_ScriptEditor = 'ScriptEditor'; const SUBSTYLE_ScriptEditor = 'ScriptEditor';
const SUBSTYLE_SpotModelClearUnused = 'SpotModelClearUnused'; const SUBSTYLE_SpotModelClearUnused = 'SpotModelClearUnused';
const SUBSTYLE_SpotModelDuplicate = 'SpotModelDuplicate'; const SUBSTYLE_SpotModelDuplicate = 'SpotModelDuplicate';
const SUBSTYLE_SpotModelNew = 'SpotModelNew'; const SUBSTYLE_SpotModelNew = 'SpotModelNew';
const SUBSTYLE_SpotModelRename = 'SpotModelRename'; const SUBSTYLE_SpotModelRename = 'SpotModelRename';
const SUBSTYLE_Square = 'Square'; const SUBSTYLE_Square = 'Square';
const SUBSTYLE_Stats = 'Stats'; const SUBSTYLE_Stats = 'Stats';
const SUBSTYLE_Sub = 'Sub'; const SUBSTYLE_Sub = 'Sub';
const SUBSTYLE_TerrainEditor = 'TerrainEditor'; const SUBSTYLE_TerrainEditor = 'TerrainEditor';
const SUBSTYLE_TestSm = 'TestSm'; const SUBSTYLE_TestSm = 'TestSm';
const SUBSTYLE_Text = 'Text'; const SUBSTYLE_Text = 'Text';
const SUBSTYLE_Tools = 'Tools'; const SUBSTYLE_Tools = 'Tools';
const SUBSTYLE_Underground = 'Underground'; const SUBSTYLE_Underground = 'Underground';
const SUBSTYLE_Undo = 'Undo'; const SUBSTYLE_Undo = 'Undo';
const SUBSTYLE_Up = 'Up'; const SUBSTYLE_Up = 'Up';
const SUBSTYLE_Validate = 'Validate'; const SUBSTYLE_Validate = 'Validate';
const SUBSTYLE_Validate_Step1 = 'Validate_Step1'; const SUBSTYLE_Validate_Step1 = 'Validate_Step1';
const SUBSTYLE_Validate_Step2 = 'Validate_Step2'; const SUBSTYLE_Validate_Step2 = 'Validate_Step2';
const SUBSTYLE_Validate_Step3 = 'Validate_Step3'; const SUBSTYLE_Validate_Step3 = 'Validate_Step3';
/** /**
* Create a new Quad_UIConstruction_Buttons Control * Create a new Quad_UIConstruction_Buttons Control

View File

@ -7,27 +7,27 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'UIConstruction_Buttons2' Style * Quad Class for 'UIConstruction_Buttons2' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_UIConstruction_Buttons2 extends Quad { class Quad_UIConstruction_Buttons2 extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'UIConstruction_Buttons2'; const STYLE = 'UIConstruction_Buttons2';
const SUBSTYLE_AirMapping = 'AirMapping'; const SUBSTYLE_AirMapping = 'AirMapping';
const SUBSTYLE_BlockEditor = 'BlockEditor'; const SUBSTYLE_BlockEditor = 'BlockEditor';
const SUBSTYLE_Copy = 'Copy'; const SUBSTYLE_Copy = 'Copy';
const SUBSTYLE_Cut = 'Cut'; const SUBSTYLE_Cut = 'Cut';
const SUBSTYLE_GhostBlocks = 'GhostBlocks'; const SUBSTYLE_GhostBlocks = 'GhostBlocks';
const SUBSTYLE_KeysAdd = 'KeysAdd'; const SUBSTYLE_KeysAdd = 'KeysAdd';
const SUBSTYLE_KeysCopy = 'KeysCopy'; const SUBSTYLE_KeysCopy = 'KeysCopy';
const SUBSTYLE_KeysDelete = 'KeysDelete'; const SUBSTYLE_KeysDelete = 'KeysDelete';
const SUBSTYLE_KeysPaste = 'KeysPaste'; const SUBSTYLE_KeysPaste = 'KeysPaste';
const SUBSTYLE_New = 'New'; const SUBSTYLE_New = 'New';
const SUBSTYLE_Open = 'Open'; const SUBSTYLE_Open = 'Open';
const SUBSTYLE_Symmetry = 'Symmetry'; const SUBSTYLE_Symmetry = 'Symmetry';
/** /**
* Create a new Quad_UIConstruction_Buttons2 Control * Create a new Quad_UIConstruction_Buttons2 Control

View File

@ -7,36 +7,36 @@ use FML\Controls\Quad;
/** /**
* Quad Class for 'UiSMSpectatorScoreBig' Style * Quad Class for 'UiSMSpectatorScoreBig' Style
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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_UiSMSpectatorScoreBig extends Quad { class Quad_UiSMSpectatorScoreBig extends Quad {
/* /*
* Constants * Constants
*/ */
const STYLE = 'UiSMSpectatorScoreBig'; const STYLE = 'UiSMSpectatorScoreBig';
CONST SUBSTYLE_BotLeft = 'BotLeft'; CONST SUBSTYLE_BotLeft = 'BotLeft';
CONST SUBSTYLE_BotLeftGlass = 'BotLeftGlass'; CONST SUBSTYLE_BotLeftGlass = 'BotLeftGlass';
CONST SUBSTYLE_BotRight = 'BotRight'; CONST SUBSTYLE_BotRight = 'BotRight';
CONST SUBSTYLE_BotRightGlass = 'BotRightGlass'; CONST SUBSTYLE_BotRightGlass = 'BotRightGlass';
CONST SUBSTYLE_CenterShield = 'CenterShield'; CONST SUBSTYLE_CenterShield = 'CenterShield';
CONST SUBSTYLE_CenterShieldSmall = 'CenterShieldSmall'; CONST SUBSTYLE_CenterShieldSmall = 'CenterShieldSmall';
CONST SUBSTYLE_HandleLeft = 'HandleLeft'; CONST SUBSTYLE_HandleLeft = 'HandleLeft';
CONST SUBSTYLE_HandleRight = 'HandleRight'; CONST SUBSTYLE_HandleRight = 'HandleRight';
CONST SUBSTYLE_PlayerGlass = 'PlayerGlass'; CONST SUBSTYLE_PlayerGlass = 'PlayerGlass';
CONST SUBSTYLE_PlayerIconBg = 'PlayerIconBg'; CONST SUBSTYLE_PlayerIconBg = 'PlayerIconBg';
CONST SUBSTYLE_PlayerJunction = 'PlayerJunction'; CONST SUBSTYLE_PlayerJunction = 'PlayerJunction';
CONST SUBSTYLE_PlayerSlot = 'PlayerSlot'; CONST SUBSTYLE_PlayerSlot = 'PlayerSlot';
CONST SUBSTYLE_PlayerSlotCenter = 'PlayerSlotCenter'; CONST SUBSTYLE_PlayerSlotCenter = 'PlayerSlotCenter';
CONST SUBSTYLE_PlayerSlotRev = 'PlayerSlotRev'; CONST SUBSTYLE_PlayerSlotRev = 'PlayerSlotRev';
CONST SUBSTYLE_PlayerSlotSmall = 'PlayerSlotSmall'; CONST SUBSTYLE_PlayerSlotSmall = 'PlayerSlotSmall';
CONST SUBSTYLE_PlayerSlotSmallRev = 'PlayerSlotSmallRev'; CONST SUBSTYLE_PlayerSlotSmallRev = 'PlayerSlotSmallRev';
CONST SUBSTYLE_TableBgHoriz = 'TableBgHoriz'; CONST SUBSTYLE_TableBgHoriz = 'TableBgHoriz';
CONST SUBSTYLE_TableBgVert = 'TableBgVert'; CONST SUBSTYLE_TableBgVert = 'TableBgVert';
CONST SUBSTYLE_Top = 'Top'; CONST SUBSTYLE_Top = 'Top';
CONST SUBSTYLE_UIRange1Bg = 'UIRange1Bg'; CONST SUBSTYLE_UIRange1Bg = 'UIRange1Bg';
CONST SUBSTYLE_UIRange2Bg = 'UIRange2Bg'; CONST SUBSTYLE_UIRange2Bg = 'UIRange2Bg';
/** /**
* Create a new Quad_UiSMSpectatorScoreBig Control * Create a new Quad_UiSMSpectatorScoreBig Control

View File

@ -5,9 +5,9 @@ namespace FML\Elements;
/** /**
* Dictionary Element * Dictionary Element
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Dico { class Dico {
/** /**
@ -16,140 +16,140 @@ class Dico {
* @var string * @var string
*/ */
const LANG_CZECH = 'cz'; const LANG_CZECH = 'cz';
/** /**
* Danish Language * Danish Language
* *
* @var string * @var string
*/ */
const LANG_DANISH = 'da'; const LANG_DANISH = 'da';
/** /**
* German Language * German Language
* *
* @var string * @var string
*/ */
const LANG_GERMAN = 'de'; const LANG_GERMAN = 'de';
/** /**
* English Language * English Language
* *
* @var string * @var string
*/ */
const LANG_ENGLISH = 'en'; const LANG_ENGLISH = 'en';
/** /**
* Spanish Language * Spanish Language
* *
* @var string * @var string
*/ */
const LANG_SPANISH = 'es'; const LANG_SPANISH = 'es';
/** /**
* French Language * French Language
* *
* @var string * @var string
*/ */
const LANG_FRENCH = 'fr'; const LANG_FRENCH = 'fr';
/** /**
* Hungarian Language * Hungarian Language
* *
* @var string * @var string
*/ */
const LANG_HUNGARIAN = 'hu'; const LANG_HUNGARIAN = 'hu';
/** /**
* Italian Language * Italian Language
* *
* @var string * @var string
*/ */
const LANG_ITALIAN = 'it'; const LANG_ITALIAN = 'it';
/** /**
* Japanese Language * Japanese Language
* *
* @var string * @var string
*/ */
const LANG_JAPANESE = 'jp'; const LANG_JAPANESE = 'jp';
/** /**
* Korean Language * Korean Language
* *
* @var string * @var string
*/ */
const LANG_KOREAN = 'kr'; const LANG_KOREAN = 'kr';
/** /**
* Norwegian Language * Norwegian Language
* *
* @var string * @var string
*/ */
const LANG_NORWEGIAN = 'nb'; const LANG_NORWEGIAN = 'nb';
/** /**
* Dutch Language * Dutch Language
* *
* @var string * @var string
*/ */
const LANG_DUTCH = 'nl'; const LANG_DUTCH = 'nl';
/** /**
* Polish Language * Polish Language
* *
* @var string * @var string
*/ */
const LANG_POLISH = 'pl'; const LANG_POLISH = 'pl';
/** /**
* Portuguese Language * Portuguese Language
* *
* @var string * @var string
*/ */
const LANG_PORTUGUESE = 'pt'; const LANG_PORTUGUESE = 'pt';
/** /**
* Brazilian Portuguese Language * Brazilian Portuguese Language
* *
* @var string * @var string
*/ */
const LANG_BRAZILIAN_PORTUGUESE = 'pt_BR'; const LANG_BRAZILIAN_PORTUGUESE = 'pt_BR';
/** /**
* Romanian Language * Romanian Language
* *
* @var string * @var string
*/ */
const LANG_ROMANIAN = 'ro'; const LANG_ROMANIAN = 'ro';
/** /**
* Russian Language * Russian Language
* *
* @var string * @var string
*/ */
const LANG_RUSSIAN = 'ru'; const LANG_RUSSIAN = 'ru';
/** /**
* Slovak Language * Slovak Language
* *
* @var string * @var string
*/ */
const LANG_SLOVAK = 'sk'; const LANG_SLOVAK = 'sk';
/** /**
* Turkish Language * Turkish Language
* *
* @var string * @var string
*/ */
const LANG_TURKISH = 'tr'; const LANG_TURKISH = 'tr';
/** /**
* Chinese Language * Chinese Language
* *
* @var string * @var string
*/ */
const LANG_CHINESE = 'zh'; const LANG_CHINESE = 'zh';
/* /*
* Protected Properties * Protected Properties
*/ */
@ -175,22 +175,21 @@ class Dico {
/** /**
* Set the translatable Entry for the specific Language * Set the translatable Entry for the specific Language
* *
* @param string $language Language Id * @param string $language Language Id
* @param string $entryId Entry Id * @param string $entryId Entry Id
* @param string $entryValue Translated Entry Value * @param string $entryValue Translated Entry Value
* @return \FML\Elements\Dico * @return \FML\Elements\Dico
*/ */
public function setEntry($language, $entryId, $entryValue) { public function setEntry($language, $entryId, $entryValue) {
$language = (string) $language; $language = (string)$language;
$entryId = (string) $entryId; $entryId = (string)$entryId;
$entryValue = (string) $entryValue; $entryValue = (string)$entryValue;
if (!isset($this->entries[$language]) && $entryValue) { if (!isset($this->entries[$language]) && $entryValue) {
$this->entries[$language] = array(); $this->entries[$language] = array();
} }
if ($entryValue) { if ($entryValue) {
$this->entries[$language][$entryId] = $entryValue; $this->entries[$language][$entryId] = $entryValue;
} } else {
else {
if (isset($this->entries[$language][$entryId])) { if (isset($this->entries[$language][$entryId])) {
unset($this->entries[$language][$entryId]); unset($this->entries[$language][$entryId]);
} }
@ -201,19 +200,18 @@ class Dico {
/** /**
* Remove Entries of the given Id * Remove Entries of the given Id
* *
* @param string $entryId Entry Id that should be removed * @param string $entryId Entry Id that should be removed
* @param string $language (optional) Only remove Entries of the given Language * @param string $language (optional) Only remove Entries of the given Language
* @return \FML\Elements\Dico * @return \FML\Elements\Dico
*/ */
public function removeEntry($entryId, $language = null) { public function removeEntry($entryId, $language = null) {
$entryId = (string) $entryId; $entryId = (string)$entryId;
if ($language) { if ($language) {
$language = (string) $language; $language = (string)$language;
if (isset($this->entries[$language])) { if (isset($this->entries[$language])) {
unset($this->entries[$language][$entryId]); unset($this->entries[$language][$entryId]);
} }
} } else {
else {
foreach ($this->entries as $language => $entries) { foreach ($this->entries as $language => $entries) {
if (isset($entries[$entryId])) { if (isset($entries[$entryId])) {
unset($entries[$language][$entryId]); unset($entries[$language][$entryId]);
@ -227,17 +225,16 @@ class Dico {
* Remove Entries of the given Language * Remove Entries of the given Language
* *
* @param string $language Language of which all Entries should be removed * @param string $language Language of which all Entries should be removed
* @param string $entryId (optional) Only remove the given Entry Id * @param string $entryId (optional) Only remove the given Entry Id
* @return \FML\Elements\Dico * @return \FML\Elements\Dico
*/ */
public function removeLanguage($language, $entryId = null) { public function removeLanguage($language, $entryId = null) {
$language = (string) $language; $language = (string)$language;
if (isset($this->entries[$language])) { if (isset($this->entries[$language])) {
if ($entryId) { if ($entryId) {
$entryId = (string) $entryId; $entryId = (string)$entryId;
unset($this->entries[$language][$entryId]); unset($this->entries[$language][$entryId]);
} } else {
else {
unset($this->entries[$language]); unset($this->entries[$language]);
} }
} }

View File

@ -10,9 +10,9 @@ use FML\Types\TextFormatable;
/** /**
* Format Element * Format Element
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Format implements BgColorable, Renderable, Styleable, TextFormatable { class Format implements BgColorable, Renderable, Styleable, TextFormatable {
/* /*
@ -43,61 +43,54 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
} }
/** /**
*
* @see \FML\Types\BgColorable::setBgColor() * @see \FML\Types\BgColorable::setBgColor()
*/ */
public function setBgColor($bgColor) { public function setBgColor($bgColor) {
$this->bgColor = (string) $bgColor; $this->bgColor = (string)$bgColor;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\Styleable::setStyle() * @see \FML\Types\Styleable::setStyle()
*/ */
public function setStyle($style) { public function setStyle($style) {
$this->style = (string) $style; $this->style = (string)$style;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\TextFormatable::setTextSize() * @see \FML\Types\TextFormatable::setTextSize()
*/ */
public function setTextSize($textSize) { public function setTextSize($textSize) {
$this->textSize = (int) $textSize; $this->textSize = (int)$textSize;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\TextFormatable::setTextColor() * @see \FML\Types\TextFormatable::setTextColor()
*/ */
public function setTextColor($textColor) { public function setTextColor($textColor) {
$this->textColor = (string) $textColor; $this->textColor = (string)$textColor;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\TextFormatable::setAreaColor() * @see \FML\Types\TextFormatable::setAreaColor()
*/ */
public function setAreaColor($areaColor) { public function setAreaColor($areaColor) {
$this->focusAreaColor1 = (string) $areaColor; $this->focusAreaColor1 = (string)$areaColor;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\TextFormatable::setAreaFocusColor() * @see \FML\Types\TextFormatable::setAreaFocusColor()
*/ */
public function setAreaFocusColor($areaFocusColor) { public function setAreaFocusColor($areaFocusColor) {
$this->focusAreaColor2 = (string) $areaFocusColor; $this->focusAreaColor2 = (string)$areaFocusColor;
return $this; return $this;
} }
/** /**
*
* @see \FML\Renderable::render() * @see \FML\Renderable::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {

View File

@ -7,9 +7,9 @@ use FML\Types\Renderable;
/** /**
* Include Element * Include Element
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Including implements Renderable { class Including implements Renderable {
/* /*
@ -46,11 +46,10 @@ class Including implements Renderable {
* @param string $url Include Url * @param string $url Include Url
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
} }
/** /**
*
* @see \FML\Renderable::render() * @see \FML\Renderable::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {

View File

@ -7,9 +7,9 @@ use FML\Types\Renderable;
/** /**
* Music Element * Music Element
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 Music implements Renderable { class Music implements Renderable {
/* /*
@ -47,12 +47,11 @@ class Music implements Renderable {
* @return \FML\Elements\Music * @return \FML\Elements\Music
*/ */
public function setData($data) { public function setData($data) {
$this->data = (string) $data; $this->data = (string)$data;
return $this; return $this;
} }
/** /**
*
* @see \FML\Renderable::render() * @see \FML\Renderable::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {

View File

@ -7,9 +7,9 @@ use FML\Types\Renderable;
/** /**
* Class representing a ManiaLink Script Tag with a simple Script Text * Class representing a ManiaLink Script Tag with a simple Script Text
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 SimpleScript implements Renderable { class SimpleScript implements Renderable {
/* /*
@ -47,12 +47,11 @@ class SimpleScript implements Renderable {
* @return \FML\Script\Script * @return \FML\Script\Script
*/ */
public function setText($text) { public function setText($text) {
$this->text = (string) $text; $this->text = (string)$text;
return $this; return $this;
} }
/** /**
*
* @see \FML\Types\Renderable::render() * @see \FML\Types\Renderable::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element installing a Map * ManiaCode Element installing a Map
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 InstallMap implements Element { class InstallMap implements Element {
/* /*
@ -21,7 +21,7 @@ class InstallMap implements Element {
* Create a new InstallMap Element * Create a new InstallMap Element
* *
* @param string $name (optional) Map Name * @param string $name (optional) Map Name
* @param string $url (optional) Map Url * @param string $url (optional) Map Url
* @return \FML\ManiaCode\InstallMap * @return \FML\ManiaCode\InstallMap
*/ */
public static function create($name = null, $url = null) { public static function create($name = null, $url = null) {
@ -33,7 +33,7 @@ class InstallMap implements Element {
* Construct a new InstallMap Element * Construct a new InstallMap Element
* *
* @param string $name (optional) Map Name * @param string $name (optional) Map Name
* @param string $url (optional) Map Url * @param string $url (optional) Map Url
*/ */
public function __construct($name = null, $url = null) { public function __construct($name = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -51,7 +51,7 @@ class InstallMap implements Element {
* @return \FML\ManiaCode\InstallMap * @return \FML\ManiaCode\InstallMap
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -62,16 +62,15 @@ class InstallMap implements Element {
* @return \FML\ManiaCode\InstallMap * @return \FML\ManiaCode\InstallMap
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$urlElement = $domDocument->createElement('url', $this->url); $urlElement = $domDocument->createElement('url', $this->url);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element installing a Title Pack * ManiaCode Element installing a Title Pack
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 InstallPack implements Element { class InstallPack implements Element {
/* /*
@ -23,7 +23,7 @@ class InstallPack implements Element {
* *
* @param string $name (optional) Pack Name * @param string $name (optional) Pack Name
* @param string $file (optional) Pack File * @param string $file (optional) Pack File
* @param string $url (optional) Pack Url * @param string $url (optional) Pack Url
* @return \FML\ManiaCode\InstallPack * @return \FML\ManiaCode\InstallPack
*/ */
public static function create($name = null, $file = null, $url = null) { public static function create($name = null, $file = null, $url = null) {
@ -36,7 +36,7 @@ class InstallPack implements Element {
* *
* @param string $name (optional) Pack Name * @param string $name (optional) Pack Name
* @param string $file (optional) Pack File * @param string $file (optional) Pack File
* @param string $url (optional) Pack Url * @param string $url (optional) Pack Url
*/ */
public function __construct($name = null, $file = null, $url = null) { public function __construct($name = null, $file = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -57,7 +57,7 @@ class InstallPack implements Element {
* @return \FML\ManiaCode\InstallPack * @return \FML\ManiaCode\InstallPack
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -68,7 +68,7 @@ class InstallPack implements Element {
* @return \FML\ManiaCode\InstallPack * @return \FML\ManiaCode\InstallPack
*/ */
public function setFile($file) { public function setFile($file) {
$this->file = (string) $file; $this->file = (string)$file;
return $this; return $this;
} }
@ -79,16 +79,15 @@ class InstallPack implements Element {
* @return \FML\ManiaCode\InstallPack * @return \FML\ManiaCode\InstallPack
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$fileElement = $domDocument->createElement('file', $this->file); $fileElement = $domDocument->createElement('file', $this->file);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element installing a Replay * ManiaCode Element installing a Replay
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 InstallReplay implements Element { class InstallReplay implements Element {
/* /*
@ -21,7 +21,7 @@ class InstallReplay implements Element {
* Create a new InstallReplay Element * Create a new InstallReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
* @return \FML\ManiaCode\InstallReplay * @return \FML\ManiaCode\InstallReplay
*/ */
public static function create($name = null, $url = null) { public static function create($name = null, $url = null) {
@ -33,7 +33,7 @@ class InstallReplay implements Element {
* Construct a new InstallReplay Element * Construct a new InstallReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
*/ */
public function __construct($name = null, $url = null) { public function __construct($name = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -51,7 +51,7 @@ class InstallReplay implements Element {
* @return \FML\ManiaCode\InstallReplay * @return \FML\ManiaCode\InstallReplay
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -62,16 +62,15 @@ class InstallReplay implements Element {
* @return \FML\ManiaCode\InstallReplay * @return \FML\ManiaCode\InstallReplay
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$urlElement = $domDocument->createElement('url', $this->url); $urlElement = $domDocument->createElement('url', $this->url);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element installing a Script * ManiaCode Element installing a Script
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 InstallScript implements Element { class InstallScript implements Element {
/* /*
@ -23,7 +23,7 @@ class InstallScript implements Element {
* *
* @param string $name (optional) Script Name * @param string $name (optional) Script Name
* @param string $file (optional) Script File * @param string $file (optional) Script File
* @param string $url (optional) Script Url * @param string $url (optional) Script Url
* @return \FML\ManiaCode\InstallScript * @return \FML\ManiaCode\InstallScript
*/ */
public static function create($name = null, $file = null, $url = null) { public static function create($name = null, $file = null, $url = null) {
@ -36,7 +36,7 @@ class InstallScript implements Element {
* *
* @param string $name (optional) Script Name * @param string $name (optional) Script Name
* @param string $file (optional) Script File * @param string $file (optional) Script File
* @param string $url (optional) Script Url * @param string $url (optional) Script Url
*/ */
public function __construct($name = null, $file = null, $url = null) { public function __construct($name = null, $file = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -57,7 +57,7 @@ class InstallScript implements Element {
* @return \FML\ManiaCode\InstallScript * @return \FML\ManiaCode\InstallScript
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -68,7 +68,7 @@ class InstallScript implements Element {
* @return \FML\ManiaCode\InstallScript * @return \FML\ManiaCode\InstallScript
*/ */
public function setFile($file) { public function setFile($file) {
$this->file = (string) $file; $this->file = (string)$file;
return $this; return $this;
} }
@ -79,16 +79,15 @@ class InstallScript implements Element {
* @return \FML\ManiaCode\InstallScript * @return \FML\ManiaCode\InstallScript
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$fileElement = $domDocument->createElement('file', $this->file); $fileElement = $domDocument->createElement('file', $this->file);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element installing a Skin * ManiaCode Element installing a Skin
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 InstallSkin implements Element { class InstallSkin implements Element {
/* /*
@ -23,7 +23,7 @@ class InstallSkin implements Element {
* *
* @param string $name (optional) Skin Name * @param string $name (optional) Skin Name
* @param string $file (optional) Skin File * @param string $file (optional) Skin File
* @param string $url (optional) Skin Url * @param string $url (optional) Skin Url
* @return \FML\ManiaCode\InstallSkin * @return \FML\ManiaCode\InstallSkin
*/ */
public static function create($name = null, $file = null, $url = null) { public static function create($name = null, $file = null, $url = null) {
@ -36,7 +36,7 @@ class InstallSkin implements Element {
* *
* @param string $name (optional) Skin Name * @param string $name (optional) Skin Name
* @param string $file (optional) Skin File * @param string $file (optional) Skin File
* @param string $url (optional) Skin Url * @param string $url (optional) Skin Url
*/ */
public function __construct($name = null, $file = null, $url = null) { public function __construct($name = null, $file = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -57,7 +57,7 @@ class InstallSkin implements Element {
* @return \FML\ManiaCode\InstallSkin * @return \FML\ManiaCode\InstallSkin
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -68,7 +68,7 @@ class InstallSkin implements Element {
* @return \FML\ManiaCode\InstallSkin * @return \FML\ManiaCode\InstallSkin
*/ */
public function setFile($file) { public function setFile($file) {
$this->file = (string) $file; $this->file = (string)$file;
return $this; return $this;
} }
@ -79,16 +79,15 @@ class InstallSkin implements Element {
* @return \FML\ManiaCode\InstallSkin * @return \FML\ManiaCode\InstallSkin
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$fileElement = $domDocument->createElement('file', $this->file); $fileElement = $domDocument->createElement('file', $this->file);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element joining a Server * ManiaCode Element joining a Server
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 JoinServer implements Element { class JoinServer implements Element {
/* /*
@ -47,28 +47,27 @@ class JoinServer implements Element {
* @return \FML\ManiaCode\JoinServer * @return \FML\ManiaCode\JoinServer
*/ */
public function setLogin($login) { public function setLogin($login) {
$this->login = (string) $login; $this->login = (string)$login;
$this->ip = null; $this->ip = null;
$this->port = null; $this->port = null;
return $this; return $this;
} }
/** /**
* Set the Server Ip and Port * Set the Server Ip and Port
* *
* @param string $ip Server Ip * @param string $ip Server Ip
* @param int $port Server Port * @param int $port Server Port
* @return \FML\ManiaCode\JoinServer * @return \FML\ManiaCode\JoinServer
*/ */
public function setIp($ip, $port) { public function setIp($ip, $port) {
$this->ip = (string) $ip; $this->ip = (string)$ip;
$this->port = (int) $port; $this->port = (int)$port;
$this->login = null; $this->login = null;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
@ -76,8 +75,7 @@ class JoinServer implements Element {
if ($this->ip === null) { if ($this->ip === null) {
$loginElement = $domDocument->createElement('login', $this->login); $loginElement = $domDocument->createElement('login', $this->login);
$xmlElement->appendChild($loginElement); $xmlElement->appendChild($loginElement);
} } else {
else {
$ipElement = $domDocument->createElement('ip', $this->ip . ':' . $this->port); $ipElement = $domDocument->createElement('ip', $this->ip . ':' . $this->port);
$xmlElement->appendChild($ipElement); $xmlElement->appendChild($ipElement);
} }

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element playing a Map * ManiaCode Element playing a Map
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 PlayMap implements Element { class PlayMap implements Element {
/* /*
@ -21,7 +21,7 @@ class PlayMap implements Element {
* Create a new PlayMap Element * Create a new PlayMap Element
* *
* @param string $name (optional) Map Name * @param string $name (optional) Map Name
* @param string $url (optional) Map Url * @param string $url (optional) Map Url
* @return \FML\ManiaCode\PlayMap * @return \FML\ManiaCode\PlayMap
*/ */
public static function create($name = null, $url = null) { public static function create($name = null, $url = null) {
@ -33,7 +33,7 @@ class PlayMap implements Element {
* Construct a new PlayMap Element * Construct a new PlayMap Element
* *
* @param string $name (optional) Map Name * @param string $name (optional) Map Name
* @param string $url (optional) Map Url * @param string $url (optional) Map Url
*/ */
public function __construct($name = null, $url = null) { public function __construct($name = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -51,7 +51,7 @@ class PlayMap implements Element {
* @return \FML\ManiaCode\PlayMap * @return \FML\ManiaCode\PlayMap
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -62,16 +62,15 @@ class PlayMap implements Element {
* @return \FML\ManiaCode\PlayMap * @return \FML\ManiaCode\PlayMap
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$urlElement = $domDocument->createElement('url', $this->url); $urlElement = $domDocument->createElement('url', $this->url);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element playing a Replay * ManiaCode Element playing a Replay
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 PlayReplay implements Element { class PlayReplay implements Element {
/* /*
@ -21,7 +21,7 @@ class PlayReplay implements Element {
* Create a new PlayReplay Element * Create a new PlayReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
* @return \FML\ManiaCode\PlayReplay * @return \FML\ManiaCode\PlayReplay
*/ */
public static function create($name = null, $url = null) { public static function create($name = null, $url = null) {
@ -33,7 +33,7 @@ class PlayReplay implements Element {
* Construct a new PlayReplay Element * Construct a new PlayReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
*/ */
public function __construct($name = null, $url = null) { public function __construct($name = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -51,7 +51,7 @@ class PlayReplay implements Element {
* @return \FML\ManiaCode\PlayReplay * @return \FML\ManiaCode\PlayReplay
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -62,16 +62,15 @@ class PlayReplay implements Element {
* @return \FML\ManiaCode\PlayReplay * @return \FML\ManiaCode\PlayReplay
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$urlElement = $domDocument->createElement('url', $this->url); $urlElement = $domDocument->createElement('url', $this->url);

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element showing a Message * ManiaCode Element showing a Message
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 ShowMessage implements Element { class ShowMessage implements Element {
/* /*
@ -18,7 +18,7 @@ class ShowMessage implements Element {
/** /**
* Create a new ShowMessage Element * Create a new ShowMessage Element
* *
* @param string $message (optional) Message Text * @param string $message (optional) Message Text
* @return \FML\ManiaCode\ShowMessage * @return \FML\ManiaCode\ShowMessage
*/ */
@ -45,16 +45,15 @@ class ShowMessage implements Element {
* @return \FML\ManiaCode\ShowMessage * @return \FML\ManiaCode\ShowMessage
*/ */
public function setMessage($message) { public function setMessage($message) {
$this->message = (string) $message; $this->message = (string)$message;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$messageElement = $domDocument->createElement('message', $this->message); $messageElement = $domDocument->createElement('message', $this->message);
$xmlElement->appendChild($messageElement); $xmlElement->appendChild($messageElement);
return $xmlElement; return $xmlElement;

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/** /**
* ManiaCode Element viewing a Replay * ManiaCode Element viewing a Replay
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 ViewReplay implements Element { class ViewReplay implements Element {
/* /*
@ -19,9 +19,9 @@ class ViewReplay implements Element {
/** /**
* Create a new ViewReplay Element * Create a new ViewReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
* @return \FML\ManiaCode\ViewReplay * @return \FML\ManiaCode\ViewReplay
*/ */
public static function create($name = null, $url = null) { public static function create($name = null, $url = null) {
@ -33,7 +33,7 @@ class ViewReplay implements Element {
* Construct a new ViewReplay Element * Construct a new ViewReplay Element
* *
* @param string $name (optional) Replay Name * @param string $name (optional) Replay Name
* @param string $url (optional) Replay Url * @param string $url (optional) Replay Url
*/ */
public function __construct($name = null, $url = null) { public function __construct($name = null, $url = null) {
if ($name !== null) { if ($name !== null) {
@ -51,7 +51,7 @@ class ViewReplay implements Element {
* @return \FML\ManiaCode\ViewReplay * @return \FML\ManiaCode\ViewReplay
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -62,16 +62,15 @@ class ViewReplay implements Element {
* @return \FML\ManiaCode\ViewReplay * @return \FML\ManiaCode\ViewReplay
*/ */
public function setUrl($url) { public function setUrl($url) {
$this->url = (string) $url; $this->url = (string)$url;
return $this; return $this;
} }
/** /**
*
* @see \FML\ManiaCode\Element::render() * @see \FML\ManiaCode\Element::render()
*/ */
public function render(\DOMDocument $domDocument) { public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName); $xmlElement = $domDocument->createElement($this->tagName);
$nameElement = $domDocument->createElement('name', $this->name); $nameElement = $domDocument->createElement('name', $this->name);
$xmlElement->appendChild($nameElement); $xmlElement->appendChild($nameElement);
$urlElement = $domDocument->createElement('url', $this->url); $urlElement = $domDocument->createElement('url', $this->url);

View File

@ -33,6 +33,7 @@ class CheckBoxFeature extends ScriptFeature {
protected $quad = null; protected $quad = null;
/** @var Entry $entry */ /** @var Entry $entry */
protected $entry = null; protected $entry = null;
protected $default = null;
/** @var CheckBoxDesign $enabledDesign */ /** @var CheckBoxDesign $enabledDesign */
protected $enabledDesign = null; protected $enabledDesign = null;
/** @var CheckBoxDesign $disabledDesign */ /** @var CheckBoxDesign $disabledDesign */
@ -44,7 +45,7 @@ class CheckBoxFeature extends ScriptFeature {
* @param Quad $quad (optional) CheckBox Quad * @param Quad $quad (optional) CheckBox Quad
* @param Entry $entry (optional) Hidden Entry * @param Entry $entry (optional) Hidden Entry
*/ */
public function __construct(Quad $quad = null, Entry $entry = null) { public function __construct(Quad $quad = null, Entry $entry = null, $default = null) {
$this->setQuad($quad); $this->setQuad($quad);
$this->setEntry($entry); $this->setEntry($entry);
$this->setEnabledDesign(CheckBoxDesign::defaultEnabledDesign()); $this->setEnabledDesign(CheckBoxDesign::defaultEnabledDesign());
@ -98,10 +99,21 @@ class CheckBoxFeature extends ScriptFeature {
return $this->entry; return $this->entry;
} }
/**
* Set the default Value
*
* @param bool $default Default Value
* @return \FML\Script\Features\CheckBoxFeature
*/
public function setDefault($default) {
$this->default = (bool)$default;
return $this;
}
/** /**
* Set the Enabled Design * Set the Enabled Design
* *
* @param CheckBoxDesign $checkBoxDesign CheckBox Design * @param CheckBoxDesign $checkBoxDesign Enabled CheckBox Design
* @return \FML\Script\Features\CheckBoxFeature * @return \FML\Script\Features\CheckBoxFeature
*/ */
public function setEnabledDesign(CheckBoxDesign $checkBoxDesign) { public function setEnabledDesign(CheckBoxDesign $checkBoxDesign) {
@ -112,7 +124,7 @@ class CheckBoxFeature extends ScriptFeature {
/** /**
* Set the Disabled Design * Set the Disabled Design
* *
* @param CheckBoxDesign $checkBoxDesign CheckBox Design * @param CheckBoxDesign $checkBoxDesign Disabled CheckBox Design
* @return \FML\Script\Features\CheckBoxFeature * @return \FML\Script\Features\CheckBoxFeature
*/ */
public function setDisabledDesign(CheckBoxDesign $checkBoxDesign) { public function setDisabledDesign(CheckBoxDesign $checkBoxDesign) {
@ -126,7 +138,7 @@ class CheckBoxFeature extends ScriptFeature {
public function prepare(Script $script) { public function prepare(Script $script) {
if ($this->getQuad()) { if ($this->getQuad()) {
$script->setScriptInclude(ScriptInclude::TEXTLIB); $script->setScriptInclude(ScriptInclude::TEXTLIB);
$script->addScriptFunction(self::FUNCTION_UPDATE_QUAD_DESIGN, $this->buildSetQuadDesignFunction()); $script->addScriptFunction(self::FUNCTION_UPDATE_QUAD_DESIGN, $this->buildUpdateQuadDesignFunction());
$script->appendGenericScriptLabel(ScriptLabel::ONINIT, $this->buildInitScriptText(), true); $script->appendGenericScriptLabel(ScriptLabel::ONINIT, $this->buildInitScriptText(), true);
$script->appendGenericScriptLabel(ScriptLabel::MOUSECLICK, $this->buildClickScriptText()); $script->appendGenericScriptLabel(ScriptLabel::MOUSECLICK, $this->buildClickScriptText());
} }
@ -138,7 +150,7 @@ class CheckBoxFeature extends ScriptFeature {
* *
* @return string * @return string
*/ */
protected function buildSetQuadDesignFunction() { protected function buildUpdateQuadDesignFunction() {
$functionText = " $functionText = "
Void " . self::FUNCTION_UPDATE_QUAD_DESIGN . "(CMlQuad _Quad) { Void " . self::FUNCTION_UPDATE_QUAD_DESIGN . "(CMlQuad _Quad) {
declare " . self::VAR_CHECKBOX_ENABLED . " as Enabled for _Quad = True; declare " . self::VAR_CHECKBOX_ENABLED . " as Enabled for _Quad = True;
@ -173,13 +185,11 @@ Void " . self::FUNCTION_UPDATE_QUAD_DESIGN . "(CMlQuad _Quad) {
*/ */
protected function buildInitScriptText() { protected function buildInitScriptText() {
$quadId = $this->getQuad()->getId(true); $quadId = $this->getQuad()->getId(true);
$default = true;
$entryId = ''; $entryId = '';
if ($this->entry) { if ($this->entry) {
$default = $this->entry->getDefault();
$entryId = $this->entry->getId(true); $entryId = $this->entry->getId(true);
} }
$default = Builder::getBoolean($default); $default = Builder::getBoolean($this->default);
$enabledDesignString = $this->enabledDesign->getDesignString(); $enabledDesignString = $this->enabledDesign->getDesignString();
$disabledDesignString = $this->disabledDesign->getDesignString(); $disabledDesignString = $this->disabledDesign->getDesignString();
$scriptText = " $scriptText = "

View File

@ -7,9 +7,9 @@ use FML\Controls\Control;
/** /**
* A Page Control * A Page Control
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 PagingPage { class PagingPage {
/* /*
@ -21,8 +21,8 @@ class PagingPage {
/** /**
* Construct a new Paging Page * Construct a new Paging Page
* *
* @param Control $control (optional) Page Control * @param Control $control (optional) Page Control
* @param int $pageNumber (optional) Number of the Page * @param int $pageNumber (optional) Number of the Page
*/ */
public function __construct(Control $control = null, $pageNumber = 1) { public function __construct(Control $control = null, $pageNumber = 1) {
$this->setControl($control); $this->setControl($control);
@ -57,7 +57,7 @@ class PagingPage {
* @return \FML\Script\Features\PagingPage * @return \FML\Script\Features\PagingPage
*/ */
public function setPageNumber($pageNumber) { public function setPageNumber($pageNumber) {
$this->number = (int) $pageNumber; $this->number = (int)$pageNumber;
return $this; return $this;
} }

View File

@ -0,0 +1,226 @@
<?php
namespace FML\Script\Features;
use FML\Controls\Entry;
use FML\Controls\Label;
use FML\Script\Builder;
use FML\Script\Script;
use FML\Script\ScriptInclude;
use FML\Script\ScriptLabel;
/**
* Script Feature for creating a ValuePicker Behavior
*
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ValuePickerFeature extends ScriptFeature {
/*
* Constants
*/
const FUNCTION_UPDATE_PICKER_VALUE = 'FML_UpdatePickerValue';
const VAR_PICKER_VALUES = 'FML_Picker_Values';
const VAR_PICKER_DEFAULT_VALUE = 'FML_Picker_Default_Value';
const VAR_PICKER_ENTRY_ID = 'FML_Picker_EntryId';
/*
* Protected Properties
*/
/** @var Label $label */
protected $label = null;
/** @var Entry $entry */
protected $entry = null;
protected $values = null;
protected $default = null;
/**
* Construct a new ValuePicker Feature
*
* @param Label $label (optional) ValuePicker Label
* @param Entry $entry (optional) Hidden Entry
* @param array $values (optional) Possible Values
* @param string $default (optional) Default Value
*/
public function __construct(Label $label = null, Entry $entry = null, array $values = array(), $default = null) {
$this->setLabel($label);
$this->setEntry($entry);
$this->setValues($values);
$this->setDefault($default);
}
/**
* Set the ValuePicker Label
*
* @param Label $label ValuePicker Label
* @return \FML\Script\Features\ValuePickerFeature
*/
public function setLabel(Label $label = null) {
if ($label) {
$label->checkId();
$label->setScriptEvents(true);
}
$this->label = $label;
return $this;
}
/**
* Get the ValuePicker Label
*
* @return \FML\Controls\Label
*/
public function getLabel() {
return $this->label;
}
/**
* Set the hidden Entry
*
* @param Entry $entry Hidden Entry
* @return \FML\Script\Features\ValuePickerFeature
*/
public function setEntry(Entry $entry = null) {
if ($entry) {
$entry->checkId();
}
$this->entry = $entry;
return $this;
}
/**
* Get the hidden Entry
*
* @return \FML\Controls\Entry
*/
public function getEntry() {
return $this->entry;
}
/**
* Set the possible Values
*
* @param array $values Possible Values
* @return \FML\Script\Features\ValuePickerFeature
*/
public function setValues(array $values) {
$this->values = array();
foreach ($values as $value) {
array_push($this->values, (string)$value);
}
return $this;
}
/**
* Set the default Value
*
* @param string $default Default Value
* @return \FML\Script\Features\ValuePickerFeature
*/
public function setDefault($default) {
$this->default = (string)$default;
}
/**
* Get the default Value
*
* @return string
*/
public function getDefault() {
if ($this->default) {
return $this->default;
}
if ($this->values) {
return reset($this->values);
}
return null;
}
/**
* @see \FML\Script\Features\ScriptFeature::prepare()
*/
public function prepare(Script $script) {
if ($this->label) {
$script->setScriptInclude(ScriptInclude::TEXTLIB);
$script->addScriptFunction(self::FUNCTION_UPDATE_PICKER_VALUE, $this->buildUpdatePickerValueFunction());
$script->appendGenericScriptLabel(ScriptLabel::ONINIT, $this->buildInitScriptText(), true);
$script->appendGenericScriptLabel(ScriptLabel::ONINIT, $this->buildClickScriptText());
}
return $this;
}
/**
* Build the Function Text
*
* @return string
*/
protected function buildUpdatePickerValueFunction() {
$functionText = "
Void " . self::FUNCTION_UPDATE_PICKER_VALUE . "(CMlLabel _Label) {
declare " . self::VAR_PICKER_VALUES . " as Values for _Label = Text[];
declare NewValueIndex = 0;
if (Values.exists(_Label.Value) {
declare ValueIndex = _Label.keyof(_Label.Value);
ValueIndex += 1;
if (Values.existskey(ValueIndex)) {
NewValueIndex = ValueIndex;
}
}
declare NewValue = \"\";
if (Values.existskey(NewValueIndex)) {
NewValue = Values[NewValueIndex];
} else {
declare " . self::VAR_PICKER_DEFAULT_VALUE . " as Default for _Label = \"\";
NewValue = Default;
}
_Label.Value = NewValue;
declare " . self::VAR_PICKER_ENTRY_ID . " as EntryId for _Label = \"\";
if (EntryId != \"\") {
declare Entry <=> (Page.GetFirstChild(EntryId) as CMlEntry);
Entry.Value = NewValue;
}
}";
return $functionText;
}
/**
* Build the Init Script Text
*
* @return string
*/
protected function buildInitScriptText() {
$labelId = $this->label->getId(true);
$entryId = '';
if ($this->entry) {
$entryId = $this->entry->getId(true);
}
$values = Builder::getArray($this->values);
$default = $this->getDefault();
$scriptText = "
declare Label_Picker <=> (Page.GetFirstChild(\"{$labelId}\") as CMlLabel);
declare Text[] " . self::VAR_PICKER_VALUES . " as Values for Label_Picker;
Values = {$values};
declare Text " . self::VAR_PICKER_DEFAULT_VALUE . " as Default for Label_Picker;
Default = \"{$default}\";
declare Text " . self::VAR_PICKER_ENTRY_ID . " as EntryId for Label_Picker;
EntryId = \"{$entryId}\";
" . self::FUNCTION_UPDATE_PICKER_VALUE . "(Label_Picker);
";
return $scriptText;
}
/**
* Build the Script Text for Label Clicks
*
* @return string
*/
protected function buildClickScriptText() {
$labelId = $this->label->getId(true);
$scriptText = "
if (Event.ControlId == \"{$labelId}\") {
declare Label_Picker <=> (Event.Control as CMlLabel);
" . self::FUNCTION_UPDATE_PICKER_VALUE . "(Label_Picker);
}";
return $scriptText;
}
}

View File

@ -5,9 +5,9 @@ namespace FML\Script;
/** /**
* Class representing a Constant of the ManiaLink Script * Class representing a Constant of the ManiaLink Script
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 ScriptConstant { class ScriptConstant {
/* /*
@ -19,7 +19,7 @@ class ScriptConstant {
/** /**
* Construct a new Script Constant * Construct a new Script Constant
* *
* @param string $name (optional) Constant Name * @param string $name (optional) Constant Name
* @param string $value (optional) Constant Value * @param string $value (optional) Constant Value
*/ */
public function __construct($name = null, $value = null) { public function __construct($name = null, $value = null) {

View File

@ -5,9 +5,9 @@ namespace FML\Script;
/** /**
* Class representing a Function of the ManiaLink Script * Class representing a Function of the ManiaLink Script
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 ScriptFunction { class ScriptFunction {
/* /*
@ -34,7 +34,7 @@ class ScriptFunction {
* @return \FML\Script\ScriptFunction * @return \FML\Script\ScriptFunction
*/ */
public function setName($name) { public function setName($name) {
$this->name = (string) $name; $this->name = (string)$name;
return $this; return $this;
} }
@ -45,7 +45,7 @@ class ScriptFunction {
* @return \FML\Script\ScriptFunction * @return \FML\Script\ScriptFunction
*/ */
public function setText($text) { public function setText($text) {
$this->text = (string) $text; $this->text = (string)$text;
return $this; return $this;
} }

View File

@ -5,9 +5,9 @@ namespace FML\Script;
/** /**
* Class representing an Include of the ManiaLink Script * Class representing an Include of the ManiaLink Script
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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 ScriptInclude { class ScriptInclude {
/* /*
@ -15,7 +15,7 @@ class ScriptInclude {
*/ */
const MATHLIB = 'MathLib'; const MATHLIB = 'MathLib';
const TEXTLIB = 'TextLib'; const TEXTLIB = 'TextLib';
/* /*
* Protected Properties * Protected Properties
*/ */
@ -25,15 +25,14 @@ class ScriptInclude {
/** /**
* Construct a new Script Include * Construct a new Script Include
* *
* @param string $file (optional) Include File * @param string $file (optional) Include File
* @param string $namespace (optional) Include Namespace * @param string $namespace (optional) Include Namespace
*/ */
public function __construct($file = null, $namespace = null) { public function __construct($file = null, $namespace = null) {
$this->setFile($file); $this->setFile($file);
if ($namespace) { if ($namespace) {
$this->setNamespace($namespace); $this->setNamespace($namespace);
} } else {
else {
$fileParts = explode('.', $file); $fileParts = explode('.', $file);
if (count($fileParts) === 1) { if (count($fileParts) === 1) {
$this->setNamespace($file); $this->setNamespace($file);

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with Url Attributes * Interface for Elements with Url Attributes
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface Linkable { interface Linkable {
@ -37,7 +37,7 @@ interface Linkable {
/** /**
* Set Manialink Id to use from the Dico * Set Manialink Id to use from the Dico
* *
* @param string $manialinkId Manialink Id * @param string $manialinkId Manialink Id
* @return \FML\Types\Linkable * @return \FML\Types\Linkable
*/ */

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with AutoNewLine Attribute * Interface for Elements with AutoNewLine Attribute
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface NewLineable { interface NewLineable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with Media Attributes * Interface for Elements with Media Attributes
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface Playable { interface Playable {
@ -21,7 +21,7 @@ interface Playable {
/** /**
* Set Data Id to use from the Dico * Set Data Id to use from the Dico
* *
* @param string $dataId * @param string $dataId
* @return \FML\Types\Playable * @return \FML\Types\Playable
*/ */

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for renderable Elements * Interface for renderable Elements
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface Renderable { interface Renderable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements supporting Script Features * Interface for Elements supporting Script Features
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface ScriptFeatureable { interface ScriptFeatureable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with ScriptEvents Attribute * Interface for Elements with ScriptEvents Attribute
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface Scriptable { interface Scriptable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with Style Attribute * Interface for Elements with Style Attribute
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface Styleable { interface Styleable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with SubStyle Attribute * Interface for Elements with SubStyle Attribute
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface SubStyleable { interface SubStyleable {
@ -22,7 +22,7 @@ interface SubStyleable {
/** /**
* Set Style and SubStyle * Set Style and SubStyle
* *
* @param string $style Style Name * @param string $style Style Name
* @param string $subStyle SubStyle Name * @param string $subStyle SubStyle Name
* @return \FML\Types\SubStyleable * @return \FML\Types\SubStyleable
*/ */

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/** /**
* Interface for Elements with Formatable Text * Interface for Elements with Formatable Text
* *
* @author steeffeen * @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder * @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
*/ */
interface TextFormatable { interface TextFormatable {