- Karma plugin

- ColorUtil
- Minor improvements
This commit is contained in:
Steffen Schröder
2013-11-28 01:12:52 +01:00
parent c14c025df3
commit 80db4071ce
10 changed files with 586 additions and 22 deletions

View File

@ -20,6 +20,7 @@ class Label extends Control implements Linkable, NewLineable, Scriptable, Stylea
protected $text = '';
protected $textPrefix = '';
protected $textEmboss = 0;
protected $translate = 0;
protected $maxLines = 0;
protected $url = '';
protected $manialink = '';
@ -75,6 +76,17 @@ class Label extends Control implements Linkable, NewLineable, Scriptable, Stylea
return $this;
}
/**
* Set translate
*
* @param bool $translate
* @return \FML\Controls\Label
*/
public function setTranslate($translate) {
$this->translate = ($translate ? 1 : 0);
return $this;
}
/**
* Set max lines
*
@ -191,6 +203,9 @@ class Label extends Control implements Linkable, NewLineable, Scriptable, Stylea
if ($this->textEmboss) {
$xml->setAttribute('textemboss', $this->textEmboss);
}
if ($this->translate) {
$xml->setAttribute('translate', $this->translate);
}
if ($this->maxLines) {
$xml->setAttribute('maxlines', $this->maxLines);
}