\FML\Controls\QuadsQuad_Emblems

Quad class for 'Emblems' styles

Summary

Methods
Properties
Constants
getImageUrl()
setImage()
setImageUrl()
getImageId()
setImageId()
getImageFocusUrl()
setImageFocus()
setImageFocusUrl()
getImageFocusId()
setImageFocusId()
getColorize()
setColorize()
getModulizeColor()
setModulizeColor()
getAutoScale()
setAutoScale()
getAutoScaleFixedWidth()
setAutoScaleFixedWidth()
getKeepRatio()
setKeepRatio()
getOpacity()
setOpacity()
getBackgroundColor()
setBackgroundColor()
setBgColor()
getFocusBackgroundColor()
setFocusBackgroundColor()
getAction()
setAction()
getActionKey()
setActionKey()
getUrl()
setUrl()
getUrlId()
setUrlId()
getManialink()
setManialink()
getManialinkId()
setManialinkId()
getScriptEvents()
setScriptEvents()
getScriptAction()
setScriptAction()
getScriptActionParameters()
setScriptActionParameters()
getStyle()
setStyle()
getSubStyle()
setSubStyle()
setStyles()
getStyleSelected()
setStyleSelected()
applyCheckBoxDesign()
getTagName()
getManiaScriptClass()
render()
create()
__construct()
getId()
setId()
checkId()
getX()
setX()
getY()
setY()
getZ()
setZ()
setPosition()
getWidth()
setWidth()
getHeight()
setHeight()
setSize()
getHorizontalAlign()
setHAlign()
setHorizontalAlign()
getVerticalAlign()
setVAlign()
setVerticalAlign()
setAlign()
centerAlign()
resetAlign()
clearAlign()
getScale()
setScale()
getVisible()
setVisible()
getRotation()
setRotation()
getClasses()
addClass()
addClasses()
removeAllClasses()
hasDataAttribute()
getDataAttribute()
getDataAttributes()
addDataAttribute()
addDataAttributes()
setDataAttributes()
removeDataAttribute()
removeAllDataAttributes()
getScriptFeatures()
addScriptFeature()
addScriptFeatures()
removeScriptFeatures()
removeAllScriptFeatures()
addActionTriggerFeature()
addMapInfoFeature()
addPlayerProfileFeature()
addUISoundFeature()
addToggleFeature()
addTooltipFeature()
addTooltipLabelFeature()
addScriptText()
__toString()
No public properties found
KEEP_RATIO_INACTIVE
KEEP_RATIO_CLIP
KEEP_RATIO_FIT
CENTER
CENTER2
TOP
RIGHT
BOTTOM
LEFT
STYLE
SUBSTYLE_0
SUBSTYLE_1
SUBSTYLE_2
No protected methods found
$imageUrl
$imageId
$imageFocusUrl
$imageFocusId
$colorize
$modulizeColor
$autoScale
$autoScaleFixedWidth
$keepRatio
$opacity
$backgroundColor
$focusBackgroundColor
$action
$actionKey
$url
$urlId
$manialink
$manialinkId
$scriptEvents
$scriptAction
$scriptActionParameters
$style
$subStyle
$styleSelected
$controlId
$posX
$posY
$posZ
$width
$height
$horizontalAlign
$verticalAlign
$scale
$visible
$rotation
$classes
$dataAttributes
$scriptFeatures
N/A
No private methods found
No private properties found
N/A

Constants

KEEP_RATIO_INACTIVE

KEEP_RATIO_INACTIVE

KEEP_RATIO_CLIP

KEEP_RATIO_CLIP

KEEP_RATIO_FIT

KEEP_RATIO_FIT

CENTER

CENTER

CENTER2

CENTER2

TOP

TOP

RIGHT

RIGHT

BOTTOM

BOTTOM

LEFT

LEFT

STYLE

STYLE

SUBSTYLE_0

SUBSTYLE_0

SUBSTYLE_1

SUBSTYLE_1

SUBSTYLE_2

SUBSTYLE_2

Properties

$imageUrl

$imageUrl : string

Type

string — Image url

$imageId

$imageId : string

Type

string — Image ID

$imageFocusUrl

$imageFocusUrl : string

Type

string — Focus image url

$imageFocusId

$imageFocusId : string

Type

string — Focus image ID

$colorize

$colorize : string

Type

string — Colorize value

$modulizeColor

$modulizeColor : string

Type

string — Modulization color

$autoScale

$autoScale : boolean

Type

boolean — Automatic scaling

$autoScaleFixedWidth

$autoScaleFixedWidth : float

Type

float — Fixed width for automatic scaling

$keepRatio

