Пример #1
0
 function create()
 {
     $this->addProperty('font', null, lpf::string());
     $this->addProperty('size', 1, lpf::int(1, 200));
     $this->addProperty('color', '#FFFFFF', lpf::string());
     $this->addProperty('background', '#000000', lpf::color());
     $this->addProperty('text', '', lpf::string());
 }
Пример #2
0
 public function __construct($id = null)
 {
     $this->id = $id;
     // Add basic properties
     $this->addProperty('visible', false, lpf::bool());
     $this->addProperty('id', $id, lpf::string());
     $this->addProperty('zindex', 0, lpf::int(0, 65535));
     $this->addProperty('left', 0, lpf::int(-32000, 32000));
     $this->addProperty('top', 0, lpf::int(-32000, 32000));
     $this->addProperty('width', 0, lpf::int(-32000, 32000));
     $this->addProperty('height', 0, lpf::int(-32000, 32000));
     $this->create();
 }
Пример #3
0
 static function updateFrame($cur, $max)
 {
     self::$currentframe = $cur;
     self::$maxframe = $max;
 }