Merge pull request #867 from devLotto/issue-866
runelite-client: fix Use tooltip arrow not being displayed
This commit is contained in:
@@ -155,6 +155,17 @@ public class TooltipComponent implements RenderableEntity
|
||||
lineX += modIcon.getWidth();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TextComponent textComponent = new TextComponent();
|
||||
textComponent.setColor(nextColor);
|
||||
String text = line.substring(begin, j + 1);
|
||||
textComponent.setText(text);
|
||||
textComponent.setPosition(new Point(lineX, textY + (i + 1) * textHeight - textDescent));
|
||||
textComponent.render(graphics, parent);
|
||||
|
||||
lineX += metrics.stringWidth(text);
|
||||
}
|
||||
|
||||
begin = j + 1;
|
||||
}
|
||||
@@ -193,6 +204,10 @@ public class TooltipComponent implements RenderableEntity
|
||||
{
|
||||
textWidth += MOD_ICON_WIDTH;
|
||||
}
|
||||
else if (!subLine.startsWith("col=") && !subLine.startsWith("/col"))
|
||||
{
|
||||
textWidth += metrics.stringWidth(line.substring(begin, j + 1));
|
||||
}
|
||||
|
||||
begin = j + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user