$keepRatio : string

Type

string — Keep ratio mode

$opacity

$opacity : float

Type

float — Opacity

$backgroundColor

$backgroundColor : string

Type

string — Background color

$focusBackgroundColor

$focusBackgroundColor : string

Type

string — Focus background color

$action

$action : string

Type

string — Action name

$actionKey

$actionKey : integer

Type

integer — Action key

$url

$url : string

Type

string — Link url

$urlId

$urlId : string

Type

string — Link url ID

$manialink

$manialink : string

Type

string — Manialink

$manialinkId

$manialinkId : string

Type

string — Manialink ID

$scriptEvents

$scriptEvents : boolean

Type

boolean — Script events usage

$scriptAction

$scriptAction : string

Type

string — Script action

$scriptActionParameters

$scriptActionParameters : array<mixed,string>

Type

array<mixed,string> — Script action parameters

$style

$style : string

Type

string — Style

$subStyle

$subStyle : string

Type

string — SubStyle

$styleSelected

$styleSelected : boolean

Type

boolean — Style selected

$controlId

$controlId : string

Type

string — Control Id

$posX

$posX : float

Type

float — X position

$posY

$posY : float

Type

float — Y position

$posZ

$posZ : float

Type

float — Z position

$width

$width : float

Type

float — Width

$height

$height : float

Type

float — Height

$horizontalAlign

$horizontalAlign : string

Type

string — Horizontal alignment

$verticalAlign

$verticalAlign : string

Type

string — Vertical alignment

$scale

$scale : float

Type

float — Scale

$visible

$visible : boolean

Type

boolean — Visibility

$rotation

$rotation : float

Type

float — Rotation

$classes

$classes : array<mixed,string>

Type

array<mixed,string> — Style classes

$dataAttributes

$dataAttributes : array<mixed,mixed>

Type

array<mixed,mixed> — Data attributes

Methods

getImageUrl()

getImageUrl() : string

Get the image url

Returns

string

setImage()

setImage(  $imageUrl) 

Parameters

$imageUrl

setImageUrl()

setImageUrl(string  $imageUrl) : static

Set the image url

Parameters

string $imageUrl

Image url

Returns

static

getImageId()

getImageId() : string

Get the image id to use from Dico

Returns

string

setImageId()

setImageId(string  $imageId) : static

Set the image id to use from Dico

Parameters

string $imageId

Image id

Returns

static

getImageFocusUrl()

getImageFocusUrl() : string

Get the focus image url

Returns

string

setImageFocus()

setImageFocus(string  $imageFocusUrl) : static

Set the focus image url

Parameters

string $imageFocusUrl

Focus image url

Returns

static

setImageFocusUrl()

setImageFocusUrl(string  $imageFocusUrl) : static

Set the focus image url

Parameters

string $imageFocusUrl

Focus image url

Returns

static

getImageFocusId()

getImageFocusId() : string

Get the focus image id to use from Dico

Returns

string

setImageFocusId()

setImageFocusId(string  $imageFocusId) : static

Set the focus image id to use from Dico

Parameters

string $imageFocusId

Focus image id

Returns

static

getColorize()

getColorize() : string

Get the colorization

Returns

string

setColorize()

setColorize(string  $colorize) : static

Set the colorization

Parameters

string $colorize

Colorize value

Returns

static

getModulizeColor()

getModulizeColor() : string

Get the modulization color

Returns

string

setModulizeColor()

setModulizeColor(string  $modulizeColor) : static

Set the modulization color

Parameters

string $modulizeColor

Modulization color

Returns

static

getAutoScale()

getAutoScale() : boolean

Get the automatic image scaling

Returns

boolean

setAutoScale()

setAutoScale(boolean  $autoScale) : static

Set the automatic image scaling

Parameters

boolean $autoScale

If the image should scale automatically

Returns

static

getAutoScaleFixedWidth()

getAutoScaleFixedWidth() : float

Get the fixed width for automatic image scaling

Returns

float

setAutoScaleFixedWidth()

setAutoScaleFixedWidth(float  $autoScaleFixedWidth) : static

Set the fixed width for automatic image scaling

Parameters

float $autoScaleFixedWidth

Fixed width for automatic image scaling

Returns

static

getKeepRatio()

getKeepRatio() : string

Get the Keep Ratio mode

Returns

string

setKeepRatio()

setKeepRatio(string  $keepRatio) : static

Set the Keep Ratio mode

Parameters

string $keepRatio

Keep Ratio mode

Returns

static

getOpacity()

getOpacity() : float

Get the opacity

Returns

float

setOpacity()

setOpacity(float  $opacity) : static

