From c9e487fc9e5a3b57431220c4a488ecfee01dcec3 Mon Sep 17 00:00:00 2001 From: Krysa <46086365+Krysaczek@users.noreply.github.com> Date: Sun, 23 Feb 2020 20:58:07 +0100 Subject: [PATCH] inventory tags: add 2 additional color groups --- .../inventorytags/InventoryTagsConfig.java | 22 +++++++++++++++++++ .../inventorytags/InventoryTagsPlugin.java | 8 ++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsConfig.java index 12cff9fcec..27889048bd 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsConfig.java @@ -77,4 +77,26 @@ public interface InventoryTagsConfig extends Config { return new Color(255, 0, 255); } + + @ConfigItem( + position = 4, + keyName = "groupColor5", + name = "Group 5 Color", + description = "Color of the Tag" + ) + default Color getGroup5Color() + { + return new Color(255, 255, 0); + } + + @ConfigItem( + position = 5, + keyName = "groupColor6", + name = "Group 6 Color", + description = "Color of the Tag" + ) + default Color getGroup6Color() + { + return new Color(0, 255, 255); + } } diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsPlugin.java index 4683328550..77a0548287 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/inventorytags/InventoryTagsPlugin.java @@ -61,6 +61,8 @@ public class InventoryTagsPlugin extends Plugin private static final String SETNAME_GROUP_2 = "Group 2"; private static final String SETNAME_GROUP_3 = "Group 3"; private static final String SETNAME_GROUP_4 = "Group 4"; + private static final String SETNAME_GROUP_5 = "Group 5"; + private static final String SETNAME_GROUP_6 = "Group 6"; private static final String CONFIGURE = "Configure"; private static final String SAVE = "Save"; @@ -81,7 +83,7 @@ public class InventoryTagsPlugin extends Plugin private static final WidgetMenuOption RESIZABLE_BOTTOM_LINE_INVENTORY_TAB_SAVE = new WidgetMenuOption(SAVE, MENU_TARGET, WidgetInfo.RESIZABLE_VIEWPORT_BOTTOM_LINE_INVENTORY_TAB); - private static final List GROUPS = ImmutableList.of(SETNAME_GROUP_4, SETNAME_GROUP_3, SETNAME_GROUP_2, SETNAME_GROUP_1); + private static final List GROUPS = ImmutableList.of(SETNAME_GROUP_6, SETNAME_GROUP_5, SETNAME_GROUP_4, SETNAME_GROUP_3, SETNAME_GROUP_2, SETNAME_GROUP_1); @Inject private Client client; @@ -234,6 +236,10 @@ public class InventoryTagsPlugin extends Plugin return config.getGroup3Color(); case SETNAME_GROUP_4: return config.getGroup4Color(); + case SETNAME_GROUP_5: + return config.getGroup5Color(); + case SETNAME_GROUP_6: + return config.getGroup6Color(); } return null;