FML Update

This commit is contained in:
steeffeen
2014-07-04 23:50:43 +02:00
parent c072019047
commit f037392acf
7 changed files with 128 additions and 0 deletions

View File

@ -40,6 +40,7 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
protected $scriptEvents = null;
protected $style = null;
protected $textSize = -1;
protected $textFont = null;
protected $textColor = null;
protected $focusAreaColor1 = null;
protected $focusAreaColor2 = null;
@ -204,6 +205,14 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
return $this;
}
/**
* @see \FML\Types\TextFormatable::setTextFont()
*/
public function setTextFont($textFont) {
$this->textFont = (string)$textFont;
return $this;
}
/**
* @see \FML\Types\TextFormatable::setTextColor()
*/
@ -291,6 +300,9 @@ class Label extends Control implements Actionable, Linkable, NewLineable, Script
if ($this->textSize >= 0) {
$xmlElement->setAttribute('textsize', $this->textSize);
}
if ($this->textFont) {
$xmlElement->setAttribute('textfont', $this->textFont);
}
if ($this->textColor) {
$xmlElement->setAttribute('textcolor', $this->textColor);
}