Added search feature to map list

Enhanced mx list x values
Added setY to LabelLine
Renamed setPosZ to setZ (same as in FML)
This commit is contained in:
Jocy
2017-04-12 17:56:43 +02:00
parent 1ac702f29e
commit 09b974e2cc
6 changed files with 188 additions and 74 deletions

View File

@ -27,6 +27,7 @@ class LabelLine implements UsageInformationAble {
private $textColor = 'FFF';
private $posZ = 0;
private $prefix = '';
private $posY = 0;
public function __construct(Frame $frame) {
@ -78,6 +79,7 @@ class LabelLine implements UsageInformationAble {
$entry->setTextSize($this->textSize);
$entry->setTextColor($this->textColor);
$entry->setZ($this->posZ);
$entry->setY($this->posY);
$entry->setTextPrefix($this->prefix);
$this->frame->addChild($entry);
@ -143,17 +145,31 @@ class LabelLine implements UsageInformationAble {
/**
* @return int
*/
public function getPosZ() {
public function getZ() {
return $this->posZ;
}
/**
* @param int $posZ
*/
public function setPosZ($posZ) {
public function setZ($posZ) {
$this->posZ = $posZ;
}
/**
* @return int
*/
public function getY() {
return $this->posY;
}
/**
* @param int $posY
*/
public function setY($posY) {
$this->posY = $posY;
}
/**
* @return \FML\Controls\Labels\Label_Text[]
*/