2013-11-25 00:02:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace FML\Controls\Quads;
|
|
|
|
|
|
|
|
use FML\Controls\Quad;
|
|
|
|
|
|
|
|
/**
|
2014-01-12 00:51:46 +01:00
|
|
|
* Quad Class for 'EnergyBar' Style
|
2013-11-25 00:02:07 +01:00
|
|
|
*
|
|
|
|
* @author steeffeen
|
|
|
|
*/
|
|
|
|
class Quad_EnergyBar extends Quad {
|
2014-01-21 20:30:40 +01:00
|
|
|
/*
|
2013-11-25 00:02:07 +01:00
|
|
|
* Constants
|
|
|
|
*/
|
|
|
|
const STYLE = 'EnergyBar';
|
2013-11-28 04:48:04 +01:00
|
|
|
const SUBSTYLE_BgText = 'BgText';
|
|
|
|
const SUBSTYLE_EnergyBar = 'EnergyBar';
|
|
|
|
const SUBSTYLE_EnergyBar_0_25 = 'EnergyBar_0.25';
|
|
|
|
const SUBSTYLE_EnergyBar_Thin = 'EnergyBar_Thin';
|
|
|
|
const SUBSTYLE_HeaderGaugeLeft = 'HeaderGaugeLeft';
|
|
|
|
const SUBSTYLE_HeaderGaugeRight = 'HeaderGaugeRight';
|
2013-11-25 00:02:07 +01:00
|
|
|
|
|
|
|
/**
|
2014-01-19 19:30:21 +01:00
|
|
|
* Create a new Quad_EnergyBar 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_EnergyBar
|
|
|
|
*/
|
|
|
|
public static function create($id = null) {
|
|
|
|
$quadEnergybar = new Quad_EnergyBar($id);
|
|
|
|
return $quadEnergybar;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct a new Quad_EnergyBar Control
|
|
|
|
*
|
|
|
|
* @param string $id (optional) Control Id
|
2013-11-25 00:02:07 +01:00
|
|
|
*/
|
2013-12-31 02:55:19 +01:00
|
|
|
public function __construct($id = null) {
|
|
|
|
parent::__construct($id);
|
2013-11-25 00:02:07 +01:00
|
|
|
$this->setStyle(self::STYLE);
|
|
|
|
}
|
|
|
|
}
|