Merge pull request #1527 from Damhan/feature/playerindicators1516

playerindicators: fix agility icon spacing
This commit is contained in:
ST0NEWALL
2019-09-04 22:54:53 -04:00
committed by GitHub

View File

@@ -160,7 +160,10 @@ public class PlayerIndicatorsOverlay extends Overlay
if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS)
{
final int width = graphics.getFontMetrics().stringWidth(name);
final int width = plugin.isShowCombatLevel() ? graphics.getFontMetrics().stringWidth(name)
+ ACTOR_HORIZONTAL_TEXT_MARGIN : graphics.getFontMetrics().stringWidth(name);
final int height = graphics.getFontMetrics().getHeight();
if (level >= plugin.getAgilityFirstThreshold())
{