Set the opacity

Parameters

float $opacity

Opacity value

Returns

static

getBackgroundColor()

getBackgroundColor() : string

Get the background color

Returns

string

setBackgroundColor()

setBackgroundColor(string  $backgroundColor) : static

Set the background color

Parameters

string $backgroundColor

Background color

Returns

static

setBgColor()

setBgColor(string  $bgColor) : static

Set the background color

Parameters

string $bgColor

Background color

Returns

static

getFocusBackgroundColor()

getFocusBackgroundColor() : string

Get the focus background color

Returns

string

setFocusBackgroundColor()

setFocusBackgroundColor(string  $focusBackgroundColor) : static

Set the focus background color

Parameters

string $focusBackgroundColor

Focus background color

Returns

static

getAction()

getAction() : string

Get the action

Returns

string

setAction()

setAction(string  $action) : static

Set the action

Parameters

string $action

Action name

Returns

static

getActionKey()

getActionKey() : integer

Get the action key

Returns

integer

setActionKey()

setActionKey(integer  $actionKey) : static

Set the action key

Parameters

integer $actionKey

Action key

Returns

static

getUrl()

getUrl() : string

Get the url

Returns

string

setUrl()

setUrl(string  $url) : static

Set the url

Parameters

string $url

Link url

Returns

static

getUrlId()

getUrlId() : string

Get the url id to use from Dico

Returns

string

setUrlId()

setUrlId(string  $urlId) : static

Set the url id to use from Dico

Parameters

string $urlId

Url id

Returns

static

getManialink()

getManialink() : string

Get the manialink

Returns

string

setManialink()

setManialink(string  $manialink) : static

Set the manialink

Parameters

string $manialink

Manialink name

Returns

static

getManialinkId()

getManialinkId() : string

Get the manialink id to use from Dico

Returns

string

setManialinkId()

setManialinkId(string  $manialinkId) : static

Set the manialink id to use from Dico

Parameters

string $manialinkId

Manialink id

Returns

static

getScriptEvents()

getScriptEvents() : boolean

Get script events

Returns

boolean

setScriptEvents()

setScriptEvents(boolean  $scriptEvents) : static

Set script events

Parameters

boolean $scriptEvents

If script events should be enabled

Returns

static

getScriptAction()

getScriptAction() : string

Get script action

Returns

string

setScriptAction()

setScriptAction(string  $scriptAction, array  $scriptActionParameters = null) : static

Set script action

Parameters

string $scriptAction

Script action to be triggered

array $scriptActionParameters

(optional) Script action parameters

Returns

static

getScriptActionParameters()

getScriptActionParameters() : array<mixed,string>

Get script action parameters

Returns

array<mixed,string>

setScriptActionParameters()

setScriptActionParameters(array  $scriptActionParameters = null) : static

Set script action parameters

Parameters

array $scriptActionParameters

(optional) Script action parameters

Returns

static

getStyle()

getStyle() : string

Get the style

Returns

string

setStyle()

setStyle(string  $style) : static

Set the style

Parameters

string $style

Style name

Returns

static

getSubStyle()

getSubStyle() : string

Get the sub style

Returns

string

setSubStyle()

setSubStyle(string  $subStyle) : static

Set the sub style

Parameters

string $subStyle

SubStyle name

Returns

static

setStyles()

setStyles(string  $style, string  $subStyle) : static

Set the style and the sub style

Parameters

string $style

Style name

string $subStyle

SubStyle name

Returns

static

getStyleSelected()

getStyleSelected() : boolean

Get selected style

Returns

boolean

setStyleSelected()

setStyleSelected(boolean  $styleSelected) : static

Set selected style

Parameters

boolean $styleSelected

If the quad should be styled selected

Returns

static

applyCheckBoxDesign()

applyCheckBoxDesign(\FML\Components\CheckBoxDesign  $checkBoxDesign) : static

Apply the CheckBox Design

Parameters

\FML\Components\CheckBoxDesign $checkBoxDesign

CheckBox Design

Returns

static

getTagName()

getTagName() : string

Get the tag name of the Control

Returns

string

getManiaScriptClass()

getManiaScriptClass() : string

Get the ManiaScript class of the Control

Returns

string

render()

render(\DOMDocument  $domDocument) : \DOMElement

Render the XML element

Parameters

\DOMDocument $domDocument

DOMDocument for which the XML element should be rendered

Returns

\DOMElement

create()

create(string  $controlId = null) : static

Create a new Control

Parameters

string $controlId

(optional) Control Id

Returns

static

__construct()

__construct(string  $controlId = null) 

Construct a new Control

Parameters

string $controlId

