Slayer plugin - fix "count on items" feature
This commit is contained in:
committed by
Adam
parent
05dc2eb39e
commit
de0ff99ead
@@ -121,9 +121,11 @@ class SlayerOverlay extends Overlay
|
|||||||
final Rectangle bounds = item.getCanvasBounds();
|
final Rectangle bounds = item.getCanvasBounds();
|
||||||
final TextComponent textComponent = new TextComponent();
|
final TextComponent textComponent = new TextComponent();
|
||||||
textComponent.setText(String.valueOf(amount));
|
textComponent.setText(String.valueOf(amount));
|
||||||
textComponent.setPosition(new Point(bounds.x, (slayerJewelry.contains(itemId)
|
// Draw the counter in the bottom left for equipment, and top left for jewelry
|
||||||
? bounds.x
|
textComponent.setPosition(new Point(bounds.x, bounds.y + (slayerJewelry.contains(itemId)
|
||||||
: 16 )));
|
? bounds.height
|
||||||
|
: graphics.getFontMetrics().getHeight())));
|
||||||
|
textComponent.render(graphics, parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user