Update PlayerIndicatorsOverlay.java
This commit is contained in:
@@ -161,16 +161,9 @@ public class PlayerIndicatorsOverlay extends Overlay
|
|||||||
if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS)
|
if (plugin.getAgilityFormat() == PlayerIndicatorsPlugin.AgilityFormats.ICONS)
|
||||||
{
|
{
|
||||||
|
|
||||||
final int width;
|
final int width = plugin.isShowCombatLevel() ? graphics.getFontMetrics().stringWidth(name)
|
||||||
if (plugin.isShowCombatLevel())
|
+ ACTOR_HORIZONTAL_TEXT_MARGIN : graphics.getFontMetrics().stringWidth(name);
|
||||||
{
|
|
||||||
width = graphics.getFontMetrics().stringWidth(name) + 10;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
width = graphics.getFontMetrics().stringWidth(name);
|
|
||||||
|
|
||||||
}
|
|
||||||
final int height = graphics.getFontMetrics().getHeight();
|
final int height = graphics.getFontMetrics().getHeight();
|
||||||
if (level >= plugin.getAgilityFirstThreshold())
|
if (level >= plugin.getAgilityFirstThreshold())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user