(optional) Control Id

getId()

getId() : string

Get the Id

Returns

string

setId()

setId(  $controlId) : static

Set the Id

Parameters

$controlId

Returns

static

checkId()

checkId() : string

Check and return the Id

Returns

string

getX()

getX() : float

Get the X position

Returns

float

setX()

setX(float  $posX) : static

Set the X position

Parameters

float $posX

Horizontal position

Returns

static

getY()

getY() : float

Get the Y position

Returns

float

setY()

setY(float  $posY) : static

Set the Y position

Parameters

float $posY

Vertical position

Returns

static

getZ()

getZ() : float

Get the Z position

Returns

float

setZ()

setZ(float  $posZ) : static

Set the Z position

Parameters

float $posZ

Depth

Returns

static

setPosition()

setPosition(float  $posX, float  $posY, float  $posZ = null) : static

Set the Control position

Parameters

float $posX

Horizontal position

float $posY

Vertical position

float $posZ

(optional) Depth

Returns

static

getWidth()

getWidth() : float

Get the width

Returns

float

setWidth()

setWidth(float  $width) : static

Set the width

Parameters

float $width

Control width

Returns

static

getHeight()

getHeight() : float

Get the height

Returns

float

setHeight()

setHeight(float  $height) : static

Set the height

Parameters

float $height

Control height

Returns

static

setSize()

setSize(float  $width, float  $height) : static

Set the size

Parameters

float $width

Control width

float $height

Control height

Returns

static

getHorizontalAlign()

getHorizontalAlign() : string

Get the horizontal alignment

Returns

string

setHAlign()

setHAlign(string  $horizontalAlign) : static

Set the horizontal alignment

Parameters

string $horizontalAlign

Horizontal alignment

Returns

static

setHorizontalAlign()

setHorizontalAlign(string  $horizontalAlign) : static

Set the horizontal alignment

Parameters

string $horizontalAlign

Horizontal alignment

Returns

static

getVerticalAlign()

getVerticalAlign() : string

Get the vertical alignment

Returns

string

setVAlign()

setVAlign(string  $verticalAlign) : static

Set the vertical alignment

Parameters

string $verticalAlign

Vertical alignment

Returns

static

setVerticalAlign()

setVerticalAlign(string  $verticalAlign) : static

Set the vertical alignment

Parameters

string $verticalAlign

Vertical alignment

Returns

static

setAlign()

setAlign(string  $horizontalAlign, string  $verticalAlign) : static

Set the horizontal and the vertical alignment

Parameters

string $horizontalAlign

Horizontal alignment

string $verticalAlign

Vertical alignment

Returns

static

centerAlign()

centerAlign() : static

Center the alignment

Returns

static

resetAlign()

resetAlign() : static

Reset the alignment

Returns

static

clearAlign()

clearAlign() : static

Clear the alignment

Returns

static

getScale()

getScale() : float

Get the scale

Returns

float

setScale()

setScale(float  $scale) : static

Set the scale

Parameters

float $scale

Control scale

Returns

static

getVisible()

getVisible() : boolean

Get the visibility

Returns

boolean

setVisible()

setVisible(boolean  $visible) : static

Set the visibility

Parameters

boolean $visible

If the Control should be visible

Returns

static

getRotation()

getRotation() : float

Get the rotation

Returns

float

setRotation()

setRotation(float  $rotation) : static

Set the rotation

Parameters

float $rotation

Control rotation

Returns

static

getClasses()

getClasses() : array<mixed,string>

Get style classes

Returns

array<mixed,string>

addClass()

addClass(string  $class) : static

Add a new style class

Parameters

string $class

Style class

Returns

static

addClasses()

addClasses(array<mixed,string>  $classes) : static

Add new style classes

Parameters

array<mixed,string> $classes

Style classes

Returns

static

removeAllClasses()

removeAllClasses() : static

Remove all style classes

Returns

static

hasDataAttribute()

hasDataAttribute(string  $name) : boolean

Check if a data attribute is set

Parameters

string $name

Name

Returns

boolean

getDataAttribute()

getDataAttribute(string  $name) : mixed

Get data attribute

Parameters

string $name

Name

Returns

mixed

getDataAttributes()

getDataAttributes() : array<mixed,mixed>

Get data attributes

Returns

array<mixed,mixed>

addDataAttribute()

addDataAttribute(string  $name, mixed  $value) : static

Add data attribute

Parameters

string $name

Name

mixed $value

Value

Returns

static

addDataAttributes()

addDataAttributes(array<mixed,mixed>  $dataAttributes) : static

Add multiple data attributes

Parameters

