Overview

Namespaces

  • DedicatedApi
    • Structures
    • Xmlrpc
  • ManiaLib
    • Gui
      • Cards
        • Dialogs
        • Navigation
      • Elements
      • Layouts
      • Maniacode
        • Elements
    • Utils
  • ManiaLive
    • Application
    • Config
    • Data
    • Database
      • MySQL
      • SQLite
    • DedicatedApi
      • Callback
    • Event
    • Features
      • Admin
      • ChatCommand
      • Tick
      • WebServices
    • Gui
      • Controls
      • Elements
      • Windows
    • PluginHandler
    • Threading
    • Utilities
  • ManiaLiveApplication
  • Maniaplanet
    • WebServices
      • ManiaConnect
      • ManiaHome
      • Rankings
  • PHP

Classes

  • Audio
  • BgRaceScore2
  • Bgs1
  • Bgs1InRace
  • BgsChallengeMedals
  • BgsPlayerCard
  • Button
  • Copilot
  • Entry
  • FileEntry
  • Format
  • Frame
  • Icon
  • Icons128x128_1
  • Icons128x128_Blink
  • Icons128x32_1
  • Icons321Go
  • Icons64x64_1
  • IncludeManialink
  • Label
  • ManiaPlanetLogos
  • MedalsBig
  • Music
  • Quad
  • Spacer
  • UIConstructionSimple_Buttons
  • Video
  • Overview
  • Namespace
  • Class
  • Tree

Class Format

Can be drawn onto the Screen. This is mainly used by ManiaLive.

ManiaLib\Gui\Component
Extended by ManiaLib\Gui\Element implements ManiaLib\Gui\Drawable
Extended by ManiaLib\Gui\Elements\Format

Direct known subclasses

ManiaLib\Gui\Elements\Label

Indirect known subclasses

ManiaLib\Gui\Elements\Button, ManiaLib\Gui\Elements\Entry, ManiaLib\Gui\Elements\FileEntry
Namespace: ManiaLib\Gui\Elements
Located at libraries/ManiaLib/Gui/Elements/Format.php
Methods summary
public
# __construct( )

Manialink element default constructor. It's common to specify the size of the element in the constructor.

Manialink element default constructor. It's common to specify the size of the element in the constructor.

Overrides

ManiaLib\Gui\Element::__construct()
public
# setTextSize( integer $textsize )

Sets the text size

Sets the text size

Parameters

$textsize
integer
public
# setTextColor( string $textcolor )

Sets the text color

Sets the text color

Parameters

$textcolor
string
3-digit RGB hexadecimal value
public integer
# getTextSize( )

Returns the text size

Returns the text size

Returns

integer
public string
# getTextColor( )

Returns the text color

Returns the text color

Returns

