Class Element
Can be drawn onto the Screen. This is mainly used by ManiaLive.
- ManiaLib\Gui\Component
- ManiaLib\Gui\Element implements ManiaLib\Gui\Drawable
Direct known subclasses
ManiaLib\Gui\Elements\Format, ManiaLib\Gui\Elements\IncludeManialink, ManiaLib\Gui\Elements\Music, ManiaLib\Gui\Elements\Quad, ManiaLib\Gui\Elements\SpacerIndirect known subclasses
ManiaLib\Gui\Cards\Data, ManiaLib\Gui\Cards\Dialogs\OneButton, ManiaLib\Gui\Elements\BgsChallengeMedals, ManiaLib\Gui\Elements\BgsPlayerCard, ManiaLib\Gui\Elements\Button, ManiaLib\Gui\Elements\Copilot, ManiaLib\Gui\Elements\Entry, ManiaLib\Gui\Elements\FileEntry, ManiaLib\Gui\Elements\Icon, ManiaLib\Gui\Elements\Icons128x128_1, ManiaLib\Gui\Elements\Icons128x128_Blink, ManiaLib\Gui\Elements\Icons128x32_1, ManiaLib\Gui\Cards\Dialogs\TwoButtons, ManiaLib\Gui\Elements\Icons321Go, ManiaLib\Gui\Elements\Icons64x64_1, ManiaLib\Gui\Elements\Label, ManiaLib\Gui\Elements\ManiaPlanetLogos, ManiaLib\Gui\Elements\MedalsBig, ManiaLib\Gui\Elements\UIConstructionSimple_Buttons, ManiaLib\Gui\Elements\Video, ManiaLib\Gui\Cards\Navigation\Button, ManiaLib\Gui\Cards\Navigation\Menu, ManiaLib\Gui\Cards\Panel, ManiaLib\Gui\Elements\Audio, ManiaLib\Gui\Elements\BgRaceScore2, ManiaLib\Gui\Elements\Bgs1, ManiaLib\Gui\Elements\Bgs1InRace
public
|
#
__construct( float $sizeX = 20, float $sizeY = 20 )
Manialink element default constructor. It's common to specify the size of the element in the constructor. |
public
|
#
setStyle( string $style )
Sets the style of the element. See http://fish.stabb.de/styles/ of the manialink 'example' for more information on Manialink styles. |
public
|
#
setSubStyle( string $substyle )
Sets the sub-style of the element. See http://fish.stabb.de/styles/ of the manialink 'example' for more information on Manialink styles. |
public
|
|
public
|
#
setManialinkId( string $manialinkId )
Sets the Manialink id of the element. It works as a hyperlink. |
public
|
|
public
|
|
public
|
#
setScriptEvents( string $scriptEvents = 1 )
Sets additional ManiaScript events to be generated for this element. |
public
|
|
public
|
#
setActionKey( integer $actionKey )
Sets the action key associated to the element. Only works on dedicated servers. |
public
|
#
setBgcolor( string $bgcolor )
Sets the background color of the element using a 3-digit RGB hexadecimal value. For example, "fff" is white and "000" is black |
public
|
|
public
|
|
public
|
|
public
|
#
setImageFocus( string $imageFocus, boolean $absoluteUrl = false )
Applies an image to the highlighter state of the element |
public
|
#
setImageFocusid( mixed $imageFocusid )
Set the image focus id of the element, used for internationalization |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
integer
|
|
public
integer
|
|
public
boolean
|
#
getAddPlayerId( )
Returns whether the elements adds player information parameter to the URL when it's clicked |
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
final protected
|
|
final protected
|
|
final public
|
boolean |
USE_ABSOLUTE_URL
|
true |
protected
mixed
|
$style |
|
|
protected
mixed
|
$subStyle |
|
|
protected
mixed
|
$manialink |
|
|
protected
mixed
|
$goto |
|
|
protected
mixed
|
$manialinkId |
|
|
protected
mixed
|
$url |
|
|
protected
mixed
|
$urlId |
|
|
protected
mixed
|
$bgcolor |
|
|
protected
mixed
|
$bgcolorfocus |
|
|
protected
mixed
|
$scriptevents |
|
|
protected
mixed
|
$action |
|
|
protected
mixed
|
$actionKey |
|
|
protected
mixed
|
$image |
|
|
protected
mixed
|
$imageid |
|
|
protected
mixed
|
$imageFocus |
|
|
protected
mixed
|
$imageFocusid |
|
|
protected
string
|
$xmlTagName | 'xmltag' |
|
protected
mixed
|
$xml |
|
|
protected
array[\ManiaLib\Gui\Element]
|
$cardElements | array() |
#
Used by cards, all the elements in that array will be renderd before the post filter. |
protected
string
|
$cardElementsHalign | 'left' |
|
protected
string
|
$cardElementsValign | 'top' |
|
protected
integer
|
$cardElementsPosX | 0 |
|
protected
integer
|
$cardElementsPosY | 0 |
|
protected
float
|
$cardElementsPosZ | 0.1 |
|
protected
|
$cardElementsLayout | null |
$halign,
$id,
$parentFrame,
$parentLayout,
$parentNode,
$posX,
$posY,
$posZ,
$relativeHalign,
$relativeValign,
$scale,
$scriptEvents,
$sizeX,
$sizeY,
$valign,
$visible
|