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

@ -28,6 +28,7 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
protected $style = null;
protected $textColor = null;
protected $textSize = -1;
protected $textFont = null;
protected $focusAreaColor1 = null;
protected $focusAreaColor2 = null;
protected $autoComplete = null;
@ -119,6 +120,14 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
return $this;
}
/**
* @see \FML\Types\TextFormatable::setTextFont()
*/
public function setTextFont($textFont) {
$this->textFont = (string)$textFont;
return $this;
}
/**
* @see \FML\Types\TextFormatable::setAreaColor()
*/
@ -194,6 +203,9 @@ class Entry extends Control implements NewLineable, Scriptable, Styleable, TextF
if ($this->textSize >= 0.) {
$xmlElement->setAttribute('textsize', $this->textSize);
}
if ($this->textFont) {
$xmlElement->setAttribute('textfont', $this->textFont);
}
if ($this->focusAreaColor1) {
$xmlElement->setAttribute('focusareacolor1', $this->focusAreaColor1);
}