Make color of hovered tile highlight configurable
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -54,6 +54,17 @@ public interface TileIndicatorsConfig extends Config
|
|||||||
return true;
|
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(
|
@ConfigItem(
|
||||||
keyName = "highlightHoveredTile",
|
keyName = "highlightHoveredTile",
|
||||||
name = "Highlight hovered tile",
|
name = "Highlight hovered tile",
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ import net.runelite.client.ui.overlay.OverlayUtil;
|
|||||||
|
|
||||||
public class TileIndicatorsOverlay extends Overlay
|
public class TileIndicatorsOverlay extends Overlay
|
||||||
{
|
{
|
||||||
private static final Color EMPTY = new Color(0, 0, 0, 0);
|
|
||||||
private final Client client;
|
private final Client client;
|
||||||
private final TileIndicatorsConfig config;
|
private final TileIndicatorsConfig config;
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@ public class TileIndicatorsOverlay extends Overlay
|
|||||||
// If we have tile "selected" render it
|
// If we have tile "selected" render it
|
||||||
if (client.getSelectedSceneTile() != null)
|
if (client.getSelectedSceneTile() != null)
|
||||||
{
|
{
|
||||||
renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), EMPTY);
|
renderTile(graphics, client.getSelectedSceneTile().getLocalLocation(), config.highlightHoveredColor());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user