- Karma plugin
- ColorUtil - Minor improvements
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user