Move the xp/hr in globes to new system

Fix compliation error because of move to new PanelComponent system.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-05-07 00:44:35 +02:00
parent 56872da881
commit fe26066c27

View File

@@ -265,7 +265,11 @@ public class XpGlobesOverlay extends Overlay
int xpHr = xpTrackerService.getXpHr(mouseOverSkill.getSkill());
String xpHrString = decimalFormat.format(xpHr);
lines.add(new PanelComponent.Line("Xp per hour:", Color.ORANGE, xpHrString, Color.WHITE));
xpTooltip.getChildren().add(LineComponent.builder()
.left("Xp per hour:")
.leftColor(Color.ORANGE)
.right(xpHrString)
.build());
//Create progress bar for skill.
ProgressBarComponent progressBar = new ProgressBarComponent();