Make color of hovered tile highlight configurable

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Jaysc
2018-11-29 22:57:52 +00:00
committed by Tomas Slusny
parent 8bc1cb8648
commit a0e61433e0
2 changed files with 12 additions and 2 deletions

View File

@@ -54,6 +54,17 @@ public interface TileIndicatorsConfig extends Config
return true;
}
@Alpha
@ConfigItem(
keyName = "highlightHoveredColor",
name = "Color of current hovered highlighting",
description = "Configures the highlight color of hovered tile"
)
default Color highlightHoveredColor()
{
return new Color(0, 0, 0, 0);
}
@ConfigItem(
keyName = "highlightHoveredTile",
name = "Highlight hovered tile",

View File

@@ -41,7 +41,6 @@ import net.runelite.client.ui.overlay.OverlayUtil;
public class TileIndicatorsOverlay extends Overlay
{
private static final Color EMPTY = new Color(0, 0, 0, 0);
private final Client client;
private final TileIndicatorsConfig config;
@@ -75,7 +74,7 @@ public class TileIndicatorsOverlay extends Overlay
// If we have tile "selected" render it
if (client.getSelectedSceneTile() != null)
{
renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), EMPTY);
renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), config.highlightHoveredColor());
}
}