Source for file ChallengeCard.class.php
Documentation is available at ChallengeCard.class.php
* @copyright 2009-2010 NADEO
* Just like challenge cards that can be found when you browse TrackMania's campaigns
* @subpackage GUIToolkit_Cards
protected $showArrow =
false;
protected $clickable =
true;
protected $clickableMask;
protected $clickableLock;
$this->bgImage->setHalign("center");
$this->bgImage->setPosition(0, -
0.5, 0);
$this->points->setPosition(-
6.5, -
10.75, 2);
$this->text->setPosition(0, -
14, 4);
$this->text->setHalign("center");
$this->text->setStyle(Label::TextChallengeNameSmall);
$this->clickableMask =
new Quad($this->sizeX, $this->sizeY);
$this->clickableMask->setHalign("center");
$this->clickableMask->setPositionZ(1);
$this->clickableMask->setStyle(Quad::BgsPlayerCard);
$this->clickableLock =
new Icon(7.5);
$this->clickableLock->setPosition(8, -
14, 2);
$this->clickableLock->setAlign("right", "bottom");
* Whether to show the blue arrow above the challenge icon
$this->showArrow =
$show;
* Sets the element un-clickable, dims the challenge icon and displays a
$this->clickable =
false;
protected function preFilter()
$this->setImage("BgsChallengeRace.dds");
protected function postFilter()
// Algin the title and its bg at the top center of the main quad
$this->clickableMask->save();
$this->clickableLock->save();