grounditems: add option to outline text
This commit is contained in:
@@ -383,4 +383,15 @@ public interface GroundItemsConfig extends Config
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "textOutline",
|
||||
name = "Text Outline",
|
||||
description = "Use an outline around text instead of a text shadow",
|
||||
position = 29
|
||||
)
|
||||
default boolean textOutline()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,6 +177,7 @@ public class GroundItemsOverlay extends Overlay
|
||||
|
||||
final boolean onlyShowLoot = config.onlyShowLoot();
|
||||
final boolean groundItemTimers = config.groundItemTimers();
|
||||
final boolean outline = config.textOutline();
|
||||
|
||||
for (GroundItem item : groundItemList)
|
||||
{
|
||||
@@ -354,6 +355,7 @@ public class GroundItemsOverlay extends Overlay
|
||||
|
||||
textComponent.setText(itemString);
|
||||
textComponent.setColor(color);
|
||||
textComponent.setOutline(outline);
|
||||
textComponent.setPosition(new java.awt.Point(textX, textY));
|
||||
textComponent.render(graphics);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user