grounditems: add option to outline text

This commit is contained in:
Adam
2020-06-22 12:42:00 -04:00
committed by Adam
parent ac60e7772c
commit 974343aac6
2 changed files with 13 additions and 0 deletions

View File

@@ -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;
}
}

View File

@@ -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);
}