ManiaLib 1.0b1 API Reference

 Class Format

Description

Format

Located in /gui-toolkit/standard.php (line 1167)

GuiComponent
   |
   --GuiElement
      |
      --Format
Direct descendents
Class Description
 class Label Label
Class Constant Summary
 TextButtonBig = 'TextButtonBig'
 TextButtonMedium = 'TextButtonMedium'
 TextButtonNav = 'TextButtonNav'
 TextButtonSmall = 'TextButtonSmall'
 TextCardInfoSmall = 'TextCardInfoSmall'
 TextCardMedium = 'TextCardMedium'
 TextCardRaceRank = 'TextCardRaceRank'
 TextCardScores2 = 'TextCardScores2'
 TextCardSmallScores2 = 'TextCardSmallScores2'
 TextCardSmallScores2Rank = 'TextCardSmallScores2Rank'
 TextChallengeNameMedal = 'TextChallengeNameMedal'
 TextChallengeNameMedalNone = 'TextChallengeNameMedalNone'
 TextChallengeNameMedium = 'TextChallengeNameMedium'
 TextChallengeNameSmall = 'TextChallengeNameSmall'
 TextCongratsBig = 'TextCongratsBig'
 TextCredits = 'TextCredits'
 TextCreditsTitle = 'TextCreditsTitle'
 TextInfoMedium = 'TextInfoMedium'
 TextInfoSmall = 'TextInfoSmall'
 TextPlayerCardName = 'TextPlayerCardName'
 TextRaceChat = 'TextRaceChat'
 TextRaceChrono = 'TextRaceChrono'
 TextRaceChronoError = 'TextRaceChronoError'
 TextRaceChronoWarning = 'TextRaceChronoWarning'
 TextRaceMessage = 'TextRaceMessage'
 TextRaceStaticSmall = 'TextRaceStaticSmall'
 TextRaceValueSmall = 'TextRaceValueSmall'
 TextRankingsBig = 'TextRankingsBig'
 TextStaticMedium = 'TextStaticMedium'
 TextStaticSmall = 'TextStaticSmall'
 TextSubTitle1 = 'TextSubTitle1'
 TextSubTitle2 = 'TextSubTitle2'
 TextTips = 'TextTips'
 TextTitle1 = 'TextTitle1'
 TextTitle2 = 'TextTitle2'
 TextTitle2Blink = 'TextTitle2Blink'
 TextTitle3 = 'TextTitle3'
 TextTitleError = 'TextTitleError'
 TextValueBig = 'TextValueBig'
 TextValueMedium = 'TextValueMedium'
 TextValueSmall = 'TextValueSmall'
Method Summary
 string getTextColor ()
 int getTextSize ()
 void setTextColor (string $textcolor)
 void setTextSize (int $textsize)
 Format __construct ()
Methods
getTextColor (line 1267)

Returns the text color

  • return: 3-digit RGB hexadecimal value
string getTextColor ()
getTextSize (line 1258)

Returns the text size

int getTextSize ()
setTextColor (line 1247)

Sets the text color

void setTextColor (string $textcolor)
  • string $textcolor: 3-digit RGB hexadecimal value
setTextSize (line 1236)

Sets the text size

void setTextSize (int $textsize)
  • int $textsize
Constructor __construct (line 1230)
Format __construct ()

Redefinition of:
GuiElement::__construct()
Manialink element default constructor. It's common to specify the size of the element in the constructor.

Redefined in descendants as:

Inherited Methods

Inherited From GuiElement

 GuiElement::__construct()
 GuiElement::addLink()
 GuiElement::addPlayerId()
 GuiElement::getAction()
 GuiElement::getActionKey()
 GuiElement::getAddPlayerId()
 GuiElement::getBgcolor()
 GuiElement::getHalign()
 GuiElement::getImage()
 GuiElement::getImageFocus()
 GuiElement::getImageFocusid()
 GuiElement::getImageid()
 GuiElement::getManialink()
 GuiElement::getManiazone()
 GuiElement::getStyle()
 GuiElement::getSubStyle()
 GuiElement::getUrl()
 GuiElement::getValign()
 GuiElement::hasLink()
 GuiElement::save()
 GuiElement::setAction()
 GuiElement::setActionKey()
 GuiElement::setAlign()
 GuiElement::setBgcolor()
 GuiElement::setHalign()
 GuiElement::setImage()
 GuiElement::setImageFocus()
 GuiElement::setImageFocusid()
 GuiElement::setImageid()
 GuiElement::setManialink()
 GuiElement::setManiazone()
 GuiElement::setStyle()
 GuiElement::setSubStyle()
 GuiElement::setUrl()
 GuiElement::setValign()

