From 3fb79ebf79eaf216299bc996e84e8a7a629d345b Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Thu, 14 Jun 2018 19:34:29 +0200 Subject: [PATCH] Make hidden items color configurable Signed-off-by: Tomas Slusny --- .../grounditems/GroundItemsConfig.java | 27 +++++++++++++------ .../grounditems/GroundItemsPlugin.java | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsConfig.java index e7e74bd2e2..80d10e8750 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsConfig.java @@ -186,11 +186,22 @@ public interface GroundItemsConfig extends Config return Color.decode("#AA00FF"); } + @ConfigItem( + keyName = "hiddenColor", + name = "Hidden items color", + description = "Configures the color for hidden items in right-click menu and when holding ALT", + position = 12 + ) + default Color hiddenColor() + { + return Color.GRAY; + } + @ConfigItem( keyName = "lowValueColor", name = "Low value items color", description = "Configures the color for low value items", - position = 12 + position = 13 ) default Color lowValueColor() { @@ -201,7 +212,7 @@ public interface GroundItemsConfig extends Config keyName = "lowValuePrice", name = "Low value price", description = "Configures the start price for low value items", - position = 13 + position = 14 ) default int lowValuePrice() { @@ -212,7 +223,7 @@ public interface GroundItemsConfig extends Config keyName = "mediumValueColor", name = "Medium value items color", description = "Configures the color for medium value items", - position = 14 + position = 15 ) default Color mediumValueColor() { @@ -223,7 +234,7 @@ public interface GroundItemsConfig extends Config keyName = "mediumValuePrice", name = "Medium value price", description = "Configures the start price for medium value items", - position = 15 + position = 16 ) default int mediumValuePrice() { @@ -234,7 +245,7 @@ public interface GroundItemsConfig extends Config keyName = "highValueColor", name = "High value items color", description = "Configures the color for high value items", - position = 16 + position = 17 ) default Color highValueColor() { @@ -245,7 +256,7 @@ public interface GroundItemsConfig extends Config keyName = "highValuePrice", name = "High value price", description = "Configures the start price for high value items", - position = 17 + position = 18 ) default int highValuePrice() { @@ -256,7 +267,7 @@ public interface GroundItemsConfig extends Config keyName = "insaneValueColor", name = "Insane value items color", description = "Configures the color for insane value items", - position = 18 + position = 19 ) default Color insaneValueColor() { @@ -267,7 +278,7 @@ public interface GroundItemsConfig extends Config keyName = "insaneValuePrice", name = "Insane value price", description = "Configures the start price for insane value items", - position = 19 + position = 20 ) default int insaneValuePrice() { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java index 29d10de421..0d77ca7fb5 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/grounditems/GroundItemsPlugin.java @@ -498,7 +498,7 @@ public class GroundItemsPlugin extends Plugin // Explicit highlight takes priority over implicit hide return isExplicitHidden || (!isExplicitHighlight && canBeHidden && underGe && underHa) - ? Color.GRAY + ? config.hiddenColor() : null; }