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)) {
// Boolean checkbox
$checkBox = new CheckBox(self::ACTION_PREFIX_SETTING . $name, $value);
$settingFrame->add($checkBox);
$quad = new Quad();
$checkBox->setQuad($quad);
$quad->setX($width / 2 * 0.46);
$quad->setZ(-0.01);
$quad->setSize(4, 4);
$checkBox = new CheckBox(self::ACTION_PREFIX_SETTING . $name, $value, $quad);
$settingFrame->add($checkBox);
} else {
// Other
$entry = new Entry();

View File

@ -23,8 +23,6 @@ class CheckBox implements Renderable, ScriptFeatureable {
* Protected Properties
*/
protected $name = null;
protected $default = null;
protected $hiddenEntryDisabled = null;
protected $feature = null;
/**
@ -35,10 +33,10 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @param Quad $quad (optional) CheckBox Quad
*/
public function __construct($name = null, $default = null, Quad $quad = null) {
$this->feature = new CheckBoxFeature();
$this->setName($name);
$this->setDefault($default);
$this->feature = new CheckBoxFeature();
$this->feature->setQuad($quad);
$this->setQuad($quad);
}
/**
@ -59,18 +57,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @return \FML\Components\CheckBox
*/
public function setDefault($default) {
$this->default = ($default ? 1 : 0);
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;
$this->feature->setDefault($default);
return $this;
}
@ -106,7 +93,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
* @param Quad $quad CheckBox Quad
* @return \FML\Components\CheckBox
*/
public function setQuad(Quad $quad) {
public function setQuad(Quad $quad = null) {
$this->feature->setQuad($quad);
return $this;
}
@ -128,9 +115,7 @@ class CheckBox implements Renderable, ScriptFeatureable {
if (!$this->feature->getQuad() && $createIfEmpty) {
$quad = new Quad();
$quad->setSize(10, 10);
$quad->setScriptEvents(true);
$this->feature->setQuad($quad);
$this->setQuad($quad);
}
return $this->feature->getQuad();
}
@ -140,18 +125,13 @@ class CheckBox implements Renderable, ScriptFeatureable {
*/
public function render(\DOMDocument $domDocument) {
$frame = new Frame();
$frame->addScriptFeature($this->feature);
$quad = $this->getQuad();
$frame->add($quad);
if (!$this->hiddenEntryDisabled) {
$entry = $this->buildEntry();
$frame->add($entry);
$this->feature->setEntry($entry);
} else {
$this->feature->setEntry(null);
}
$entry = $this->buildEntry();
$frame->add($entry);
$this->feature->setEntry($entry);
return $frame->render($domDocument);
}
@ -165,7 +145,6 @@ class CheckBox implements Renderable, ScriptFeatureable {
$entry = new Entry();
$entry->setVisible(false);
$entry->setName($this->name);
$entry->setDefault($this->default);
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
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Label_Button extends Label {
/*
* Constants
*/
const STYLE_CardButtonMedium = 'CardButtonMedium';
const STYLE_CardButtonMediumL = 'CardButtonMediumL';
const STYLE_CardButtonMediumS = 'CardButtonMediumS';
const STYLE_CardButtonMedium = 'CardButtonMedium';
const STYLE_CardButtonMediumL = 'CardButtonMediumL';
const STYLE_CardButtonMediumS = 'CardButtonMediumS';
const STYLE_CardButtonMediumWide = 'CardButtonMediumWide';
const STYLE_CardButtonMediumXL = 'CardButtonMediumXL';
const STYLE_CardButtonMediumXS = 'CardButtonMediumXS';
const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL';
const STYLE_CardButtonMediumXL = 'CardButtonMediumXL';
const STYLE_CardButtonMediumXS = 'CardButtonMediumXS';
const STYLE_CardButtonMediumXXL = 'CardButtonMediumXXL';
const STYLE_CardButtonMediumXXXL = 'CardButtonMediumXXXL';
const STYLE_CardButtonSmall = 'CardButtonSmall';
const STYLE_CardButtonSmallL = 'CardButtonSmallL';
const STYLE_CardButtonSmallS = 'CardButtonSmallS';
const STYLE_CardButtonSmallWide = 'CardButtonSmallWide';
const STYLE_CardButtonSmallXL = 'CardButtonSmallXL';
const STYLE_CardButtonSmallXS = 'CardButtonSmallXS';
const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL';
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
const STYLE_CardMain_Quit = 'CardMain_Quit';
const STYLE_CardMain_Tool = 'CardMain_Tool';
const STYLE_CardButtonSmall = 'CardButtonSmall';
const STYLE_CardButtonSmallL = 'CardButtonSmallL';
const STYLE_CardButtonSmallS = 'CardButtonSmallS';
const STYLE_CardButtonSmallWide = 'CardButtonSmallWide';
const STYLE_CardButtonSmallXL = 'CardButtonSmallXL';
const STYLE_CardButtonSmallXS = 'CardButtonSmallXS';
const STYLE_CardButtonSmallXXL = 'CardButtonSmallXXL';
const STYLE_CardButtonSmallXXXL = 'CardButtonSmallXXXL';
const STYLE_CardMain_Quit = 'CardMain_Quit';
const STYLE_CardMain_Tool = 'CardMain_Tool';
/**
* Create a new Label_Button Control

View File

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

View File

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

View File

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

View File

@ -7,21 +7,21 @@ use FML\Controls\Quad;
/**
* Quad Class for 'ManiaPlanetLogos' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_ManiaPlanetLogos extends Quad {
/*
* Constants
*/
const STYLE = 'ManiaPlanetLogos';
const SUBSTYLE_IconPlanets = 'IconPlanets';
const SUBSTYLE_IconPlanetsPerspective = 'IconPlanetsPerspective';
const SUBSTYLE_IconPlanetsSmall = 'IconPlanetsSmall';
const SUBSTYLE_ManiaPlanetLogoBlack = 'ManiaPlanetLogoBlack';
const STYLE = 'ManiaPlanetLogos';
const SUBSTYLE_IconPlanets = 'IconPlanets';
const SUBSTYLE_IconPlanetsPerspective = 'IconPlanetsPerspective';
const SUBSTYLE_IconPlanetsSmall = 'IconPlanetsSmall';
const SUBSTYLE_ManiaPlanetLogoBlack = 'ManiaPlanetLogoBlack';
const SUBSTYLE_ManiaPlanetLogoBlackSmall = 'ManiaPlanetLogoBlackSmall';
const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite';
const SUBSTYLE_ManiaPlanetLogoWhite = 'ManiaPlanetLogoWhite';
const SUBSTYLE_ManiaPlanetLogoWhiteSmall = 'ManiaPlanetLogoWhiteSmall';
/**

View File

@ -7,26 +7,26 @@ use FML\Controls\Quad;
/**
* Quad Class for 'ManiaPlanetMainMenu' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_ManiaPlanetMainMenu extends Quad {
/*
* Constants
*/
const STYLE = 'ManiaPlanetMainMenu';
const SUBSTYLE_BottomBar = 'BottomBar';
const SUBSTYLE_Highlight = 'Highlight';
const SUBSTYLE_IconAdd = 'IconAdd';
const SUBSTYLE_IconHome = 'IconHome';
const SUBSTYLE_IconPlay = 'IconPlay';
const SUBSTYLE_IconQuit = 'IconQuit';
const STYLE = 'ManiaPlanetMainMenu';
const SUBSTYLE_BottomBar = 'BottomBar';
const SUBSTYLE_Highlight = 'Highlight';
const SUBSTYLE_IconAdd = 'IconAdd';
const SUBSTYLE_IconHome = 'IconHome';
const SUBSTYLE_IconPlay = 'IconPlay';
const SUBSTYLE_IconQuit = 'IconQuit';
const SUBSTYLE_IconSettings = 'IconSettings';
const SUBSTYLE_IconStore = 'IconStore';
const SUBSTYLE_MainBg = 'MainBg';
const SUBSTYLE_TitleBg = 'TitleBg';
const SUBSTYLE_TopBar = 'TopBar';
const SUBSTYLE_IconStore = 'IconStore';
const SUBSTYLE_MainBg = 'MainBg';
const SUBSTYLE_TitleBg = 'TitleBg';
const SUBSTYLE_TopBar = 'TopBar';
/**
* Create a new Quad_ManiaPlanetMainMenu Control

View File

@ -7,21 +7,21 @@ use FML\Controls\Quad;
/**
* Quad Class for 'ManiaplanetSystem' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_ManiaplanetSystem extends Quad {
/*
* Constants
*/
const STYLE = 'ManiaplanetSystem';
const SUBSTYLE_BgDialog = 'BgDialog';
const STYLE = 'ManiaplanetSystem';
const SUBSTYLE_BgDialog = 'BgDialog';
const SUBSTYLE_BgDialogAnchor = 'BgDialogAnchor';
const SUBSTYLE_BgFloat = 'BgFloat';
const SUBSTYLE_Events = 'Events';
const SUBSTYLE_Medals = 'Medals';
const SUBSTYLE_Statistics = 'Statistics';
const SUBSTYLE_BgFloat = 'BgFloat';
const SUBSTYLE_Events = 'Events';
const SUBSTYLE_Medals = 'Medals';
const SUBSTYLE_Statistics = 'Statistics';
/**
* Create a new Quad_ManiaplanetSystem Control

View File

@ -7,22 +7,22 @@ use FML\Controls\Quad;
/**
* Quad Class for 'MedalsBig' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_MedalsBig extends Quad {
/*
* Constants
*/
const STYLE = 'MedalsBig';
const SUBSTYLE_MedalBronze = 'MedalBronze';
const SUBSTYLE_MedalGold = 'MedalGold';
const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective';
const SUBSTYLE_MedalNadeo = 'MedalNadeo';
const STYLE = 'MedalsBig';
const SUBSTYLE_MedalBronze = 'MedalBronze';
const SUBSTYLE_MedalGold = 'MedalGold';
const SUBSTYLE_MedalGoldPerspective = 'MedalGoldPerspective';
const SUBSTYLE_MedalNadeo = 'MedalNadeo';
const SUBSTYLE_MedalNadeoPerspective = 'MedalNadeoPerspective';
const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot';
const SUBSTYLE_MedalSilver = 'MedalSilver';
const SUBSTYLE_MedalSlot = 'MedalSlot';
/**
* Create a new Quad_MedalsBig Control

View File

@ -7,19 +7,19 @@ use FML\Controls\Quad;
/**
* Quad Class for 'TitleLogos' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_TitleLogos extends Quad {
/*
* Constants
*/
const STYLE = 'TitleLogos';
const SUBSTYLE_Author = 'Author';
const STYLE = 'TitleLogos';
const SUBSTYLE_Author = 'Author';
const SUBSTYLE_Collection = 'Collection';
const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title';
const SUBSTYLE_Icon = 'Icon';
const SUBSTYLE_Title = 'Title';
/**
* Create a new Quad_TitleLogos Control

View File

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

View File

@ -7,27 +7,27 @@ use FML\Controls\Quad;
/**
* Quad Class for 'UIConstruction_Buttons2' Style
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_UIConstruction_Buttons2 extends Quad {
/*
* Constants
*/
const STYLE = 'UIConstruction_Buttons2';
const SUBSTYLE_AirMapping = 'AirMapping';
const STYLE = 'UIConstruction_Buttons2';
const SUBSTYLE_AirMapping = 'AirMapping';
const SUBSTYLE_BlockEditor = 'BlockEditor';
const SUBSTYLE_Copy = 'Copy';
const SUBSTYLE_Cut = 'Cut';
const SUBSTYLE_Copy = 'Copy';
const SUBSTYLE_Cut = 'Cut';
const SUBSTYLE_GhostBlocks = 'GhostBlocks';
const SUBSTYLE_KeysAdd = 'KeysAdd';
const SUBSTYLE_KeysCopy = 'KeysCopy';
const SUBSTYLE_KeysDelete = 'KeysDelete';
const SUBSTYLE_KeysPaste = 'KeysPaste';
const SUBSTYLE_New = 'New';
const SUBSTYLE_Open = 'Open';
const SUBSTYLE_Symmetry = 'Symmetry';
const SUBSTYLE_KeysAdd = 'KeysAdd';
const SUBSTYLE_KeysCopy = 'KeysCopy';
const SUBSTYLE_KeysDelete = 'KeysDelete';
const SUBSTYLE_KeysPaste = 'KeysPaste';
const SUBSTYLE_New = 'New';
const SUBSTYLE_Open = 'Open';
const SUBSTYLE_Symmetry = 'Symmetry';
/**
* Create a new Quad_UIConstruction_Buttons2 Control

View File

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

View File

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

View File

@ -10,9 +10,9 @@ use FML\Types\TextFormatable;
/**
* Format Element
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Format implements BgColorable, Renderable, Styleable, TextFormatable {
/*
@ -43,61 +43,54 @@ class Format implements BgColorable, Renderable, Styleable, TextFormatable {
}
/**
*
* @see \FML\Types\BgColorable::setBgColor()
*/
public function setBgColor($bgColor) {
$this->bgColor = (string) $bgColor;
$this->bgColor = (string)$bgColor;
return $this;
}
/**
*
* @see \FML\Types\Styleable::setStyle()
*/
public function setStyle($style) {
$this->style = (string) $style;
$this->style = (string)$style;
return $this;
}
/**
*
* @see \FML\Types\TextFormatable::setTextSize()
*/
public function setTextSize($textSize) {
$this->textSize = (int) $textSize;
$this->textSize = (int)$textSize;
return $this;
}
/**
*
* @see \FML\Types\TextFormatable::setTextColor()
*/
public function setTextColor($textColor) {
$this->textColor = (string) $textColor;
$this->textColor = (string)$textColor;
return $this;
}
/**
*
* @see \FML\Types\TextFormatable::setAreaColor()
*/
public function setAreaColor($areaColor) {
$this->focusAreaColor1 = (string) $areaColor;
$this->focusAreaColor1 = (string)$areaColor;
return $this;
}
/**
*
* @see \FML\Types\TextFormatable::setAreaFocusColor()
*/
public function setAreaFocusColor($areaFocusColor) {
$this->focusAreaColor2 = (string) $areaFocusColor;
$this->focusAreaColor2 = (string)$areaFocusColor;
return $this;
}
/**
*
* @see \FML\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {

View File

@ -7,9 +7,9 @@ use FML\Types\Renderable;
/**
* Include Element
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Including implements Renderable {
/*
@ -46,11 +46,10 @@ class Including implements Renderable {
* @param string $url Include Url
*/
public function setUrl($url) {
$this->url = (string) $url;
$this->url = (string)$url;
}
/**
*
* @see \FML\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {

View File

@ -7,9 +7,9 @@ use FML\Types\Renderable;
/**
* Music Element
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Music implements Renderable {
/*
@ -47,12 +47,11 @@ class Music implements Renderable {
* @return \FML\Elements\Music
*/
public function setData($data) {
$this->data = (string) $data;
$this->data = (string)$data;
return $this;
}
/**
*
* @see \FML\Renderable::render()
*/
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
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class SimpleScript implements Renderable {
/*
@ -47,12 +47,11 @@ class SimpleScript implements Renderable {
* @return \FML\Script\Script
*/
public function setText($text) {
$this->text = (string) $text;
$this->text = (string)$text;
return $this;
}
/**
*
* @see \FML\Types\Renderable::render()
*/
public function render(\DOMDocument $domDocument) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -5,9 +5,9 @@ namespace FML\ManiaCode;
/**
* ManiaCode Element showing a Message
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ShowMessage implements Element {
/*
@ -18,7 +18,7 @@ class ShowMessage implements Element {
/**
* Create a new ShowMessage Element
*
*
* @param string $message (optional) Message Text
* @return \FML\ManiaCode\ShowMessage
*/
@ -45,16 +45,15 @@ class ShowMessage implements Element {
* @return \FML\ManiaCode\ShowMessage
*/
public function setMessage($message) {
$this->message = (string) $message;
$this->message = (string)$message;
return $this;
}
/**
*
* @see \FML\ManiaCode\Element::render()
*/
public function render(\DOMDocument $domDocument) {
$xmlElement = $domDocument->createElement($this->tagName);
$xmlElement = $domDocument->createElement($this->tagName);
$messageElement = $domDocument->createElement('message', $this->message);
$xmlElement->appendChild($messageElement);
return $xmlElement;

View File

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

View File

@ -33,6 +33,7 @@ class CheckBoxFeature extends ScriptFeature {
protected $quad = null;
/** @var Entry $entry */
protected $entry = null;
protected $default = null;
/** @var CheckBoxDesign $enabledDesign */
protected $enabledDesign = null;
/** @var CheckBoxDesign $disabledDesign */
@ -44,7 +45,7 @@ class CheckBoxFeature extends ScriptFeature {
* @param Quad $quad (optional) CheckBox Quad
* @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->setEntry($entry);
$this->setEnabledDesign(CheckBoxDesign::defaultEnabledDesign());
@ -98,10 +99,21 @@ class CheckBoxFeature extends ScriptFeature {
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
*
* @param CheckBoxDesign $checkBoxDesign CheckBox Design
* @param CheckBoxDesign $checkBoxDesign Enabled CheckBox Design
* @return \FML\Script\Features\CheckBoxFeature
*/
public function setEnabledDesign(CheckBoxDesign $checkBoxDesign) {
@ -112,7 +124,7 @@ class CheckBoxFeature extends ScriptFeature {
/**
* Set the Disabled Design
*
* @param CheckBoxDesign $checkBoxDesign CheckBox Design
* @param CheckBoxDesign $checkBoxDesign Disabled CheckBox Design
* @return \FML\Script\Features\CheckBoxFeature
*/
public function setDisabledDesign(CheckBoxDesign $checkBoxDesign) {
@ -126,7 +138,7 @@ class CheckBoxFeature extends ScriptFeature {
public function prepare(Script $script) {
if ($this->getQuad()) {
$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::MOUSECLICK, $this->buildClickScriptText());
}
@ -138,7 +150,7 @@ class CheckBoxFeature extends ScriptFeature {
*
* @return string
*/
protected function buildSetQuadDesignFunction() {
protected function buildUpdateQuadDesignFunction() {
$functionText = "
Void " . self::FUNCTION_UPDATE_QUAD_DESIGN . "(CMlQuad _Quad) {
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() {
$quadId = $this->getQuad()->getId(true);
$default = true;
$entryId = '';
if ($this->entry) {
$default = $this->entry->getDefault();
$entryId = $this->entry->getId(true);
}
$default = Builder::getBoolean($default);
$default = Builder::getBoolean($this->default);
$enabledDesignString = $this->enabledDesign->getDesignString();
$disabledDesignString = $this->disabledDesign->getDesignString();
$scriptText = "

View File

@ -7,9 +7,9 @@ use FML\Controls\Control;
/**
* A Page Control
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class PagingPage {
/*
@ -21,8 +21,8 @@ class PagingPage {
/**
* Construct a new Paging Page
*
* @param Control $control (optional) Page Control
* @param int $pageNumber (optional) Number of the Page
* @param Control $control (optional) Page Control
* @param int $pageNumber (optional) Number of the Page
*/
public function __construct(Control $control = null, $pageNumber = 1) {
$this->setControl($control);
@ -57,7 +57,7 @@ class PagingPage {
* @return \FML\Script\Features\PagingPage
*/
public function setPageNumber($pageNumber) {
$this->number = (int) $pageNumber;
$this->number = (int)$pageNumber;
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
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ScriptConstant {
/*
@ -19,7 +19,7 @@ class ScriptConstant {
/**
* Construct a new Script Constant
*
* @param string $name (optional) Constant Name
* @param string $name (optional) Constant Name
* @param string $value (optional) Constant Value
*/
public function __construct($name = null, $value = null) {

View File

@ -5,9 +5,9 @@ namespace FML\Script;
/**
* Class representing a Function of the ManiaLink Script
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class ScriptFunction {
/*
@ -34,7 +34,7 @@ class ScriptFunction {
* @return \FML\Script\ScriptFunction
*/
public function setName($name) {
$this->name = (string) $name;
$this->name = (string)$name;
return $this;
}
@ -45,7 +45,7 @@ class ScriptFunction {
* @return \FML\Script\ScriptFunction
*/
public function setText($text) {
$this->text = (string) $text;
$this->text = (string)$text;
return $this;
}

View File

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

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with Url Attributes
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Linkable {
@ -37,7 +37,7 @@ interface Linkable {
/**
* Set Manialink Id to use from the Dico
*
*
* @param string $manialinkId Manialink Id
* @return \FML\Types\Linkable
*/

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with AutoNewLine Attribute
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface NewLineable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with Media Attributes
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Playable {
@ -21,7 +21,7 @@ interface Playable {
/**
* Set Data Id to use from the Dico
*
*
* @param string $dataId
* @return \FML\Types\Playable
*/

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for renderable Elements
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Renderable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements supporting Script Features
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface ScriptFeatureable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with ScriptEvents Attribute
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Scriptable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with Style Attribute
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface Styleable {

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with SubStyle Attribute
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface SubStyleable {
@ -22,7 +22,7 @@ interface SubStyleable {
/**
* Set Style and SubStyle
*
* @param string $style Style Name
* @param string $style Style Name
* @param string $subStyle SubStyle Name
* @return \FML\Types\SubStyleable
*/

View File

@ -5,9 +5,9 @@ namespace FML\Types;
/**
* Interface for Elements with Formatable Text
*
* @author steeffeen
* @author steeffeen
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
interface TextFormatable {