Merge pull request #7865 from deathbeam/hovered-color

Make color of hovered tile highlight configurable
This commit is contained in:
Tomas Slusny
2019-02-15 13:25:21 +00:00
committed by GitHub
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());
}
}