ManiaLib 1.0b1 API Reference

 Class ChallengeCard

Description

Challenge card

Just like challenge cards that can be found when you browse TrackMania's campaigns

Located in /gui-toolkit/cards/ChallengeCard.class.php (line 14)

GuiComponent
   |
   --GuiElement
      |
      --Quad
         |
         --ChallengeCard
Variable Summary
Method Summary
 ChallengeCard __construct ()
 void setUnclickable ()
 void showArrow ([boolean $show = true])
Variables
Quad $bgImage (line 19)
  • access: public
Label $lockedMessage (line 31)
  • access: public
Label $points (line 27)
  • access: public
Label $text (line 23)
  • access: public
Methods
Constructor __construct (line 45)
ChallengeCard __construct ()

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

Sets the element un-clickable, dims the challenge icon and displays a

lock icon

void setUnclickable ()
showArrow (line 84)

Whether to show the blue arrow above the challenge icon

void showArrow ([boolean $show = true])
  • boolean $show

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