Merge pull request #2414 from deathbeam/xp-globes-fix

Move the xp/hr in globes to new system
This commit is contained in:
Tomas Slusny
2018-05-07 00:55:48 +02:00
committed by GitHub

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();