Inherited From GuiComponent

 GuiComponent::getPosX()
 GuiComponent::getPosY()
 GuiComponent::getPosZ()
 GuiComponent::getScale()
 GuiComponent::getSizeX()
 GuiComponent::getSizeY()
 GuiComponent::setPosition()
 GuiComponent::setPositionX()
 GuiComponent::setPositionY()
 GuiComponent::setPositionZ()
 GuiComponent::setScale()
 GuiComponent::setSize()
 GuiComponent::setSizeX()
 GuiComponent::setSizeY()
Class Constants
TextButtonBig = 'TextButtonBig' (line 1172)

Manialink styles for the Format element and its children

TextButtonMedium = 'TextButtonMedium' (line 1173)

Manialink styles for the Format element and its children

TextButtonNav = 'TextButtonNav' (line 1174)

Manialink styles for the Format element and its children

TextButtonSmall = 'TextButtonSmall' (line 1175)

Manialink styles for the Format element and its children

TextCardInfoSmall = 'TextCardInfoSmall' (line 1176)

Manialink styles for the Format element and its children

TextCardMedium = 'TextCardMedium' (line 1177)

Manialink styles for the Format element and its children

TextCardRaceRank = 'TextCardRaceRank' (line 1178)

Manialink styles for the Format element and its children

TextCardScores2 = 'TextCardScores2' (line 1179)

Manialink styles for the Format element and its children

TextCardSmallScores2 = 'TextCardSmallScores2' (line 1180)

Manialink styles for the Format element and its children

TextCardSmallScores2Rank = 'TextCardSmallScores2Rank' (line 1181)

Manialink styles for the Format element and its children

TextChallengeNameMedal = 'TextChallengeNameMedal' (line 1182)

Manialink styles for the Format element and its children

TextChallengeNameMedalNone = 'TextChallengeNameMedalNone' (line 1183)

Manialink styles for the Format element and its children

TextChallengeNameMedium = 'TextChallengeNameMedium' (line 1184)

Manialink styles for the Format element and its children

TextChallengeNameSmall = 'TextChallengeNameSmall' (line 1185)

Manialink styles for the Format element and its children

TextCongratsBig = 'TextCongratsBig' (line 1186)

Manialink styles for the Format element and its children

TextCredits = 'TextCredits' (line 1187)

Manialink styles for the Format element and its children

TextCreditsTitle = 'TextCreditsTitle' (line 1188)

Manialink styles for the Format element and its children

TextInfoMedium = 'TextInfoMedium' (line 1189)

Manialink styles for the Format element and its children

TextInfoSmall = 'TextInfoSmall' (line 1190)

Manialink styles for the Format element and its children

TextPlayerCardName = 'TextPlayerCardName' (line 1191)

Manialink styles for the Format element and its children

TextRaceChat = 'TextRaceChat' (line 1192)

Manialink styles for the Format element and its children

TextRaceChrono = 'TextRaceChrono' (line 1193)

Manialink styles for the Format element and its children

TextRaceChronoError = 'TextRaceChronoError' (line 1194)

Manialink styles for the Format element and its children

TextRaceChronoWarning = 'TextRaceChronoWarning' (line 1195)

Manialink styles for the Format element and its children

TextRaceMessage = 'TextRaceMessage' (line 1196)

Manialink styles for the Format element and its children

TextRaceStaticSmall = 'TextRaceStaticSmall' (line 1197)

Manialink styles for the Format element and its children

TextRaceValueSmall = 'TextRaceValueSmall' (line 1198)

Manialink styles for the Format element and its children

TextRankingsBig = 'TextRankingsBig' (line 1199)

Manialink styles for the Format element and its children

TextStaticMedium = 'TextStaticMedium' (line 1200)

Manialink styles for the Format element and its children

TextStaticSmall = 'TextStaticSmall' (line 1201)

Manialink styles for the Format element and its children

TextSubTitle1 = 'TextSubTitle1' (line 1202)

Manialink styles for the Format element and its children

TextSubTitle2 = 'TextSubTitle2' (line 1203)

Manialink styles for the Format element and its children

TextTips = 'TextTips' (line 1204)

Manialink styles for the Format element and its children

TextTitle1 = 'TextTitle1' (line 1205)

Manialink styles for the Format element and its children

TextTitle2 = 'TextTitle2' (line 1206)

Manialink styles for the Format element and its children

TextTitle2Blink = 'TextTitle2Blink' (line 1208)

Manialink styles for the Format element and its children

TextTitle3 = 'TextTitle3' (line 1207)

Manialink styles for the Format element and its children

TextTitleError = 'TextTitleError' (line 1209)

Manialink styles for the Format element and its children

TextValueBig = 'TextValueBig' (line 1210)

Manialink styles for the Format element and its children

TextValueMedium = 'TextValueMedium' (line 1211)

Manialink styles for the Format element and its children

TextValueSmall = 'TextValueSmall' (line 1212)

Manialink styles for the Format element and its children

Inherited Constants

Inherited from GuiElement

GuiElement::USE_ABSOLUTE_URL