string
3-digit RGB hexadecimal value
Methods inherited from ManiaLib\Gui\Element
addLink(), buildXML(), getAction(), getActionKey(), getAddPlayerId(), getBgcolor(), getBgcolorFocus(), getImage(), getImageFocus(), getImageFocusid(), getImageid(), getManialink(), getManialinkId(), getScriptEvents(), getStyle(), getSubStyle(), getUrl(), getUrlId(), handleCardElements(), hasLink(), save(), setAction(), setActionKey(), setBgcolor(), setBgcolorFocus(), setCardElementPosition(), setImage(), setImageFocus(), setImageFocusid(), setImageid(), setManialink(), setManialinkId(), setScriptEvents(), setStyle(), setSubStyle(), setUrl(), setUrlId()
Methods inherited from ManiaLib\Gui\Component
getBorderBottom(), getBorderLeft(), getBorderRight(), getBorderTop(), getHalign(), getId(), getParentFrame(), getParentLayout(), getParentNode(), getPosX(), getPosY(), getPosZ(), getRealSizeX(), getRealSizeY(), getRelativeHalign(), getRelativeValign(), getScale(), getSizeX(), getSizeY(), getValign(), incPosX(), incPosY(), incPosZ(), isVisible(), onAlign(), onMove(), onResize(), onScale(), setAlign(), setHalign(), setId(), setParentFrame(), setParentLayout(), setParentNode(), setPosX(), setPosY(), setPosZ(), setPosition(), setPositionX(), setPositionY(), setPositionZ(), setRelativeAlign(), setRelativeHalign(), setRelativeValign(), setScale(), setSize(), setSizeX(), setSizeY(), setValign(), setVisibility()
Constants summary
string AvatarButtonNormal 'AvatarButtonNormal'
#
string StyleTextScriptEditor 'StyleTextScriptEditor'
#
string StyleValueYellowSmall 'StyleValueYellowSmall'
#
string TextButtonBig 'TextButtonBig'
#
string TextButtonMedium 'TextButtonMedium'
#
string TextButtonNav 'TextButtonNav'
#
string TextButtonNavBack 'TextButtonNavBack'
#
string TextButtonSmall 'TextButtonSmall'
#
string TextCardInfoSmall 'TextCardInfoSmall'
#
string TextCardMedium 'TextCardMedium'
#
string TextCardRaceRank 'TextCardRaceRank'
#
string TextCardScores2 'TextCardScores2'
#
string TextCardSmallScores2 'TextCardSmallScores2'
#
string TextCardSmallScores2Rank 'TextCardSmallScores2Rank'
#
string TextChallengeNameMedal 'TextChallengeNameMedal'
#
string TextChallengeNameMedalNone 'TextChallengeNameMedalNone'
#
string TextChallengeNameMedium 'TextChallengeNameMedium'
#
string TextChallengeNameSmall 'TextChallengeNameSmall'
#
string TextCongratsBig 'TextCongratsBig'
#
string TextCredits 'TextCredits'
#
string TextCreditsTitle 'TextCreditsTitle'
#
string TextInfoMedium 'TextInfoMedium'
#
string TextInfoSmall 'TextInfoSmall'
#
string TextPlayerCardName 'TextPlayerCardName'
#
string TextPlayerCardScore 'TextPlayerCardScore'
#
string TextRaceChat 'TextRaceChat'
#
string TextRaceChrono 'TextRaceChrono'
#
string TextRaceChronoError 'TextRaceChronoError'
#
string TextRaceChronoOfficial 'TextRaceChronoOfficial'
#
string TextRaceChronoWarning 'TextRaceChronoWarning'
#
string TextRaceMessage 'TextRaceMessage'
#
string TextRaceMessageBig 'TextRaceMessageBig'
#
string TextRaceStaticSmall 'TextRaceStaticSmall'
#
string TextRaceValueSmall 'TextRaceValueSmall'
#
string TextRankingsBig 'TextRankingsBig'
#
string TextSPScoreBig 'TextSPScoreBig'
#
string TextSPScoreMedium 'TextSPScoreMedium'
#
string TextSPScoreSmall 'TextSPScoreSmall'
#
string TextStaticMedium 'TextStaticMedium'
#
string TextStaticSmall 'TextStaticSmall'
#
string TextStaticVerySmall 'TextStaticVerySmall'
#
string TextSubTitle1 'TextSubTitle1'
#
string TextSubTitle2 'TextSubTitle2'
#
string TextTips 'TextTips'
#
string TextTitle1 'TextTitle1'
#
string TextTitle2 'TextTitle2'
#
string TextTitle2Blink 'TextTitle2Blink'
#
string TextTitle3 'TextTitle3'
#
string TextTitle3Header 'TextTitle3Header'
#
string TextTitleError 'TextTitleError'
#
string TextValueBig 'TextValueBig'
#
string TextValueMedium 'TextValueMedium'
#
string TextValueSmall 'TextValueSmall'
#
string TrackListItem 'TrackListItem'
#
string TrackListLine 'TrackListLine'
#
string TrackerText 'TrackerText'
#
string TrackerTextBig 'TrackerTextBig'
#
Constants inherited from ManiaLib\Gui\Element
USE_ABSOLUTE_URL
Properties summary
protected string $xmlTagName 'format'
#
protected mixed $halign null
#
protected mixed $valign null
#
protected mixed $posX null
#
protected mixed $posY null
#
protected mixed $posZ null
#
protected mixed $style null
#
protected mixed $subStyle null
#
protected mixed $textSize
#
protected mixed $textColor
#
Properties inherited from ManiaLib\Gui\Element
$action, $actionKey, $bgcolor, $bgcolorfocus, $cardElements, $cardElementsHalign, $cardElementsLayout, $cardElementsPosX, $cardElementsPosY, $cardElementsPosZ, $cardElementsValign, $goto, $image, $imageFocus, $imageFocusid, $imageid, $manialink, $manialinkId, $scriptevents, $url, $urlId, $xml
Properties inherited from ManiaLib\Gui\Component
$id, $parentFrame, $parentLayout, $parentNode, $relativeHalign, $relativeValign, $scale, $scriptEvents, $sizeX, $sizeY, $visible
ManiaLiveDoc API documentation generated by ApiGen 2.8.0