reanmed to new FML names
This commit is contained in:
		| @@ -476,18 +476,18 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
|  | ||||
| 		$manialink = new ManiaLink(self::MLID_DEDIMANIA); | ||||
| 		$frame     = new Frame(); | ||||
| 		$manialink->add($frame); | ||||
| 		$manialink->addChild($frame); | ||||
| 		$frame->setPosition($posX, $posY); | ||||
|  | ||||
| 		$backgroundQuad = new Quad(); | ||||
| 		$frame->add($backgroundQuad); | ||||
| 		$backgroundQuad->setVAlign($backgroundQuad::TOP); | ||||
| 		$frame->addChild($backgroundQuad); | ||||
| 		$backgroundQuad->setVerticalAlign($backgroundQuad::TOP); | ||||
| 		$height = 7. + $lines * $lineHeight; | ||||
| 		$backgroundQuad->setSize($width * 1.05, $height); | ||||
| 		$backgroundQuad->setStyles($quadStyle, $quadSubstyle); | ||||
|  | ||||
| 		$titleLabel = new Label(); | ||||
| 		$frame->add($titleLabel); | ||||
| 		$frame->addChild($titleLabel); | ||||
| 		$titleLabel->setPosition(0, $lineHeight * -0.9); | ||||
| 		$titleLabel->setWidth($width); | ||||
| 		$titleLabel->setStyle($labelStyle); | ||||
| @@ -504,18 +504,18 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
| 			$y = -8. - $index * $lineHeight; | ||||
|  | ||||
| 			$recordFrame = new Frame(); | ||||
| 			$frame->add($recordFrame); | ||||
| 			$frame->addChild($recordFrame); | ||||
| 			$recordFrame->setPosition(0, $y); | ||||
|  | ||||
| 			/*$backgroundQuad = new Quad(); | ||||
| 			$recordFrame->add($backgroundQuad); | ||||
| 			$recordFrame->addChild($backgroundQuad); | ||||
| 			$backgroundQuad->setSize($width * 1.04, $lineHeight * 1.4); | ||||
| 			$backgroundQuad->setStyles($quadStyle, $quadSubstyle);*/ | ||||
|  | ||||
| 			//Rank | ||||
| 			$rankLabel = new Label(); | ||||
| 			$recordFrame->add($rankLabel); | ||||
| 			$rankLabel->setHAlign($rankLabel::LEFT); | ||||
| 			$recordFrame->addChild($rankLabel); | ||||
| 			$rankLabel->setHorizontalAlign($rankLabel::LEFT); | ||||
| 			$rankLabel->setX($width * -0.47); | ||||
| 			$rankLabel->setSize($width * 0.06, $lineHeight); | ||||
| 			$rankLabel->setTextSize(1); | ||||
| @@ -525,8 +525,8 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
|  | ||||
| 			//Name | ||||
| 			$nameLabel = new Label(); | ||||
| 			$recordFrame->add($nameLabel); | ||||
| 			$nameLabel->setHAlign($nameLabel::LEFT); | ||||
| 			$recordFrame->addChild($nameLabel); | ||||
| 			$nameLabel->setHorizontalAlign($nameLabel::LEFT); | ||||
| 			$nameLabel->setX($width * -0.4); | ||||
| 			$nameLabel->setSize($width * 0.6, $lineHeight); | ||||
| 			$nameLabel->setTextSize(1); | ||||
| @@ -535,8 +535,8 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
|  | ||||
| 			//Time | ||||
| 			$timeLabel = new Label(); | ||||
| 			$recordFrame->add($timeLabel); | ||||
| 			$timeLabel->setHAlign($timeLabel::RIGHT); | ||||
| 			$recordFrame->addChild($timeLabel); | ||||
| 			$timeLabel->setHorizontalAlign($timeLabel::RIGHT); | ||||
| 			$timeLabel->setX($width * 0.47); | ||||
| 			$timeLabel->setSize($width * 0.25, $lineHeight); | ||||
| 			$timeLabel->setTextSize(1); | ||||
| @@ -1113,7 +1113,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
|  | ||||
| 		// Main frame | ||||
| 		$frame = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultListFrame($script, $paging); | ||||
| 		$maniaLink->add($frame); | ||||
| 		$maniaLink->addChild($frame); | ||||
|  | ||||
| 		// Start offsets | ||||
| 		$posX = -$width / 2; | ||||
| @@ -1121,11 +1121,11 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
|  | ||||
| 		// Predefine Description Label | ||||
| 		$descriptionLabel = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultDescriptionLabel(); | ||||
| 		$frame->add($descriptionLabel); | ||||
| 		$frame->addChild($descriptionLabel); | ||||
|  | ||||
| 		// Headline | ||||
| 		$headFrame = new Frame(); | ||||
| 		$frame->add($headFrame); | ||||
| 		$frame->addChild($headFrame); | ||||
| 		$headFrame->setY($posY - 5); | ||||
| 		$array = array('Rank' => $posX + 5, 'Nickname' => $posX + 18, 'Login' => $posX + 70, 'Time' => $posX + 101); | ||||
| 		$this->maniaControl->getManialinkManager()->labelLine($headFrame, $array); | ||||
| @@ -1137,17 +1137,17 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene | ||||
| 		foreach ($records as $listRecord) { | ||||
| 			if ($index % 15 === 0) { | ||||
| 				$pageFrame = new Frame(); | ||||
| 				$frame->add($pageFrame); | ||||
| 				$frame->addChild($pageFrame); | ||||
| 				$posY = $height / 2 - 10; | ||||
| 				$paging->addPage($pageFrame); | ||||
| 			} | ||||
|  | ||||
| 			$recordFrame = new Frame(); | ||||
| 			$pageFrame->add($recordFrame); | ||||
| 			$pageFrame->addChild($recordFrame); | ||||
|  | ||||
| 			if ($index % 2 !== 0) { | ||||
| 				$lineQuad = new Quad_BgsPlayerCard(); | ||||
| 				$recordFrame->add($lineQuad); | ||||
| 				$recordFrame->addChild($lineQuad); | ||||
| 				$lineQuad->setSize($width, 4); | ||||
| 				$lineQuad->setSubStyle($lineQuad::SUBSTYLE_BgPlayerCardBig); | ||||
| 				$lineQuad->setZ(0.001); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user