FML Update
This commit is contained in:
@ -47,7 +47,7 @@ class ActionTrigger extends ScriptFeature {
|
||||
* Set the action to trigger
|
||||
*
|
||||
* @param string $actionName
|
||||
* @return \FML\Script\Features\ActionTrigger|static
|
||||
* @return static
|
||||
*/
|
||||
public function setActionName($actionName) {
|
||||
$this->actionName = (string)$actionName;
|
||||
@ -58,7 +58,7 @@ class ActionTrigger extends ScriptFeature {
|
||||
* Set the Control
|
||||
*
|
||||
* @param Control $control Action Control
|
||||
* @return \FML\Script\Features\ActionTrigger|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -73,7 +73,7 @@ class ActionTrigger extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label name
|
||||
* @return \FML\Script\Features\ActionTrigger|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
|
@ -64,7 +64,7 @@ class CheckBoxFeature extends ScriptFeature {
|
||||
* Set the CheckBox Quad
|
||||
*
|
||||
* @param Quad $quad CheckBox Quad
|
||||
* @return \FML\Script\Features\CheckBoxFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setQuad(Quad $quad) {
|
||||
$this->quad = $quad->checkId()->setScriptEvents(true);
|
||||
@ -84,7 +84,7 @@ class CheckBoxFeature extends ScriptFeature {
|
||||
* Set the CheckBox Entry
|
||||
*
|
||||
* @param Entry $entry CheckBox Entry
|
||||
* @return \FML\Script\Features\CheckBoxFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setEntry(Entry $entry) {
|
||||
$this->entry = $entry->checkId();
|
||||
@ -104,7 +104,7 @@ class CheckBoxFeature extends ScriptFeature {
|
||||
* Set the default value
|
||||
*
|
||||
* @param bool $default Default value
|
||||
* @return \FML\Script\Features\CheckBoxFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setDefault($default) {
|
||||
$this->default = (bool)$default;
|
||||
@ -115,7 +115,7 @@ class CheckBoxFeature extends ScriptFeature {
|
||||
* Set the enabled Design
|
||||
*
|
||||
* @param CheckBoxDesign $checkBoxDesign Enabled CheckBox Design
|
||||
* @return \FML\Script\Features\CheckBoxFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setEnabledDesign(CheckBoxDesign $checkBoxDesign) {
|
||||
$this->enabledDesign = $checkBoxDesign;
|
||||
@ -126,7 +126,7 @@ class CheckBoxFeature extends ScriptFeature {
|
||||
* Set the disabled Design
|
||||
*
|
||||
* @param CheckBoxDesign $checkBoxDesign Disabled CheckBox Design
|
||||
* @return \FML\Script\Features\CheckBoxFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setDisabledDesign(CheckBoxDesign $checkBoxDesign) {
|
||||
$this->disabledDesign = $checkBoxDesign;
|
||||
|
@ -42,7 +42,7 @@ class Clock extends ScriptFeature {
|
||||
* Set the Label
|
||||
*
|
||||
* @param Label $label Clock Label
|
||||
* @return \FML\Script\Features\Clock|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabel(Label $label) {
|
||||
$this->label = $label->checkId();
|
||||
@ -53,7 +53,7 @@ class Clock extends ScriptFeature {
|
||||
* Set whether seconds should be shown
|
||||
*
|
||||
* @param bool $showSeconds Whether seconds should be shown
|
||||
* @return \FML\Script\Features\Clock|static
|
||||
* @return static
|
||||
*/
|
||||
public function setShowSeconds($showSeconds) {
|
||||
$this->showSeconds = (bool)$showSeconds;
|
||||
@ -64,7 +64,7 @@ class Clock extends ScriptFeature {
|
||||
* Set whether the full date should be shown
|
||||
*
|
||||
* @param bool $showFullDate Whether the full date should be shown
|
||||
* @return \FML\Script\Features\Clock|static
|
||||
* @return static
|
||||
*/
|
||||
public function setShowFullDate($showFullDate) {
|
||||
$this->showFullDate = (bool)$showFullDate;
|
||||
|
@ -40,7 +40,7 @@ class ControlScript extends ScriptFeature {
|
||||
* Set the Control
|
||||
*
|
||||
* @param Control $control Event Control
|
||||
* @return \FML\Script\Features\ControlScript|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$this->control = $control->checkId();
|
||||
@ -52,7 +52,7 @@ class ControlScript extends ScriptFeature {
|
||||
* Set the script text
|
||||
*
|
||||
* @param string $text Script text
|
||||
* @return \FML\Script\Features\ControlScript|static
|
||||
* @return static
|
||||
*/
|
||||
public function setText($text) {
|
||||
$this->text = (string)$text;
|
||||
@ -63,7 +63,7 @@ class ControlScript extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label name
|
||||
* @return \FML\Script\Features\ControlScript|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
|
@ -40,7 +40,7 @@ class EntrySubmit extends ScriptFeature {
|
||||
* Set the Entry
|
||||
*
|
||||
* @param Entry $entry Entry Control
|
||||
* @return \FML\Script\Features\EntrySubmit|static
|
||||
* @return static
|
||||
*/
|
||||
public function setEntry(Entry $entry) {
|
||||
$this->entry = $entry->checkId()->setScriptEvents(true);
|
||||
@ -51,7 +51,7 @@ class EntrySubmit extends ScriptFeature {
|
||||
* Set the submit url
|
||||
*
|
||||
* @param string $url Submit url
|
||||
* @return \FML\Script\Features\EntrySubmit|static
|
||||
* @return static
|
||||
*/
|
||||
public function setUrl($url) {
|
||||
$this->url = (string)$url;
|
||||
|
@ -42,7 +42,7 @@ class KeyAction extends ScriptFeature {
|
||||
* Set the action to trigger
|
||||
*
|
||||
* @param string $actionName Triggered action
|
||||
* @return \FML\Script\Features\KeyAction|static
|
||||
* @return static
|
||||
*/
|
||||
public function setActionName($actionName) {
|
||||
$this->actionName = (string)$actionName;
|
||||
@ -53,7 +53,7 @@ class KeyAction extends ScriptFeature {
|
||||
* Set the key name for triggering the action
|
||||
*
|
||||
* @param string $keyName Key Name
|
||||
* @return \FML\Script\Features\KeyAction|static
|
||||
* @return static
|
||||
*/
|
||||
public function setKeyName($keyName) {
|
||||
$this->keyName = (string)$keyName;
|
||||
@ -66,7 +66,7 @@ class KeyAction extends ScriptFeature {
|
||||
* Set the key code for triggering the action
|
||||
*
|
||||
* @param int $keyCode Key Code
|
||||
* @return \FML\Script\Features\KeyAction|static
|
||||
* @return static
|
||||
*/
|
||||
public function setKeyCode($keyCode) {
|
||||
$this->keyCode = (int)$keyCode;
|
||||
@ -79,7 +79,7 @@ class KeyAction extends ScriptFeature {
|
||||
* Set the char to press for triggering the action
|
||||
*
|
||||
* @param string $charPressed Pressed char
|
||||
* @return \FML\Script\Features\KeyAction|static
|
||||
* @return static
|
||||
*/
|
||||
public function setCharPressed($charPressed) {
|
||||
$this->charPressed = (string)$charPressed;
|
||||
|
@ -38,7 +38,7 @@ class MapInfo extends ScriptFeature {
|
||||
* Set the Control
|
||||
*
|
||||
* @param Control $control Map Info Control
|
||||
* @return \FML\Script\Features\MapInfo|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -53,7 +53,7 @@ class MapInfo extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label name
|
||||
* @return \FML\Script\Features\MapInfo|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
|
@ -46,7 +46,7 @@ class Menu extends ScriptFeature {
|
||||
* @param Control $item Item Control in the Menu bar
|
||||
* @param Control $control Toggled Menu Control
|
||||
* @param bool $isStartElement (optional) Whether the Menu should start with this Element
|
||||
* @return \FML\Script\Features\Menu|static
|
||||
* @return static
|
||||
*/
|
||||
public function addElement(Control $item, Control $control, $isStartElement = false) {
|
||||
$menuElement = new MenuElement($item, $control);
|
||||
@ -59,7 +59,7 @@ class Menu extends ScriptFeature {
|
||||
*
|
||||
* @param MenuElement $menuElement Menu Element
|
||||
* @param bool $isStartElement (optional) Whether the Menu should start with this Element
|
||||
* @return \FML\Script\Features\Menu|static
|
||||
* @return static
|
||||
*/
|
||||
public function appendElement(MenuElement $menuElement, $isStartElement = false) {
|
||||
if (!in_array($menuElement, $this->elements, true)) {
|
||||
@ -77,7 +77,7 @@ class Menu extends ScriptFeature {
|
||||
* Set the Element to start with
|
||||
*
|
||||
* @param MenuElement $startElement Starting Element
|
||||
* @return \FML\Script\Features\Menu|static
|
||||
* @return static
|
||||
*/
|
||||
public function setStartElement(MenuElement $startElement) {
|
||||
$this->startElement = $startElement;
|
||||
|
@ -38,7 +38,7 @@ class MenuElement {
|
||||
* Set the Item Control
|
||||
*
|
||||
* @param Control $item Item Control in the Menu bar
|
||||
* @return \FML\Script\Features\MenuElement|static
|
||||
* @return static
|
||||
*/
|
||||
public function setItem(Control $item) {
|
||||
$item->checkId();
|
||||
@ -62,7 +62,7 @@ class MenuElement {
|
||||
* Set the Menu Control
|
||||
*
|
||||
* @param Control $control Toggled Menu Control
|
||||
* @return \FML\Script\Features\MenuElement|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$this->control = $control->checkId();
|
||||
|
@ -54,7 +54,7 @@ class Paging extends ScriptFeature {
|
||||
*
|
||||
* @param Control $pageControl Page Control
|
||||
* @param string $pageNumber (optional) Page number
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function addPage(Control $pageControl, $pageNumber = null) {
|
||||
if (is_null($pageNumber)) {
|
||||
@ -69,7 +69,7 @@ class Paging extends ScriptFeature {
|
||||
* Append a Page
|
||||
*
|
||||
* @param PagingPage $page Paging Page
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function appendPage(PagingPage $page) {
|
||||
if (!in_array($page, $this->pages, true)) {
|
||||
@ -83,7 +83,7 @@ class Paging extends ScriptFeature {
|
||||
*
|
||||
* @param Control $buttonControl Button used for browsing
|
||||
* @param int $browseAction (optional) Number of browsed Pages per click
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function addButton(Control $buttonControl, $browseAction = null) {
|
||||
if (is_null($browseAction)) {
|
||||
@ -103,7 +103,7 @@ class Paging extends ScriptFeature {
|
||||
* Append a Button to browse through Pages
|
||||
*
|
||||
* @param PagingButton $button Paging Button
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function appendButton(PagingButton $button) {
|
||||
if (!in_array($button, $this->buttons, true)) {
|
||||
@ -116,7 +116,7 @@ class Paging extends ScriptFeature {
|
||||
* Set the Label showing the Page number
|
||||
*
|
||||
* @param Label $label Page number Label
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabel(Label $label) {
|
||||
$this->label = $label->checkId();
|
||||
@ -127,7 +127,7 @@ class Paging extends ScriptFeature {
|
||||
* Set the Start Page number
|
||||
*
|
||||
* @param int $startPageNumber Page number to start with
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setStartPageNumber($startPageNumber) {
|
||||
$this->startPageNumber = (int)$startPageNumber;
|
||||
@ -137,7 +137,7 @@ class Paging extends ScriptFeature {
|
||||
* Set a custom maximum Page number for using chunks
|
||||
*
|
||||
* @param int $maxPageNumber Custom maximum Page number
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setCustomMaxPageNumber($maxPageNumber) {
|
||||
$this->customMaxPageNumber = (int)$maxPageNumber;
|
||||
@ -148,7 +148,7 @@ class Paging extends ScriptFeature {
|
||||
* Set the action triggered when the previous chunk is needed
|
||||
*
|
||||
* @param string $previousChunkAction Triggered action
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setPreviousChunkAction($previousChunkAction) {
|
||||
$this->previousChunkAction = (string)$previousChunkAction;
|
||||
@ -159,7 +159,7 @@ class Paging extends ScriptFeature {
|
||||
* Set the action triggered when the next chunk is needed
|
||||
*
|
||||
* @param string $nextChunkAction Triggered action
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setNextChunkAction($nextChunkAction) {
|
||||
$this->nextChunkAction = (string)$nextChunkAction;
|
||||
@ -170,7 +170,7 @@ class Paging extends ScriptFeature {
|
||||
* Set the actions triggered when another chunk is needed
|
||||
*
|
||||
* @param string $chunkAction Triggered action
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setChunkActions($chunkAction) {
|
||||
$this->setNextChunkAction($chunkAction);
|
||||
@ -182,7 +182,7 @@ class Paging extends ScriptFeature {
|
||||
* Set if the chunk action should get the needed Page number appended
|
||||
*
|
||||
* @param bool $appendPageNumber Whether to append the needed Page number
|
||||
* @return \FML\Script\Features\Paging|static
|
||||
* @return static
|
||||
*/
|
||||
public function setChunkActionAppendsPageNumber($appendPageNumber) {
|
||||
$this->chunkActionAppendsPageNumber = (bool)$appendPageNumber;
|
||||
|
@ -39,7 +39,7 @@ class PagingButton {
|
||||
* Set the Button Control
|
||||
*
|
||||
* @param Control $control Browse Control
|
||||
* @return \FML\Script\Features\PagingButton|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -63,7 +63,7 @@ class PagingButton {
|
||||
* Set the browse action
|
||||
*
|
||||
* @param int $browseAction Number of browsed Pages per click
|
||||
* @return \FML\Script\Features\PagingButton|static
|
||||
* @return static
|
||||
*/
|
||||
public function setBrowseAction($browseAction) {
|
||||
$this->browseAction = (int)$browseAction;
|
||||
|
@ -36,7 +36,7 @@ class PagingPage {
|
||||
* Set the Page Control
|
||||
*
|
||||
* @param Control $control Page Control
|
||||
* @return \FML\Script\Features\PagingPage|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$this->control = $control->checkId();
|
||||
@ -56,7 +56,7 @@ class PagingPage {
|
||||
* Set the Page number
|
||||
*
|
||||
* @param int $pageNumber Number of the Page
|
||||
* @return \FML\Script\Features\PagingPage|static
|
||||
* @return static
|
||||
*/
|
||||
public function setPageNumber($pageNumber) {
|
||||
$this->number = (int)$pageNumber;
|
||||
|
@ -43,7 +43,7 @@ class PlayerProfile extends ScriptFeature {
|
||||
* Set the login of the opened player
|
||||
*
|
||||
* @param string $login Player login
|
||||
* @return \FML\Script\Features\PlayerProfile|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLogin($login) {
|
||||
$this->login = $login;
|
||||
@ -54,7 +54,7 @@ class PlayerProfile extends ScriptFeature {
|
||||
* Set the Control
|
||||
*
|
||||
* @param Control $control Profile Control
|
||||
* @return \FML\Script\Features\PlayerProfile|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -69,7 +69,7 @@ class PlayerProfile extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label name
|
||||
* @return \FML\Script\Features\PlayerProfile|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
|
@ -13,10 +13,10 @@ use FML\Types\ScriptFeatureable;
|
||||
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
|
||||
*/
|
||||
abstract class ScriptFeature {
|
||||
|
||||
/**
|
||||
* Collect the Script Features of the given objects
|
||||
*
|
||||
* @param ScriptFeatureable $objects (optional) Various amount of ScriptFeatureable objects
|
||||
* @return ScriptFeature[]
|
||||
*/
|
||||
public static function collect() {
|
||||
@ -36,7 +36,7 @@ abstract class ScriptFeature {
|
||||
* Prepare the given Script for rendering by adding the needed Labels, etc.
|
||||
*
|
||||
* @param Script $script Script to prepare
|
||||
* @return \FML\Script\Features\ScriptFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public abstract function prepare(Script $script);
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class Toggle extends ScriptFeature {
|
||||
* Set the toggling Control
|
||||
*
|
||||
* @param Control $control Toggling Control
|
||||
* @return \FML\Script\Features\Toggle|static
|
||||
* @return static
|
||||
*/
|
||||
public function setTogglingControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -67,7 +67,7 @@ class Toggle extends ScriptFeature {
|
||||
* Set the toggled Control
|
||||
*
|
||||
* @param Control $control Toggling Control
|
||||
* @return \FML\Script\Features\Toggle|static
|
||||
* @return static
|
||||
*/
|
||||
public function setToggledControl(Control $control) {
|
||||
$this->toggledControl = $control->checkId();
|
||||
@ -78,7 +78,7 @@ class Toggle extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label Name
|
||||
* @return \FML\Script\Features\Toggle|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
@ -89,7 +89,7 @@ class Toggle extends ScriptFeature {
|
||||
* Set to only show
|
||||
*
|
||||
* @param bool $onlyShow Whether it should only show the Control but not toggle
|
||||
* @return \FML\Script\Features\Toggle|static
|
||||
* @return static
|
||||
*/
|
||||
public function setOnlyShow($onlyShow) {
|
||||
$this->onlyShow = (bool)$onlyShow;
|
||||
@ -100,7 +100,7 @@ class Toggle extends ScriptFeature {
|
||||
* Set to only hide
|
||||
*
|
||||
* @param bool $onlyHide Whether it should only hide the Control but not toggle
|
||||
* @return \FML\Script\Features\Toggle|static
|
||||
* @return static
|
||||
*/
|
||||
public function setOnlyHide($onlyHide) {
|
||||
$this->onlyHide = (bool)$onlyHide;
|
||||
|
@ -55,7 +55,7 @@ class Tooltip extends ScriptFeature {
|
||||
* Set the Hover Control
|
||||
*
|
||||
* @param Control $hoverControl Hover Control
|
||||
* @return \FML\Script\Features\Tooltip|static
|
||||
* @return static
|
||||
*/
|
||||
public function setHoverControl(Control $hoverControl) {
|
||||
$hoverControl->checkId();
|
||||
@ -70,7 +70,7 @@ class Tooltip extends ScriptFeature {
|
||||
* Set the Tooltip Control
|
||||
*
|
||||
* @param Control $tooltipControl Tooltip Control
|
||||
* @return \FML\Script\Features\Tooltip|static
|
||||
* @return static
|
||||
*/
|
||||
public function setTooltipControl(Control $tooltipControl) {
|
||||
$this->tooltipControl = $tooltipControl->checkId()->setVisible(false);
|
||||
@ -81,7 +81,7 @@ class Tooltip extends ScriptFeature {
|
||||
* Set to only show
|
||||
*
|
||||
* @param bool $stayOnClick (optional) Whether the Tooltip should stay on click
|
||||
* @return \FML\Script\Features\Tooltip|static
|
||||
* @return static
|
||||
*/
|
||||
public function setStayOnClick($stayOnClick) {
|
||||
$this->stayOnClick = (bool)$stayOnClick;
|
||||
@ -92,7 +92,7 @@ class Tooltip extends ScriptFeature {
|
||||
* Set to only hide
|
||||
*
|
||||
* @param bool $invert (optional) Whether the visibility toggling should be inverted
|
||||
* @return \FML\Script\Features\Tooltip|static
|
||||
* @return static
|
||||
*/
|
||||
public function setInvert($invert) {
|
||||
$this->invert = (bool)$invert;
|
||||
@ -103,7 +103,7 @@ class Tooltip extends ScriptFeature {
|
||||
* Set text
|
||||
*
|
||||
* @param string $text (optional) Text to display if the TooltipControl is a Label
|
||||
* @return \FML\Script\Features\Tooltip|static
|
||||
* @return static
|
||||
*/
|
||||
public function setText($text) {
|
||||
$this->text = (string)$text;
|
||||
|
@ -82,7 +82,7 @@ class UISound extends ScriptFeature {
|
||||
* Set the sound to play
|
||||
*
|
||||
* @param string $soundName Sound name
|
||||
* @return \FML\Script\Features\UISound|static
|
||||
* @return static
|
||||
*/
|
||||
public function setSoundName($soundName) {
|
||||
$this->soundName = (string)$soundName;
|
||||
@ -93,7 +93,7 @@ class UISound extends ScriptFeature {
|
||||
* Set the Control
|
||||
*
|
||||
* @param Control $control Action Control
|
||||
* @return \FML\Script\Features\UISound|static
|
||||
* @return static
|
||||
*/
|
||||
public function setControl(Control $control) {
|
||||
$control->checkId();
|
||||
@ -108,7 +108,7 @@ class UISound extends ScriptFeature {
|
||||
* Set the sound variant
|
||||
*
|
||||
* @param int $variant Sound variant
|
||||
* @return \FML\Script\Features\UISound|static
|
||||
* @return static
|
||||
*/
|
||||
public function setVariant($variant) {
|
||||
$this->variant = (int)$variant;
|
||||
@ -119,7 +119,7 @@ class UISound extends ScriptFeature {
|
||||
* Set the volume
|
||||
*
|
||||
* @param float $volume Sound volume
|
||||
* @return \FML\Script\Features\UISound|static
|
||||
* @return static
|
||||
*/
|
||||
public function setVolume($volume) {
|
||||
$this->volume = (float)$volume;
|
||||
@ -130,7 +130,7 @@ class UISound extends ScriptFeature {
|
||||
* Set the label name
|
||||
*
|
||||
* @param string $labelName Script Label name
|
||||
* @return \FML\Script\Features\UISound|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabelName($labelName) {
|
||||
$this->labelName = (string)$labelName;
|
||||
|
@ -62,7 +62,7 @@ class ValuePickerFeature extends ScriptFeature {
|
||||
* Set the ValuePicker Label
|
||||
*
|
||||
* @param Label $label ValuePicker Label
|
||||
* @return \FML\Script\Features\ValuePickerFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setLabel(Label $label) {
|
||||
$this->label = $label->checkId()->setScriptEvents(true);
|
||||
@ -82,7 +82,7 @@ class ValuePickerFeature extends ScriptFeature {
|
||||
* Set the hidden Entry
|
||||
*
|
||||
* @param Entry $entry Hidden Entry
|
||||
* @return \FML\Script\Features\ValuePickerFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setEntry(Entry $entry) {
|
||||
$this->entry = $entry->checkId();
|
||||
@ -102,7 +102,7 @@ class ValuePickerFeature extends ScriptFeature {
|
||||
* Set the possible values
|
||||
*
|
||||
* @param array $values Possible values
|
||||
* @return \FML\Script\Features\ValuePickerFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setValues(array $values) {
|
||||
$this->values = array();
|
||||
@ -116,7 +116,7 @@ class ValuePickerFeature extends ScriptFeature {
|
||||
* Set the default value
|
||||
*
|
||||
* @param string $default Default value
|
||||
* @return \FML\Script\Features\ValuePickerFeature|static
|
||||
* @return static
|
||||
*/
|
||||
public function setDefault($default) {
|
||||
$this->default = (string)$default;
|
||||
|
Reference in New Issue
Block a user