array<mixed,mixed> $dataAttributes

Data attributes

Returns

static

setDataAttributes()

setDataAttributes(array<mixed,mixed>  $dataAttributes) : static

Set data attributes (replacing all previous attributes)

Parameters

array<mixed,mixed> $dataAttributes

Data attributes

Returns

static

removeDataAttribute()

removeDataAttribute(string  $name) : static

Remove data attribute

Parameters

string $name

Name

Returns

static

removeAllDataAttributes()

removeAllDataAttributes() : static

Remove all data attributes

Returns

static

getScriptFeatures()

getScriptFeatures() : array<mixed,\FML\Script\Features\ScriptFeature>

Get the Script Features

Returns

array<mixed,\FML\Script\Features\ScriptFeature>

addScriptFeature()

addScriptFeature(\FML\Script\Features\ScriptFeature  $scriptFeature) : static

Add a new Script Feature

Parameters

\FML\Script\Features\ScriptFeature $scriptFeature

Script Feature

Returns

static

addScriptFeatures()

addScriptFeatures(array<mixed,\FML\Script\Features\ScriptFeature>  $scriptFeatures) : static

Add new Script Features

Parameters

array<mixed,\FML\Script\Features\ScriptFeature> $scriptFeatures

Script Features

Returns

static

removeScriptFeatures()

removeScriptFeatures() : static

Remove all Script Features

Returns

static

removeAllScriptFeatures()

removeAllScriptFeatures() : static

Remove all Script Features

Returns

static

addActionTriggerFeature()

addActionTriggerFeature(string  $actionName, string  $eventLabel = \FML\Script\ScriptLabel::MOUSECLICK) : static

Add a dynamic Action Trigger

Parameters

string $actionName

Action to trigger

string $eventLabel

(optional) Event on which the action is triggered

Returns

static

addMapInfoFeature()

addMapInfoFeature(string  $eventLabel = \FML\Script\ScriptLabel::MOUSECLICK) : static

Add a dynamic Feature opening the current map info

Parameters

string $eventLabel

(optional) Event on which the map info will be opened

Returns

static

addPlayerProfileFeature()

addPlayerProfileFeature(string  $login, string  $eventLabel = \FML\Script\ScriptLabel::MOUSECLICK) : static

Add a dynamic Feature to open a specific player profile

Parameters

string $login

Login of the player

string $eventLabel

(optional) Event on which the player profile will be opened

Returns

static

addUISoundFeature()

addUISoundFeature(string  $soundName, integer  $variant, string  $eventLabel = \FML\Script\ScriptLabel::MOUSECLICK) : static

Add a dynamic Feature playing a UISound

Parameters

string $soundName

UISound name

integer $variant

(optional) Sound variant

string $eventLabel

(optional) Event on which the sound will be played

Returns

static

addToggleFeature()

addToggleFeature(\FML\Controls\Control  $toggledControl, string  $labelName = \FML\Script\ScriptLabel::MOUSECLICK, boolean  $onlyShow = false, boolean  $onlyHide = false) : static

Add a dynamic Feature toggling another Control

Parameters

\FML\Controls\Control $toggledControl

Toggled Control

string $labelName

(optional) Script label name

boolean $onlyShow

(optional) If it should only show the Control but not toggle

boolean $onlyHide

(optional) If it should only hide the Control but not toggle

Returns

static

addTooltipFeature()

addTooltipFeature(\FML\Controls\Control  $tooltipControl, boolean  $stayOnClick = false, boolean  $invert = false) : static

Add a dynamic Feature showing a Tooltip on hovering

Parameters

\FML\Controls\Control $tooltipControl

Tooltip Control

boolean $stayOnClick

(optional) Whether the Tooltip should stay on click

boolean $invert

(optional) Whether the visibility toggling should be inverted

Returns

static

addTooltipLabelFeature()

addTooltipLabelFeature(\FML\Controls\Label  $tooltipLabel, string  $text, boolean  $stayOnClick = false, boolean  $invert = false) : static

Add a dynamic Feature showing a Tooltip on hovering

Parameters

\FML\Controls\Label $tooltipLabel

Tooltip Label

string $text

Text to display on the Tooltip Label

boolean $stayOnClick

(optional) Whether the Tooltip should stay on click

boolean $invert

(optional) Whether the visibility toggling should be inverted

Returns

static

addScriptText()

addScriptText(string  $scriptText, string  $label = \FML\Script\ScriptLabel::MOUSECLICK) : static

Add a custom Control Script text part

Parameters

string $scriptText

Script text

string $label

(optional) Script label name

Returns

static

__toString()

__toString() : string

Get the string representation

Returns

string