runelite-client: pass in z offset into renderActorOverlayImage
This commit is contained in:
@@ -78,7 +78,7 @@ class FishingSpotOverlay extends Overlay
|
|||||||
BufferedImage fishImage = getFishImage(spot);
|
BufferedImage fishImage = getFishImage(spot);
|
||||||
if (fishImage != null)
|
if (fishImage != null)
|
||||||
{
|
{
|
||||||
OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, color.darker());
|
OverlayUtil.renderActorOverlayImage(graphics, npc, fishImage, color.darker(), npc.getLogicalHeight());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ public class OverlayUtil
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void renderActorOverlayImage(Graphics2D graphics, Actor actor, BufferedImage image, Color color)
|
public static void renderActorOverlayImage(Graphics2D graphics, Actor actor, BufferedImage image, Color color, int zOffset)
|
||||||
{
|
{
|
||||||
Polygon poly = actor.getCanvasTilePoly();
|
Polygon poly = actor.getCanvasTilePoly();
|
||||||
if (poly != null)
|
if (poly != null)
|
||||||
@@ -103,7 +103,7 @@ public class OverlayUtil
|
|||||||
renderPolygon(graphics, poly, color);
|
renderPolygon(graphics, poly, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
Point imageLocation = actor.getCanvasImageLocation(graphics, image, actor.getLogicalHeight());
|
Point imageLocation = actor.getCanvasImageLocation(graphics, image, zOffset);
|
||||||
if (imageLocation != null)
|
if (imageLocation != null)
|
||||||
{
|
{
|
||||||
renderImageLocation(graphics, imageLocation, image);
|
renderImageLocation(graphics, imageLocation, image);
|
||||||
|
|||||||
Reference in New Issue
Block a user