From 90048fc6f0b3a843e13620288d2897187fa0e439 Mon Sep 17 00:00:00 2001 From: Damhan Richardson Date: Tue, 3 Sep 2019 18:26:47 +0100 Subject: [PATCH] playerindicators: fix agility icon when show cb level is turned on. --- .../playerindicators/PlayerIndicatorsOverlay.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java index 619bddfe9c..b7b4744084 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/playerindicators/PlayerIndicatorsOverlay.java @@ -160,7 +160,18 @@ public class PlayerIndicatorsOverlay extends Overlay if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS) { - final int width = graphics.getFontMetrics().stringWidth(name); + + + final int width; + if (plugin.isShowCombatLevel()) + { + width = graphics.getFontMetrics().stringWidth(name) + 10; + } + else + { + width = graphics.getFontMetrics().stringWidth(name); + + } final int height = graphics.getFontMetrics().getHeight(); if (level >= plugin.getAgilityFirstThreshold()) {