Merge pull request #1685 from Kamielvf/playerindicator-icon-tweak

Move player indicator clan icon further from playername
This commit is contained in:
Adam
2018-04-21 22:22:04 -04:00
committed by GitHub

View File

@@ -91,7 +91,8 @@ public class PlayerIndicatorsOverlay extends Overlay
if (clanchatImage != null)
{
int width = clanchatImage.getWidth();
Point imageLocation = new Point(textLocation.getX() - width / 2, textLocation.getY() - clanchatImage.getHeight());
int textHeight = graphics.getFontMetrics().getHeight() - graphics.getFontMetrics().getMaxDescent();
Point imageLocation = new Point(textLocation.getX() - width / 2 - 1, textLocation.getY() - textHeight / 2 - clanchatImage.getHeight() / 2);
OverlayUtil.renderImageLocation(graphics, imageLocation, clanchatImage);
// move text