Replaced old with new LabelLine
This commit is contained in:
@ -44,15 +44,15 @@ class LabelLine implements UsageInformationAble {
|
||||
*/
|
||||
public function addLabelEntryText($labelText, $posX, $width = 0, $action = '') {
|
||||
$label = new Label_Text();
|
||||
$this->frame->addChild($label);
|
||||
$label->setText($labelText);
|
||||
$label->setX($posX);
|
||||
if ($action) {
|
||||
$label->setAction($action);
|
||||
}
|
||||
|
||||
if ($width) {
|
||||
$label->setWidth($width);
|
||||
$label->setHeight(0); //TODO verify if 5 is ok for everywhere
|
||||
$label->setHeight(0);
|
||||
}
|
||||
$this->addLabel($label);
|
||||
}
|
||||
@ -62,7 +62,7 @@ class LabelLine implements UsageInformationAble {
|
||||
*
|
||||
* @param \FML\Controls\Labels\Label_Text $label
|
||||
*/
|
||||
private function addLabel(Label_Text $label) {
|
||||
public function addLabel(Label_Text $label) {
|
||||
array_push($this->entries, $label);
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ use ManiaControl\ManiaControl;
|
||||
*/
|
||||
class StyleManager implements UsageInformationAble {
|
||||
use UsageInformationTrait;
|
||||
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
@ -113,7 +113,7 @@ class StyleManager implements UsageInformationAble {
|
||||
|
||||
// Predefine Description Label
|
||||
$descriptionLabel = new Label();
|
||||
$descriptionLabel->setAlign($descriptionLabel::LEFT, $descriptionLabel::TOP)->setPosition($width * -0.5 + 10, $height * -0.5 + 5)->setSize($width * 0.7, 4)->setTextSize(2)->setVisible(false);
|
||||
$descriptionLabel->setAlign($descriptionLabel::LEFT, $descriptionLabel::TOP)->setPosition($width * -0.5 + 10, $height * -0.5 + 5)->setZ(1)->setSize($width * 0.7, 4)->setTextSize(2)->setVisible(false);
|
||||
|
||||
return $descriptionLabel;
|
||||
}
|
||||
|
Reference in New Issue
Block a user