Update XpGlobesOverlay.java

This commit is contained in:
Kyleeld
2019-05-08 09:44:06 +01:00
committed by GitHub
parent a17d3b443b
commit 53ab28c667

View File

@@ -293,6 +293,8 @@ public class XpGlobesOverlay extends Overlay
.build()); .build());
} }
if (config.enableTimeToLevel())
{
String timeLeft = xpTrackerService.getTimeTillGoal(mouseOverSkill.getSkill()); String timeLeft = xpTrackerService.getTimeTillGoal(mouseOverSkill.getSkill());
xpTooltip.getChildren().add(LineComponent.builder() xpTooltip.getChildren().add(LineComponent.builder()
.left("Time left:") .left("Time left:")
@@ -300,6 +302,7 @@ public class XpGlobesOverlay extends Overlay
.right(timeLeft) .right(timeLeft)
.build()); .build());
} }
}
xpTooltip.render(graphics); xpTooltip.render(graphics);
} }