TrackManiaControl/application/core/Libs/FML/Controls/Quads/Quad_BgsPlayerCard.php

55 lines
1.6 KiB
PHP
Raw Normal View History

<?php
namespace FML\Controls\Quads;
use FML\Controls\Quad;
/**
2014-01-12 00:51:46 +01:00
* Quad Class for 'BgsPlayerCard' Style
*
* @author steeffeen
2014-04-13 18:21:40 +02:00
* @copyright FancyManiaLinks Copyright © 2014 Steffen Schröder
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
class Quad_BgsPlayerCard extends Quad {
2014-01-21 20:30:40 +01:00
/*
* Constants
*/
const STYLE = 'BgsPlayerCard';
const SUBSTYLE_BgActivePlayerCard = 'BgActivePlayerCard';
const SUBSTYLE_BgActivePlayerName = 'BgActivePlayerName';
const SUBSTYLE_BgActivePlayerScore = 'BgActivePlayerScore';
const SUBSTYLE_BgCard = 'BgCard';
const SUBSTYLE_BgCardSystem = 'BgCardSystem';
const SUBSTYLE_BgMediaTracker = 'BgMediaTracker';
const SUBSTYLE_BgPlayerCard = 'BgPlayerCard';
const SUBSTYLE_BgPlayerCardBig = 'BgPlayerCardBig';
const SUBSTYLE_BgPlayerCardSmall = 'BgPlayerCardSmall';
const SUBSTYLE_BgPlayerName = 'BgPlayerName';
const SUBSTYLE_BgPlayerScore = 'BgPlayerScore';
const SUBSTYLE_BgRacePlayerLine = 'BgRacePlayerLine';
const SUBSTYLE_BgRacePlayerName = 'BgRacePlayerName';
const SUBSTYLE_ProgressBar = 'ProgressBar';
/**
2014-01-19 19:30:21 +01:00
* Create a new Quad_BgsPlayerCard Control
2013-12-31 02:55:19 +01:00
*
2014-01-19 19:30:21 +01:00
* @param string $id (optional) Control Id
* @return \FML\Controls\Quads\Quad_BgsPlayerCard
*/
public static function create($id = null) {
$quadBgsPlayerCard = new Quad_BgsPlayerCard($id);
return $quadBgsPlayerCard;
}
/**
* Construct a new Quad_BgsPlayerCard Control
*
* @param string $id (optional) Control Id
*/
2013-12-31 02:55:19 +01:00
public function __construct($id = null) {
parent::__construct($id);
$this->setStyle(self::STYLE);
}
}