Merge branch 'master' into menu-entry-oh-no-withdraw-buy-sell-yes

This commit is contained in:
Lucwousin
2019-09-21 14:08:45 +02:00
committed by GitHub
37 changed files with 2290 additions and 1754 deletions

View File

@@ -24,38 +24,22 @@
*/ */
package net.runelite.client.config; package net.runelite.client.config;
import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import lombok.Getter;
@Getter
public class ConfigDescriptor public class ConfigDescriptor
{ {
private final ConfigGroup group; private final ConfigGroup group;
private final Collection<ConfigItemsGroup> itemGroups; private final Collection<ConfigSection> sections;
private final Collection<ConfigTitleSection> titleSections;
private final Collection<ConfigItemDescriptor> items;
public ConfigDescriptor(ConfigGroup group, Collection<ConfigItemsGroup> itemGroups) public ConfigDescriptor(ConfigGroup group, Collection<ConfigSection> sections, Collection<ConfigTitleSection> titleSections, Collection<ConfigItemDescriptor> items)
{ {
this.group = group; this.group = group;
this.itemGroups = itemGroups; this.sections = sections;
this.titleSections = titleSections;
this.items = items;
} }
public ConfigGroup getGroup()
{
return group;
}
public Collection<ConfigItemsGroup> getItemGroups()
{
return itemGroups;
}
public Collection<ConfigItemDescriptor> getItems()
{
Collection<ConfigItemDescriptor> allItems = new ArrayList<>();
for (ConfigItemsGroup g : itemGroups)
{
allItems.addAll(g.getItems());
}
return allItems;
}
} }

View File

@@ -47,7 +47,9 @@ public @interface ConfigItem
boolean secret() default false; boolean secret() default false;
String group() default ""; String section() default "";
String titleSection() default "";
String unhide() default ""; String unhide() default "";
@@ -57,8 +59,6 @@ public @interface ConfigItem
String hideValue() default ""; String hideValue() default "";
String parent() default "";
String enabledBy() default ""; String enabledBy() default "";
String enabledByValue() default ""; String enabledByValue() default "";

View File

@@ -45,9 +45,7 @@ import java.nio.channels.FileLock;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.time.Duration; import java.time.Duration;
import java.time.Instant; import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collection;
import java.util.EnumSet; import java.util.EnumSet;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@@ -346,8 +344,26 @@ public class ConfigManager
throw new IllegalArgumentException("Not a config group"); throw new IllegalArgumentException("Not a config group");
} }
final List<ConfigSection> sections = Arrays.stream(inter.getMethods())
.filter(m -> m.getParameterCount() == 0 && m.isAnnotationPresent(ConfigSection.class) && m.getReturnType() == boolean.class)
.map(m -> m.getDeclaredAnnotation(ConfigSection.class))
.sorted((a, b) -> ComparisonChain.start()
.compare(a.position(), b.position())
.compare(a.name(), b.name())
.result())
.collect(Collectors.toList());
final List<ConfigTitleSection> titleSections = Arrays.stream(inter.getMethods())
.filter(m -> m.getParameterCount() == 0 && m.isAnnotationPresent(ConfigTitleSection.class))
.map(m -> m.getDeclaredAnnotation(ConfigTitleSection.class))
.sorted((a, b) -> ComparisonChain.start()
.compare(a.position(), b.position())
.compare(a.name(), b.name())
.result())
.collect(Collectors.toList());
final List<ConfigItemDescriptor> items = Arrays.stream(inter.getMethods()) final List<ConfigItemDescriptor> items = Arrays.stream(inter.getMethods())
.filter(m -> m.getParameterCount() == 0) .filter(m -> m.getParameterCount() == 0 && m.isAnnotationPresent(ConfigItem.class))
.map(m -> new ConfigItemDescriptor( .map(m -> new ConfigItemDescriptor(
m.getDeclaredAnnotation(ConfigItem.class), m.getDeclaredAnnotation(ConfigItem.class),
m.getReturnType(), m.getReturnType(),
@@ -360,35 +376,7 @@ public class ConfigManager
.result()) .result())
.collect(Collectors.toList()); .collect(Collectors.toList());
Collection<ConfigItemsGroup> itemGroups = new ArrayList<>(); return new ConfigDescriptor(group, sections, titleSections, items);
for (ConfigItemDescriptor item : items)
{
String groupName = item.getItem().group();
boolean found = false;
for (ConfigItemsGroup g : itemGroups)
{
if (g.getGroup().equals(groupName))
{
g.addItem(item);
found = true;
break;
}
}
if (!found)
{
ConfigItemsGroup newGroup = new ConfigItemsGroup(groupName);
newGroup.addItem(item);
itemGroups.add(newGroup);
}
}
itemGroups = itemGroups.stream().sorted((a, b) -> ComparisonChain.start()
.compare(a.getGroup(), b.getGroup())
.result())
.collect(Collectors.toList());
return new ConfigDescriptor(group, itemGroups);
} }
/** /**
@@ -543,7 +531,7 @@ public class ConfigManager
{ {
return Arrays.stream(str.split(",")).mapToInt(Integer::valueOf).toArray(); return Arrays.stream(str.split(",")).mapToInt(Integer::valueOf).toArray();
} }
return new int[] {Integer.parseInt(str)}; return new int[]{Integer.parseInt(str)};
} }
if (type == EnumSet.class) if (type == EnumSet.class)
{ {

View File

@@ -47,45 +47,4 @@ public class ConfigPanelItem
this.children = new ArrayList<>(); this.children = new ArrayList<>();
this.item = item; this.item = item;
} }
public List<ConfigPanelItem> getItemsAsList()
{
List<ConfigPanelItem> items = new ArrayList<>();
items.add(this);
for (ConfigPanelItem child : children)
{
items.addAll(child.getItemsAsList());
}
return items;
}
public int getDepth()
{
return (parent == null ? 0 : parent.getDepth() + 1);
}
public boolean addChildIfMatchParent(ConfigItemDescriptor cid)
{
if (item != null && item.getItem().keyName().equals(cid.getItem().parent()))
{
children.add(new ConfigPanelItem(this, cid));
return true;
}
else
{
for (ConfigPanelItem child : children)
{
if (child.addChildIfMatchParent(cid))
{
return true;
}
}
return false;
}
}
} }

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2019, Hydrox6 <ikada@protonmail.ch>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.runelite.client.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ConfigSection
{
int position();
String keyName();
String name();
String description();
String section() default "";
String titleSection() default "";
boolean hidden() default false;
String unhide() default "";
String unhideValue() default "";
String hide() default "";
String hideValue() default "";
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 2019, Hydrox6 <ikada@protonmail.ch>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.runelite.client.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ConfigTitleSection
{
int position();
String keyName();
String name();
String description();
String section() default "";
String titleSection() default "";
boolean hidden() default false;
String unhide() default "";
String unhideValue() default "";
String hide() default "";
String hideValue() default "";
}

View File

@@ -1,5 +1,5 @@
package net.runelite.client.config; package net.runelite.client.config;
public class Stub public class Title
{ {
} }

View File

@@ -28,20 +28,21 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("agility") @ConfigGroup("agility")
public interface AgilityConfig extends Config public interface AgilityConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
position = 0,
keyName = "mainConfig", keyName = "mainConfig",
position = 0,
name = "Main Config", name = "Main Config",
description = "" description = ""
) )
default Stub mainConfig() default Title mainConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -51,7 +52,7 @@ public interface AgilityConfig extends Config
warning = "<html><center>Enabling this setting on a low end machine may severely affect your fps." + warning = "<html><center>Enabling this setting on a low end machine may severely affect your fps." +
"<br>Click yes to enable this setting, knowing it might affect performance.</center></html>", "<br>Click yes to enable this setting, knowing it might affect performance.</center></html>",
position = 1, position = 1,
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean removeDistanceCap() default boolean removeDistanceCap()
{ {
@@ -63,7 +64,7 @@ public interface AgilityConfig extends Config
name = "Show Lap Count", name = "Show Lap Count",
description = "Enable/disable the lap counter", description = "Enable/disable the lap counter",
position = 2, position = 2,
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean showLapCount() default boolean showLapCount()
{ {
@@ -75,7 +76,7 @@ public interface AgilityConfig extends Config
name = "Hide Lap Count", name = "Hide Lap Count",
description = "Time in minutes until the lap counter hides/resets", description = "Time in minutes until the lap counter hides/resets",
position = 3, position = 3,
parent = "mainConfig", titleSection = "mainConfig",
hidden = true, hidden = true,
unhide = "showLapCount" unhide = "showLapCount"
) )
@@ -89,7 +90,7 @@ public interface AgilityConfig extends Config
name = "Show Laps Until Level", name = "Show Laps Until Level",
description = "Show number of laps remaining until next level is reached.", description = "Show number of laps remaining until next level is reached.",
position = 4, position = 4,
parent = "mainConfig", titleSection = "mainConfig",
hidden = true, hidden = true,
unhide = "showLapCount" unhide = "showLapCount"
) )
@@ -103,7 +104,7 @@ public interface AgilityConfig extends Config
name = "Show Laps Until Goal", name = "Show Laps Until Goal",
description = "Show number of laps remaining until experience tracker goal is reached", description = "Show number of laps remaining until experience tracker goal is reached",
position = 5, position = 5,
parent = "mainConfig", titleSection = "mainConfig",
hidden = true, hidden = true,
unhide = "showLapCount" unhide = "showLapCount"
) )
@@ -117,7 +118,7 @@ public interface AgilityConfig extends Config
name = "Agility Arena timer", name = "Agility Arena timer",
description = "Configures whether Agility Arena timer is displayed", description = "Configures whether Agility Arena timer is displayed",
position = 6, position = 6,
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean showAgilityArenaTimer() default boolean showAgilityArenaTimer()
{ {
@@ -129,22 +130,22 @@ public interface AgilityConfig extends Config
name = "Show Shortcut Agility Reqs", name = "Show Shortcut Agility Reqs",
description = "Enable/disable showing shortcut agility level requirements in right-click options", description = "Enable/disable showing shortcut agility level requirements in right-click options",
position = 7, position = 7,
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean showShortcutLevel() default boolean showShortcutLevel()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
position = 8,
keyName = "miscConfig", keyName = "miscConfig",
position = 8,
name = "Misc Config", name = "Misc Config",
description = "" description = ""
) )
default Stub miscConfig() default Title miscConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -152,7 +153,7 @@ public interface AgilityConfig extends Config
name = "Highlight Marks of Grace", name = "Highlight Marks of Grace",
description = "Enable/disable the highlighting of retrievable Marks of Grace", description = "Enable/disable the highlighting of retrievable Marks of Grace",
position = 9, position = 9,
parent = "miscConfig" titleSection = "miscConfig"
) )
default boolean highlightMarks() default boolean highlightMarks()
{ {
@@ -164,7 +165,7 @@ public interface AgilityConfig extends Config
name = "Highlight Agility Shortcuts", name = "Highlight Agility Shortcuts",
description = "Enable/disable the highlighting of Agility shortcuts", description = "Enable/disable the highlighting of Agility shortcuts",
position = 10, position = 10,
parent = "miscConfig" titleSection = "miscConfig"
) )
default boolean highlightShortcuts() default boolean highlightShortcuts()
{ {
@@ -176,7 +177,7 @@ public interface AgilityConfig extends Config
name = "Highlight Traps", name = "Highlight Traps",
description = "Enable/disable the highlighting of traps on Agility courses", description = "Enable/disable the highlighting of traps on Agility courses",
position = 11, position = 11,
parent = "miscConfig" titleSection = "miscConfig"
) )
default boolean showTrapOverlay() default boolean showTrapOverlay()
{ {
@@ -188,7 +189,7 @@ public interface AgilityConfig extends Config
name = "Agility Arena notifier", name = "Agility Arena notifier",
description = "Notify on ticket location change in Agility Arena", description = "Notify on ticket location change in Agility Arena",
position = 12, position = 12,
parent = "miscConfig" titleSection = "miscConfig"
) )
default boolean notifyAgilityArena() default boolean notifyAgilityArena()
{ {
@@ -200,7 +201,7 @@ public interface AgilityConfig extends Config
name = "Global Overlay Color", name = "Global Overlay Color",
description = "Color of Agility overlay", description = "Color of Agility overlay",
position = 13, position = 13,
parent = "miscConfig" titleSection = "miscConfig"
) )
default Color getOverlayColor() default Color getOverlayColor()
{ {
@@ -212,7 +213,7 @@ public interface AgilityConfig extends Config
name = "Trap Overlay Color", name = "Trap Overlay Color",
description = "Color of Agility trap overlay", description = "Color of Agility trap overlay",
position = 14, position = 14,
parent = "miscConfig", titleSection = "miscConfig",
hidden = true, hidden = true,
unhide = "showTrapOverlay" unhide = "showTrapOverlay"
) )
@@ -226,7 +227,7 @@ public interface AgilityConfig extends Config
name = "Mark Highlight Color", name = "Mark Highlight Color",
description = "Color of highlighted Marks of Grace", description = "Color of highlighted Marks of Grace",
position = 15, position = 15,
parent = "miscConfig", titleSection = "miscConfig",
hidden = true, hidden = true,
unhide = "highlightMarks" unhide = "highlightMarks"
) )

View File

@@ -33,8 +33,9 @@ import lombok.Getter;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("aoe") @ConfigGroup("aoe")
public interface AoeWarningConfig extends Config public interface AoeWarningConfig extends Config
@@ -57,26 +58,38 @@ public interface AoeWarningConfig extends Config
} }
} }
@ConfigTitleSection(
keyName = "notifyTitle",
name = "Notify",
description = "",
position = -1
)
default Title notifyTitle()
{
return new Title();
}
@ConfigItem( @ConfigItem(
keyName = "aoeNotifyAll", keyName = "aoeNotifyAll",
name = "Notify for all AoE warnings", name = "Notify for all AoE warnings",
description = "Configures whether or not AoE Projectile Warnings should trigger a notification", description = "Configures whether or not AoE Projectile Warnings should trigger a notification",
position = 0 position = 0,
titleSection = "notifyTitle"
) )
default boolean aoeNotifyAll() default boolean aoeNotifyAll()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "overlayStub", keyName = "overlayTitle",
name = "Overlay", name = "Overlay",
description = "", description = "",
position = 1 position = 1
) )
default Stub overlayStub() default Title overlayTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -84,7 +97,7 @@ public interface AoeWarningConfig extends Config
keyName = "overlayColor", keyName = "overlayColor",
name = "Overlay Color", name = "Overlay Color",
description = "Configures the color of the AoE Projectile Warnings overlay", description = "Configures the color of the AoE Projectile Warnings overlay",
parent = "overlayStub" titleSection = "overlayTitle"
) )
default Color overlayColor() default Color overlayColor()
{ {
@@ -95,7 +108,7 @@ public interface AoeWarningConfig extends Config
keyName = "outline", keyName = "outline",
name = "Display Outline", name = "Display Outline",
description = "Configures whether or not AoE Projectile Warnings have an outline", description = "Configures whether or not AoE Projectile Warnings have an outline",
parent = "overlayStub", titleSection = "overlayTitle",
position = 3 position = 3
) )
default boolean isOutlineEnabled() default boolean isOutlineEnabled()
@@ -107,7 +120,7 @@ public interface AoeWarningConfig extends Config
keyName = "delay", keyName = "delay",
name = "Fade Delay", name = "Fade Delay",
description = "Configures the amount of time in milliseconds that the warning lingers for after the projectile has touched the ground", description = "Configures the amount of time in milliseconds that the warning lingers for after the projectile has touched the ground",
parent = "overlayStub", titleSection = "overlayTitle",
position = 4 position = 4
) )
default int delay() default int delay()
@@ -119,7 +132,7 @@ public interface AoeWarningConfig extends Config
keyName = "fade", keyName = "fade",
name = "Fade Warnings", name = "Fade Warnings",
description = "Configures whether or not AoE Projectile Warnings fade over time", description = "Configures whether or not AoE Projectile Warnings fade over time",
parent = "overlayStub", titleSection = "overlayTitle",
position = 5 position = 5
) )
default boolean isFadeEnabled() default boolean isFadeEnabled()
@@ -131,7 +144,7 @@ public interface AoeWarningConfig extends Config
keyName = "tickTimers", keyName = "tickTimers",
name = "Tick Timers", name = "Tick Timers",
description = "Configures whether or not AoE Projectile Warnings has tick timers overlaid as well.", description = "Configures whether or not AoE Projectile Warnings has tick timers overlaid as well.",
parent = "overlayStub", titleSection = "overlayTitle",
position = 6 position = 6
) )
default boolean tickTimers() default boolean tickTimers()
@@ -139,17 +152,17 @@ public interface AoeWarningConfig extends Config
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "textTitle",
position = 7, position = 7,
keyName = "text",
name = "Text", name = "Text",
description = "", description = "",
hidden = true, hidden = true,
unhide = "tickTimers" unhide = "tickTimers"
) )
default Stub text() default Title textTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -157,7 +170,7 @@ public interface AoeWarningConfig extends Config
keyName = "fontStyle", keyName = "fontStyle",
name = "Font Style", name = "Font Style",
description = "Bold/Italics/Plain", description = "Bold/Italics/Plain",
parent = "text", titleSection = "textTitle",
hidden = true, hidden = true,
unhide = "tickTimers" unhide = "tickTimers"
) )
@@ -175,7 +188,7 @@ public interface AoeWarningConfig extends Config
keyName = "textSize", keyName = "textSize",
name = "Text Size", name = "Text Size",
description = "Text Size for Timers.", description = "Text Size for Timers.",
parent = "text", titleSection = "textTitle",
hidden = true, hidden = true,
unhide = "tickTimers" unhide = "tickTimers"
) )
@@ -189,7 +202,7 @@ public interface AoeWarningConfig extends Config
keyName = "shadows", keyName = "shadows",
name = "Shadows", name = "Shadows",
description = "Adds Shadows to text.", description = "Adds Shadows to text.",
parent = "text", titleSection = "textTitle",
hidden = true, hidden = true,
unhide = "tickTimers" unhide = "tickTimers"
) )
@@ -198,34 +211,34 @@ public interface AoeWarningConfig extends Config
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "npcStub", keyName = "npcTitle",
name = "NPC's", name = "NPC's",
description = "", description = "",
position = 11 position = 11
) )
default Stub npcStub() default Title npcTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigTitleSection(
keyName = "lizardmanaoeStub", keyName = "lizardmanaoeTitle",
name = "Lizardman Shamans", name = "Lizardman Shamans",
description = "", description = "",
position = 12, position = 12,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub lizardmanaoeStub() default Title lizardmanaoeTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "lizardmanaoe", keyName = "lizardmanaoe",
name = "Lizardman Shamans", name = "Lizardman Shamans",
description = "Configures whether or not AoE Projectile Warnings for Lizardman Shamans is displayed", description = "Configures whether or not AoE Projectile Warnings for Lizardman Shamans is displayed",
parent = "lizardmanaoeStub", titleSection = "lizardmanaoeTitle",
position = 13 position = 13
) )
default boolean isShamansEnabled() default boolean isShamansEnabled()
@@ -237,7 +250,7 @@ public interface AoeWarningConfig extends Config
keyName = "lizardmanaoenotify", keyName = "lizardmanaoenotify",
name = "Lizardman Shamans Notify", name = "Lizardman Shamans Notify",
description = "Configures whether or not AoE Projectile Warnings for Lizardman Shamans should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Lizardman Shamans should trigger a notification",
parent = "lizardmanaoeStub", titleSection = "lizardmanaoeTitle",
position = 14, position = 14,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -246,23 +259,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "archaeologistaoeStub", keyName = "archaeologistaoeTitle",
name = "Crazy Archaeologist", name = "Crazy Archaeologist",
description = "", description = "",
position = 15, position = 15,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub archaeologistaoeStub() default Title archaeologistaoeTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "archaeologistaoe", keyName = "archaeologistaoe",
name = "Crazy Archaeologist", name = "Crazy Archaeologist",
description = "Configures whether or not AoE Projectile Warnings for Archaeologist is displayed", description = "Configures whether or not AoE Projectile Warnings for Archaeologist is displayed",
parent = "archaeologistaoeStub", titleSection = "archaeologistaoeTitle",
position = 16 position = 16
) )
default boolean isArchaeologistEnabled() default boolean isArchaeologistEnabled()
@@ -274,7 +287,7 @@ public interface AoeWarningConfig extends Config
keyName = "archaeologistaoenotify", keyName = "archaeologistaoenotify",
name = "Crazy Archaeologist Notify", name = "Crazy Archaeologist Notify",
description = "Configures whether or not AoE Projectile Warnings for Crazy Archaeologist should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Crazy Archaeologist should trigger a notification",
parent = "archaeologistaoeStub", titleSection = "archaeologistaoeTitle",
position = 17, position = 17,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -283,23 +296,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "icedemonStub", keyName = "icedemonTitle",
name = "Ice Demon", name = "Ice Demon",
description = "", description = "",
position = 18, position = 18,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub icedemonStub() default Title icedemonTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "icedemon", keyName = "icedemon",
name = "Ice Demon", name = "Ice Demon",
description = "Configures whether or not AoE Projectile Warnings for Ice Demon is displayed", description = "Configures whether or not AoE Projectile Warnings for Ice Demon is displayed",
parent = "icedemonStub", titleSection = "icedemonTitle",
position = 19 position = 19
) )
default boolean isIceDemonEnabled() default boolean isIceDemonEnabled()
@@ -311,7 +324,7 @@ public interface AoeWarningConfig extends Config
keyName = "icedemonnotify", keyName = "icedemonnotify",
name = "Ice Demon Notify", name = "Ice Demon Notify",
description = "Configures whether or not AoE Projectile Warnings for Ice Demon should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Ice Demon should trigger a notification",
parent = "icedemonStub", titleSection = "icedemonTitle",
position = 20, position = 20,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -320,23 +333,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "vasaStub", keyName = "vasaTitle",
name = "Vasa", name = "Vasa",
description = "", description = "",
position = 21, position = 21,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub vasaStub() default Title vasaTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "vasa", keyName = "vasa",
name = "Vasa", name = "Vasa",
description = "Configures whether or not AoE Projectile Warnings for Vasa is displayed", description = "Configures whether or not AoE Projectile Warnings for Vasa is displayed",
parent = "vasaStub", titleSection = "vasaTitle",
position = 22 position = 22
) )
default boolean isVasaEnabled() default boolean isVasaEnabled()
@@ -348,7 +361,7 @@ public interface AoeWarningConfig extends Config
keyName = "vasanotify", keyName = "vasanotify",
name = "Vasa Notify", name = "Vasa Notify",
description = "Configures whether or not AoE Projectile Warnings for Vasa should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Vasa should trigger a notification",
parent = "vasaStub", titleSection = "vasaTitle",
position = 23, position = 23,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -357,23 +370,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "tektonStub", keyName = "tektonTitle",
name = "Tekton", name = "Tekton",
description = "", description = "",
position = 24, position = 24,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub tektonStub() default Title tektonTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "tekton", keyName = "tekton",
name = "Tekton", name = "Tekton",
description = "Configures whether or not AoE Projectile Warnings for Tekton is displayed", description = "Configures whether or not AoE Projectile Warnings for Tekton is displayed",
parent = "tektonStub", titleSection = "tektonTitle",
position = 25 position = 25
) )
default boolean isTektonEnabled() default boolean isTektonEnabled()
@@ -385,7 +398,7 @@ public interface AoeWarningConfig extends Config
keyName = "tektonnotify", keyName = "tektonnotify",
name = "Tekton Notify", name = "Tekton Notify",
description = "Configures whether or not AoE Projectile Warnings for Tekton should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Tekton should trigger a notification",
parent = "tektonStub", titleSection = "tektonTitle",
position = 26, position = 26,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -394,23 +407,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "vorkathStub", keyName = "vorkathTitle",
name = "Vorkath", name = "Vorkath",
description = "", description = "",
position = 27, position = 27,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub vorkathStub() default Title vorkathTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "vorkath", keyName = "vorkath",
name = "Vorkath", name = "Vorkath",
description = "Configures whether or not AoE Projectile Warnings for Vorkath are displayed", description = "Configures whether or not AoE Projectile Warnings for Vorkath are displayed",
parent = "vorkathStub", titleSection = "vorkathTitle",
position = 28 position = 28
) )
default boolean isVorkathEnabled() default boolean isVorkathEnabled()
@@ -422,7 +435,7 @@ public interface AoeWarningConfig extends Config
keyName = "vorkathotify", keyName = "vorkathotify",
name = "Vorkath Notify", name = "Vorkath Notify",
description = "Configures whether or not AoE Projectile Warnings for Vorkath should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Vorkath should trigger a notification",
parent = "vorkathStub", titleSection = "vorkathTitle",
position = 29, position = 29,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -431,23 +444,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "galvekStub", keyName = "galvekTitle",
name = "Galvek", name = "Galvek",
description = "", description = "",
position = 30, position = 30,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub galvekStub() default Title galvekTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "galvek", keyName = "galvek",
name = "Galvek", name = "Galvek",
description = "Configures whether or not AoE Projectile Warnings for Galvek are displayed", description = "Configures whether or not AoE Projectile Warnings for Galvek are displayed",
parent = "galvekStub", titleSection = "galvekTitle",
position = 31 position = 31
) )
default boolean isGalvekEnabled() default boolean isGalvekEnabled()
@@ -459,7 +472,7 @@ public interface AoeWarningConfig extends Config
keyName = "galveknotify", keyName = "galveknotify",
name = "Galvek Notify", name = "Galvek Notify",
description = "Configures whether or not AoE Projectile Warnings for Galvek should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Galvek should trigger a notification",
parent = "galvekStub", titleSection = "galvekTitle",
position = 32, position = 32,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -468,23 +481,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "gargbossStub", keyName = "gargbossTitle",
name = "Gargoyle Boss", name = "Gargoyle Boss",
description = "", description = "",
position = 33, position = 33,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub gargbossStub() default Title gargbossTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "gargboss", keyName = "gargboss",
name = "Gargoyle Boss", name = "Gargoyle Boss",
description = "Configs whether or not AoE Projectile Warnings for Dawn/Dusk are displayed", description = "Configs whether or not AoE Projectile Warnings for Dawn/Dusk are displayed",
parent = "gargbossStub", titleSection = "gargbossTitle",
position = 34 position = 34
) )
default boolean isGargBossEnabled() default boolean isGargBossEnabled()
@@ -496,7 +509,7 @@ public interface AoeWarningConfig extends Config
keyName = "gargbossnotify", keyName = "gargbossnotify",
name = "Gargoyle Boss Notify", name = "Gargoyle Boss Notify",
description = "Configures whether or not AoE Projectile Warnings for Gargoyle Bosses should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Gargoyle Bosses should trigger a notification",
parent = "gargbossStub", titleSection = "gargbossTitle",
position = 35, position = 35,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -505,23 +518,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "vetionStub", keyName = "vetionTitle",
name = "Vet'ion", name = "Vet'ion",
description = "", description = "",
position = 36, position = 36,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub vetionStub() default Title vetionTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "vetion", keyName = "vetion",
name = "Vet'ion", name = "Vet'ion",
description = "Configures whether or not AoE Projectile Warnings for Vet'ion are displayed", description = "Configures whether or not AoE Projectile Warnings for Vet'ion are displayed",
parent = "vetionStub", titleSection = "vetionTitle",
position = 37 position = 37
) )
default boolean isVetionEnabled() default boolean isVetionEnabled()
@@ -533,7 +546,7 @@ public interface AoeWarningConfig extends Config
keyName = "vetionnotify", keyName = "vetionnotify",
name = "Vet'ion Notify", name = "Vet'ion Notify",
description = "Configures whether or not AoE Projectile Warnings for Vet'ion should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Vet'ion should trigger a notification",
parent = "vetionStub", titleSection = "vetionTitle",
position = 38, position = 38,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -542,23 +555,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "chaosfanaticStub", keyName = "chaosfanaticTitle",
name = "Chaos Fanatic", name = "Chaos Fanatic",
description = "", description = "",
position = 39, position = 39,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub chaosfanaticStub() default Title chaosfanaticTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "chaosfanatic", keyName = "chaosfanatic",
name = "Chaos Fanatic", name = "Chaos Fanatic",
description = "Configures whether or not AoE Projectile Warnings for Chaos Fanatic are displayed", description = "Configures whether or not AoE Projectile Warnings for Chaos Fanatic are displayed",
parent = "chaosfanaticStub", titleSection = "chaosfanaticTitle",
position = 40 position = 40
) )
default boolean isChaosFanaticEnabled() default boolean isChaosFanaticEnabled()
@@ -570,7 +583,7 @@ public interface AoeWarningConfig extends Config
keyName = "chaosfanaticnotify", keyName = "chaosfanaticnotify",
name = "Chaos Fanatic Notify", name = "Chaos Fanatic Notify",
description = "Configures whether or not AoE Projectile Warnings for Chaos Fanatic should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Chaos Fanatic should trigger a notification",
parent = "chaosfanaticStub", titleSection = "chaosfanaticTitle",
position = 41, position = 41,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -579,23 +592,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "olmStub", keyName = "olmTitle",
name = "Olm", name = "Olm",
description = "", description = "",
position = 42, position = 42,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub olmStub() default Title olmTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "olm", keyName = "olm",
name = "Olm", name = "Olm",
description = "Configures whether or not AoE Projectile Warnings for The Great Olm are displayed", description = "Configures whether or not AoE Projectile Warnings for The Great Olm are displayed",
parent = "olmStub", titleSection = "olmTitle",
position = 43 position = 43
) )
default boolean isOlmEnabled() default boolean isOlmEnabled()
@@ -607,7 +620,7 @@ public interface AoeWarningConfig extends Config
keyName = "olmnotify", keyName = "olmnotify",
name = "Olm Notify", name = "Olm Notify",
description = "Configures whether or not AoE Projectile Warnings for Olm should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Olm should trigger a notification",
parent = "olmStub", titleSection = "olmTitle",
position = 44, position = 44,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -616,23 +629,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "olmBombStub", keyName = "olmBombsTitle",
name = "Bombs", name = "Bombs",
description = "", description = "",
position = 45, position = 45,
parent = "olmStub" titleSection = "olmTitle"
) )
default Stub olmBombsStub() default Title olmBombsTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "bombDisplay", keyName = "bombDisplay",
name = "Olm Bombs", name = "Olm Bombs",
description = "Display a timer and colour-coded AoE for Olm's crystal-phase bombs.", description = "Display a timer and colour-coded AoE for Olm's crystal-phase bombs.",
parent = "olmBombStub", titleSection = "olmBombsTitle",
position = 46 position = 46
) )
default boolean bombDisplay() default boolean bombDisplay()
@@ -644,7 +657,7 @@ public interface AoeWarningConfig extends Config
keyName = "bombDisplaynotify", keyName = "bombDisplaynotify",
name = "Olm Bombs Notify", name = "Olm Bombs Notify",
description = "Configures whether or not AoE Projectile Warnings for Olm Bombs should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Olm Bombs should trigger a notification",
parent = "olmBombStub", titleSection = "olmBombsTitle",
position = 47, position = 47,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -653,23 +666,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "olmlightningStub", keyName = "olmlightningTitle",
name = "Lightning Trails", name = "Lightning Trails",
description = "", description = "",
position = 48, position = 48,
parent = "olmStub" titleSection = "olmTitle"
) )
default Stub olmlightningStub() default Title olmlightningTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "lightning", keyName = "lightning",
name = "Olm Lightning Trails", name = "Olm Lightning Trails",
description = "Show Lightning Trails", description = "Show Lightning Trails",
parent = "olmlightningStub", titleSection = "olmlightningTitle",
position = 49 position = 49
) )
default boolean LightningTrail() default boolean LightningTrail()
@@ -681,7 +694,7 @@ public interface AoeWarningConfig extends Config
keyName = "lightningnotify", keyName = "lightningnotify",
name = "Olm Lightning Trails Notify", name = "Olm Lightning Trails Notify",
description = "Configures whether or not AoE Projectile Warnings for Olm Lightning Trails should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Olm Lightning Trails should trigger a notification",
parent = "olmlightningStub", titleSection = "olmlightningTitle",
position = 50, position = 50,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -690,23 +703,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "corpStub", keyName = "corpTitle",
name = "Corporeal Beast", name = "Corporeal Beast",
description = "", description = "",
position = 51, position = 51,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub corpStub() default Title corpTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "corp", keyName = "corp",
name = "Corporeal Beast", name = "Corporeal Beast",
description = "Configures whether or not AoE Projectile Warnings for the Corporeal Beast are displayed", description = "Configures whether or not AoE Projectile Warnings for the Corporeal Beast are displayed",
parent = "corpStub", titleSection = "corpTitle",
position = 52 position = 52
) )
default boolean isCorpEnabled() default boolean isCorpEnabled()
@@ -718,7 +731,7 @@ public interface AoeWarningConfig extends Config
keyName = "corpnotify", keyName = "corpnotify",
name = "Corporeal Beast Notify", name = "Corporeal Beast Notify",
description = "Configures whether or not AoE Projectile Warnings for Corporeal Beast should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Corporeal Beast should trigger a notification",
parent = "corpStub", titleSection = "corpTitle",
position = 53, position = 53,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -727,23 +740,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "wintertodtStub", keyName = "wintertodtTitle",
name = "Wintertodt", name = "Wintertodt",
description = "", description = "",
position = 54, position = 54,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub wintertodtStub() default Title wintertodtTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "wintertodt", keyName = "wintertodt",
name = "Wintertodt Snow Fall", name = "Wintertodt Snow Fall",
description = "Configures whether or not AOE Projectile Warnings for the Wintertodt snow fall are displayed", description = "Configures whether or not AOE Projectile Warnings for the Wintertodt snow fall are displayed",
parent = "wintertodtStub", titleSection = "wintertodtTitle",
position = 55 position = 55
) )
default boolean isWintertodtEnabled() default boolean isWintertodtEnabled()
@@ -755,7 +768,7 @@ public interface AoeWarningConfig extends Config
keyName = "wintertodtnotify", keyName = "wintertodtnotify",
name = "Wintertodt Snow Fall Notify", name = "Wintertodt Snow Fall Notify",
description = "Configures whether or not AoE Projectile Warnings for Wintertodt Snow Fall Notify should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Wintertodt Snow Fall Notify should trigger a notification",
parent = "wintertodtStub", titleSection = "wintertodtTitle",
position = 56, position = 56,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -764,23 +777,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "xarpusStub", keyName = "xarpusTitle",
name = "Xarpus", name = "Xarpus",
description = "", description = "",
position = 57, position = 57,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub xarpusStub() default Title xarpusTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "isXarpusEnabled", keyName = "isXarpusEnabled",
name = "Xarpus", name = "Xarpus",
description = "Configures whether or not AOE Projectile Warnings for Xarpus are displayed", description = "Configures whether or not AOE Projectile Warnings for Xarpus are displayed",
parent = "xarpusStub", titleSection = "xarpusTitle",
position = 58 position = 58
) )
default boolean isXarpusEnabled() default boolean isXarpusEnabled()
@@ -792,7 +805,7 @@ public interface AoeWarningConfig extends Config
keyName = "isXarpusEnablednotify", keyName = "isXarpusEnablednotify",
name = "Xarpus Notify", name = "Xarpus Notify",
description = "Configures whether or not AoE Projectile Warnings for Xarpus should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Xarpus should trigger a notification",
parent = "xarpusStub", titleSection = "xarpusTitle",
position = 59, position = 59,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -801,23 +814,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "addyDragsStub", keyName = "addyDragsTitle",
name = "Addy Drags", name = "Addy Drags",
description = "", description = "",
position = 60, position = 60,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub addyDragsStub() default Title addyDragsTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "addyDrags", keyName = "addyDrags",
name = "Addy Drags", name = "Addy Drags",
description = "Show Bad Areas", description = "Show Bad Areas",
parent = "addyDragsStub", titleSection = "addyDragsTitle",
position = 61 position = 61
) )
default boolean addyDrags() default boolean addyDrags()
@@ -829,7 +842,7 @@ public interface AoeWarningConfig extends Config
keyName = "addyDragsnotify", keyName = "addyDragsnotify",
name = "Addy Drags Notify", name = "Addy Drags Notify",
description = "Configures whether or not AoE Projectile Warnings for Addy Dragons should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Addy Dragons should trigger a notification",
parent = "addyDragsStub", titleSection = "addyDragsTitle",
position = 62, position = 62,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -838,23 +851,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "drakeStub", keyName = "drakeTitle",
name = "Drakes", name = "Drakes",
description = "", description = "",
position = 63, position = 63,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub drakeStub() default Title drakeTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "drake", keyName = "drake",
name = "Drakes Breath", name = "Drakes Breath",
description = "Configures if Drakes Breath tile markers are displayed", description = "Configures if Drakes Breath tile markers are displayed",
parent = "drakeStub", titleSection = "drakeTitle",
position = 64 position = 64
) )
default boolean isDrakeEnabled() default boolean isDrakeEnabled()
@@ -866,7 +879,7 @@ public interface AoeWarningConfig extends Config
keyName = "drakenotify", keyName = "drakenotify",
name = "Drakes Breath Notify", name = "Drakes Breath Notify",
description = "Configures whether or not AoE Projectile Warnings for Drakes Breath should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Drakes Breath should trigger a notification",
parent = "drakeStub", titleSection = "drakeTitle",
position = 65, position = 65,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -875,23 +888,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "cerberusStub", keyName = "cerberusTitle",
name = "Cerberus", name = "Cerberus",
description = "", description = "",
position = 66, position = 66,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub cerberusStub() default Title cerberusTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "cerbFire", keyName = "cerbFire",
name = "Cerberus Fire", name = "Cerberus Fire",
description = "Configures if Cerberus fire tile markers are displayed", description = "Configures if Cerberus fire tile markers are displayed",
parent = "cerberusStub", titleSection = "cerberusTitle",
position = 67 position = 67
) )
default boolean isCerbFireEnabled() default boolean isCerbFireEnabled()
@@ -903,7 +916,7 @@ public interface AoeWarningConfig extends Config
keyName = "cerbFirenotify", keyName = "cerbFirenotify",
name = "Cerberus Fire Notify", name = "Cerberus Fire Notify",
description = "Configures whether or not AoE Projectile Warnings for Cerberus his fire should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Cerberus his fire should trigger a notification",
parent = "cerberusStub", titleSection = "cerberusTitle",
position = 68, position = 68,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )
@@ -912,23 +925,23 @@ public interface AoeWarningConfig extends Config
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "demonicGorillaStub", keyName = "demonicGorillaTitle",
name = "Demonic Gorilla", name = "Demonic Gorilla",
description = "", description = "",
position = 69, position = 69,
parent = "npcStub" titleSection = "npcTitle"
) )
default Stub demonicGorillaStub() default Title demonicGorillaTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "demonicGorilla", keyName = "demonicGorilla",
name = "Demonic Gorilla", name = "Demonic Gorilla",
description = "Configures if Demonic Gorilla boulder tile markers are displayed", description = "Configures if Demonic Gorilla boulder tile markers are displayed",
parent = "demonicGorillaStub", titleSection = "demonicGorillaTitle",
position = 70 position = 70
) )
default boolean isDemonicGorillaEnabled() default boolean isDemonicGorillaEnabled()
@@ -940,7 +953,7 @@ public interface AoeWarningConfig extends Config
keyName = "demonicGorillaNotify", keyName = "demonicGorillaNotify",
name = "Demonic Gorilla Notify", name = "Demonic Gorilla Notify",
description = "Configures whether or not AoE Projectile Warnings for Demonic Gorilla boulders should trigger a notification", description = "Configures whether or not AoE Projectile Warnings for Demonic Gorilla boulders should trigger a notification",
parent = "demonicGorillaStub", titleSection = "demonicGorillaTitle",
position = 71, position = 71,
hide = "aoeNotifyAll" hide = "aoeNotifyAll"
) )

View File

@@ -29,6 +29,7 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
@ConfigGroup("barbarianAssault") @ConfigGroup("barbarianAssault")
@@ -157,12 +158,23 @@ public interface BarbarianAssaultConfig extends Config
/*/// Attacker ///*/ /*/// Attacker ///*/
/*///************///*/ /*///************///*/
@ConfigSection(
name = "Attacker",
description = "",
position = 10,
keyName = "attackerSection"
)
default boolean attackerSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "highlightArrows", keyName = "highlightArrows",
name = "Highlight called arrows", name = "Highlight called arrows",
description = "Highlights arrows called by your teammate", description = "Highlights arrows called by your teammate",
position = 0, position = 0,
group = "Attacker" section = "attackerSection"
) )
default boolean highlightArrows() default boolean highlightArrows()
{ {
@@ -174,7 +186,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Arrow color", name = "Arrow color",
description = "Configures the color to highlight the called arrows", description = "Configures the color to highlight the called arrows",
position = 1, position = 1,
group = "Attacker", section = "attackerSection",
hidden = true, hidden = true,
unhide = "highlightArrows" unhide = "highlightArrows"
) )
@@ -188,7 +200,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Remove incorrect attack styles", name = "Remove incorrect attack styles",
description = "Hides wrong attack styles for dragon claws and crystal halberd", description = "Hides wrong attack styles for dragon claws and crystal halberd",
position = 2, position = 2,
group = "Attacker" section = "attackerSection"
) )
default boolean removeIncorrectAttackStyles() default boolean removeIncorrectAttackStyles()
{ {
@@ -200,7 +212,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Enable tagging", name = "Enable tagging",
description = "Highlights the menu entry of an attacker/ranger that has not been tagged.", description = "Highlights the menu entry of an attacker/ranger that has not been tagged.",
position = 3, position = 3,
group = "Attacker" section = "attackerSection"
) )
default boolean tagging() default boolean tagging()
{ {
@@ -211,13 +223,24 @@ public interface BarbarianAssaultConfig extends Config
/*///************///*/ /*///************///*/
/*/// Defender ///*/ /*/// Defender ///*/
/*///************///*/ /*///************///*/
@ConfigSection(
name = "Defender",
description = "",
position = 11,
keyName = "defenderSection"
)
default boolean defenderSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "highlightBait", keyName = "highlightBait",
name = "Highlight called bait", name = "Highlight called bait",
description = "Highlights bait called by your teammate", description = "Highlights bait called by your teammate",
position = 0, position = 0,
group = "Defender" section = "defenderSection"
) )
default boolean highlightBait() default boolean highlightBait()
{ {
@@ -229,7 +252,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Bait color", name = "Bait color",
description = "Configures the color to highlight the called bait", description = "Configures the color to highlight the called bait",
position = 1, position = 1,
group = "Defender", section = "defenderSection",
hidden = true, hidden = true,
unhide = "highlightBait" unhide = "highlightBait"
) )
@@ -243,7 +266,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show defender tick timer", name = "Show defender tick timer",
description = "Shows the current cycle tick of runners", description = "Shows the current cycle tick of runners",
position = 2, position = 2,
group = "Defender" section = "defenderSection"
) )
default boolean showDefTimer() default boolean showDefTimer()
{ {
@@ -255,7 +278,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Deprioritize bait", name = "Deprioritize bait",
description = "Moves 'Take' menu option for all bait below 'Walk Here'", description = "Moves 'Take' menu option for all bait below 'Walk Here'",
position = 3, position = 3,
group = "Defender" section = "defenderSection"
) )
default boolean deprioritizeBait() default boolean deprioritizeBait()
{ {
@@ -267,7 +290,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Remove penance cave", name = "Remove penance cave",
description = "Removes 'Block' menu option from penance cave", description = "Removes 'Block' menu option from penance cave",
position = 4, position = 4,
group = "Defender" section = "defenderSection"
) )
default boolean removePenanceCave() default boolean removePenanceCave()
{ {
@@ -278,13 +301,24 @@ public interface BarbarianAssaultConfig extends Config
/*///**********///*/ /*///**********///*/
/*/// Healer ///*/ /*/// Healer ///*/
/*///**********///*/ /*///**********///*/
@ConfigSection(
name = "Healer",
description = "",
position = 12,
keyName = "healerSection"
)
default boolean healerSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "highlightPoison", keyName = "highlightPoison",
name = "Highlight called poison", name = "Highlight called poison",
description = "Highlights poison called by your teammate", description = "Highlights poison called by your teammate",
position = 0, position = 0,
group = "Healer" section = "healerSection"
) )
default boolean highlightPoison() default boolean highlightPoison()
{ {
@@ -296,7 +330,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Poison color", name = "Poison color",
description = "Configures the color to highlight the called poison", description = "Configures the color to highlight the called poison",
position = 1, position = 1,
group = "Healer", section = "healerSection",
hidden = true, hidden = true,
unhide = "highlightPoison" unhide = "highlightPoison"
) )
@@ -310,7 +344,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Highlight incorrect notification", name = "Highlight incorrect notification",
description = "Highlights incorrect poison chat notification", description = "Highlights incorrect poison chat notification",
position = 2, position = 2,
group = "Healer" section = "healerSection"
) )
default boolean highlightNotification() default boolean highlightNotification()
{ {
@@ -322,7 +356,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Notification color", name = "Notification color",
description = "Configures the color to highlight the notification text", description = "Configures the color to highlight the notification text",
position = 3, position = 3,
group = "Healer", section = "healerSection",
hidden = true, hidden = true,
unhide = "highlightNotification" unhide = "highlightNotification"
) )
@@ -336,7 +370,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show number of hitpoints healed", name = "Show number of hitpoints healed",
description = "Displays current number of hitpoints healed", description = "Displays current number of hitpoints healed",
position = 4, position = 4,
group = "Healer" section = "healerSection"
) )
default boolean showHpCountOverlay() default boolean showHpCountOverlay()
{ {
@@ -348,7 +382,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show health bars", name = "Show health bars",
description = "Displays a health bar where a teammate's remaining health is located", description = "Displays a health bar where a teammate's remaining health is located",
position = 5, position = 5,
group = "Healer" section = "healerSection"
) )
default boolean showTeammateHealthbars() default boolean showTeammateHealthbars()
{ {
@@ -360,7 +394,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show healer codes", name = "Show healer codes",
description = "Overlay to show healer codes", description = "Overlay to show healer codes",
position = 6, position = 6,
group = "Healer" section = "healerSection"
) )
default boolean healerCodes() default boolean healerCodes()
{ {
@@ -372,7 +406,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show healer menu options", name = "Show healer menu options",
description = "Shows tick count in healer menu options", description = "Shows tick count in healer menu options",
position = 7, position = 7,
group = "Healer" section = "healerSection"
) )
default boolean healerMenuOption() default boolean healerMenuOption()
{ {
@@ -384,7 +418,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Enable shift overstock", name = "Enable shift overstock",
description = "Enables overstocking by pressing shift", description = "Enables overstocking by pressing shift",
position = 8, position = 8,
group = "Healer" section = "healerSection"
) )
default boolean shiftOverstock() default boolean shiftOverstock()
{ {
@@ -396,7 +430,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Control Healer", name = "Control Healer",
description = "Hold ctrl to put last healer clicked on top", description = "Hold ctrl to put last healer clicked on top",
position = 9, position = 9,
group = "Healer" section = "healerSection"
) )
default boolean controlHealer() default boolean controlHealer()
{ {
@@ -408,12 +442,23 @@ public interface BarbarianAssaultConfig extends Config
/*/// Collector ///*/ /*/// Collector ///*/
/*///*************///*/ /*///*************///*/
@ConfigSection(
name = "Collector",
description = "",
position = 13,
keyName = "collectorSection"
)
default boolean collectorSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "swapCollectorBag", keyName = "swapCollectorBag",
name = "Swap empty", name = "Swap empty",
description = "Enables swapping of 'Look-in' and 'Empty' on the collector's bag", description = "Enables swapping of 'Look-in' and 'Empty' on the collector's bag",
position = 0, position = 0,
group = "Collector" section = "collectorSection"
) )
default boolean swapCollectorBag() default boolean swapCollectorBag()
{ {
@@ -425,7 +470,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Swap destroy", name = "Swap destroy",
description = "Enables swapping of 'Use' and 'Destroy' on collector eggs; this does not affect yellow/omega eggs", description = "Enables swapping of 'Use' and 'Destroy' on collector eggs; this does not affect yellow/omega eggs",
position = 1, position = 1,
group = "Collector" section = "collectorSection"
) )
default boolean swapDestroyEggs() default boolean swapDestroyEggs()
{ {
@@ -437,7 +482,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Highlight collector eggs", name = "Highlight collector eggs",
description = "Highlight called egg colors", description = "Highlight called egg colors",
position = 2, position = 2,
group = "Collector" section = "collectorSection"
) )
default boolean highlightCollectorEggs() default boolean highlightCollectorEggs()
{ {
@@ -449,7 +494,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Deprioritize incorrect eggs", name = "Deprioritize incorrect eggs",
description = "Moves 'Take' menu option for incorrect eggs below 'Walk Here'", description = "Moves 'Take' menu option for incorrect eggs below 'Walk Here'",
position = 3, position = 3,
group = "Collector" section = "collectorSection"
) )
default boolean deprioritizeIncorrectEggs() default boolean deprioritizeIncorrectEggs()
{ {
@@ -461,7 +506,7 @@ public interface BarbarianAssaultConfig extends Config
name = "Show number of eggs collected", name = "Show number of eggs collected",
description = "Displays current number of eggs collected", description = "Displays current number of eggs collected",
position = 4, position = 4,
group = "Collector" section = "collectorSection"
) )
default boolean showEggCountOverlay() default boolean showEggCountOverlay()
{ {

View File

@@ -3,17 +3,29 @@ package net.runelite.client.plugins.chattranslation;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("chattranslation") @ConfigGroup("chattranslation")
public interface ChatTranslationConfig extends Config public interface ChatTranslationConfig extends Config
{ {
@ConfigTitleSection(
keyName = "chatTranslation",
name = "Chat Translation",
description = "",
position = 0
)
default Title chatTranslation()
{
return new Title();
}
@ConfigItem( @ConfigItem(
keyName = "translateOptionVisable", keyName = "translateOptionVisable",
name = "Show 'Translate' menu option", name = "Show 'Translate' menu option",
description = "Adds 'Translate' to the right-click menu in the Chatbox.", description = "Adds 'Translate' to the right-click menu in the Chatbox.",
position = 0, position = 1,
group = "Chat Translation" titleSection = "chatTranslation"
) )
default boolean translateOptionVisable() default boolean translateOptionVisable()
{ {
@@ -24,8 +36,8 @@ public interface ChatTranslationConfig extends Config
keyName = "publicChat", keyName = "publicChat",
name = "Translate incoming Messages", name = "Translate incoming Messages",
description = "Would you like to Translate Chat?", description = "Would you like to Translate Chat?",
position = 1, position = 2,
group = "Chat Translation", titleSection = "chatTranslation",
hidden = true, hidden = true,
unhide = "translateOptionVisable" unhide = "translateOptionVisable"
) )
@@ -38,8 +50,8 @@ public interface ChatTranslationConfig extends Config
keyName = "playerNames", keyName = "playerNames",
name = "Translated Player list:", name = "Translated Player list:",
description = "Players you add to this list will be Translated in chat.", description = "Players you add to this list will be Translated in chat.",
position = 2, position = 3,
group = "Chat Translation", titleSection = "chatTranslation",
hidden = true, hidden = true,
unhide = "translateOptionVisable" unhide = "translateOptionVisable"
) )
@@ -52,8 +64,8 @@ public interface ChatTranslationConfig extends Config
keyName = "publicTargetLanguage", keyName = "publicTargetLanguage",
name = "Target Language", name = "Target Language",
description = "Language to translate messages to.", description = "Language to translate messages to.",
position = 2, position = 4,
group = "Chat Translation", titleSection = "chatTranslation",
hidden = true, hidden = true,
unhide = "publicChat" unhide = "publicChat"
) )
@@ -62,12 +74,23 @@ public interface ChatTranslationConfig extends Config
return Languages.ENGLISH; return Languages.ENGLISH;
} }
@ConfigTitleSection(
keyName = "playerMessageTranslation",
name = "Player Message Translation",
description = "",
position = 5
)
default Title playerMessageTranslation()
{
return new Title();
}
@ConfigItem( @ConfigItem(
keyName = "playerChat", keyName = "playerChat",
name = "Translate outgoing Messages", name = "Translate outgoing Messages",
description = "Would you like to Translate your Messages?", description = "Would you like to Translate your Messages?",
position = 3, position = 6,
group = "Player Message Translation" titleSection = "playerMessageTranslation"
) )
default boolean playerChat() default boolean playerChat()
{ {
@@ -78,8 +101,8 @@ public interface ChatTranslationConfig extends Config
keyName = "playerTargetLanguage", keyName = "playerTargetLanguage",
name = "Target Language", name = "Target Language",
description = "Language to translate messages to.", description = "Language to translate messages to.",
position = 4, position = 7,
group = "Player Message Translation", titleSection = "playerMessageTranslation",
hidden = true, hidden = true,
unhide = "playerChat" unhide = "playerChat"
) )

View File

@@ -32,8 +32,9 @@ import lombok.Getter;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("Cox") @ConfigGroup("Cox")
@@ -57,15 +58,15 @@ public interface CoxConfig extends Config
} }
} }
@ConfigItem( @ConfigTitleSection(
keyName = "muttadileTitle",
position = 1, position = 1,
keyName = "muttadileStub",
name = "Muttadile", name = "Muttadile",
description = "" description = ""
) )
default Stub muttadileStub() default Title muttadileTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -73,22 +74,22 @@ public interface CoxConfig extends Config
keyName = "muttadile", keyName = "muttadile",
name = "Muttadile Marker", name = "Muttadile Marker",
description = "Places an overlay around muttadiles showing their melee range.", description = "Places an overlay around muttadiles showing their melee range.",
parent = "muttadileStub" titleSection = "muttadileTitle"
) )
default boolean muttadile() default boolean muttadile()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "tektonTitle",
position = 3, position = 3,
keyName = "tektonStub",
name = "Tekton", name = "Tekton",
description = "" description = ""
) )
default Stub tektonStub() default Title tektonTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -96,7 +97,7 @@ public interface CoxConfig extends Config
keyName = "tekton", keyName = "tekton",
name = "Tekton Marker", name = "Tekton Marker",
description = "Places an overlay around Tekton showing his melee range.", description = "Places an overlay around Tekton showing his melee range.",
parent = "tektonStub" titleSection = "tektonTitle"
) )
default boolean tekton() default boolean tekton()
{ {
@@ -108,22 +109,22 @@ public interface CoxConfig extends Config
keyName = "tektonTickCounter", keyName = "tektonTickCounter",
name = "Tekton Tick Counters", name = "Tekton Tick Counters",
description = "Counts down current phase timer, and attack ticks.", description = "Counts down current phase timer, and attack ticks.",
parent = "tektonStub" titleSection = "tektonTitle"
) )
default boolean tektonTickCounter() default boolean tektonTickCounter()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "guardiansTitle",
position = 5, position = 5,
keyName = "guardiansStub",
name = "Guardians", name = "Guardians",
description = "" description = ""
) )
default Stub guardiansStub() default Title guardiansTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -131,7 +132,7 @@ public interface CoxConfig extends Config
keyName = "guardians", keyName = "guardians",
name = "Guardians Overlay", name = "Guardians Overlay",
description = "Places an overlay near Guardians showing safespot.", description = "Places an overlay near Guardians showing safespot.",
parent = "guardiansStub" titleSection = "guardiansTitle"
) )
default boolean guardians() default boolean guardians()
{ {
@@ -143,22 +144,22 @@ public interface CoxConfig extends Config
keyName = "guardinTickCounter", keyName = "guardinTickCounter",
name = "Guardians Tick Timing", name = "Guardians Tick Timing",
description = "Places an overlay on Guardians showing attack tick timers.", description = "Places an overlay on Guardians showing attack tick timers.",
parent = "guardiansStub" titleSection = "guardiansTitle"
) )
default boolean guardinTickCounter() default boolean guardinTickCounter()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "vanguardsTitle",
position = 7, position = 7,
keyName = "vanguardsStub",
name = "Vanguards", name = "Vanguards",
description = "" description = ""
) )
default Stub vanguardsStub() default Title vanguardsTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -166,7 +167,7 @@ public interface CoxConfig extends Config
keyName = "vangHighlight", keyName = "vangHighlight",
name = "Highlight Vanguards", name = "Highlight Vanguards",
description = "Color is based on their attack style.", description = "Color is based on their attack style.",
parent = "vanguardsStub" titleSection = "vanguardsTitle"
) )
default boolean vangHighlight() default boolean vangHighlight()
{ {
@@ -178,22 +179,22 @@ public interface CoxConfig extends Config
keyName = "vangHealth", keyName = "vangHealth",
name = "Show Vanguards Current HP", name = "Show Vanguards Current HP",
description = "This will create an infobox with vanguards current hp.", description = "This will create an infobox with vanguards current hp.",
parent = "vanguardsStub" titleSection = "vanguardsTitle"
) )
default boolean vangHealth() default boolean vangHealth()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "olmTitle",
position = 10, position = 10,
keyName = "olmStub",
name = "Olm", name = "Olm",
description = "" description = ""
) )
default Stub olmStub() default Title olmTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -201,7 +202,7 @@ public interface CoxConfig extends Config
keyName = "prayAgainstOlm", keyName = "prayAgainstOlm",
name = "Olm Show Prayer", name = "Olm Show Prayer",
description = "Shows what prayer to use during olm.", description = "Shows what prayer to use during olm.",
parent = "olmStub" titleSection = "olmTitle"
) )
default boolean prayAgainstOlm() default boolean prayAgainstOlm()
{ {
@@ -217,7 +218,7 @@ public interface CoxConfig extends Config
keyName = "prayAgainstOlmSize", keyName = "prayAgainstOlmSize",
name = "Olm Prayer Size", name = "Olm Prayer Size",
description = "Change the Size of the Olm Infobox.", description = "Change the Size of the Olm Infobox.",
parent = "olmStub" titleSection = "olmTitle"
) )
default int prayAgainstOlmSize() default int prayAgainstOlmSize()
{ {
@@ -229,7 +230,7 @@ public interface CoxConfig extends Config
keyName = "timers", keyName = "timers",
name = "Olm Show Burn/Acid Timers", name = "Olm Show Burn/Acid Timers",
description = "Shows tick timers for burns/acids.", description = "Shows tick timers for burns/acids.",
parent = "olmStub" titleSection = "olmTitle"
) )
default boolean timers() default boolean timers()
{ {
@@ -241,7 +242,7 @@ public interface CoxConfig extends Config
keyName = "tpOverlay", keyName = "tpOverlay",
name = "Olm Show Teleport Overlays", name = "Olm Show Teleport Overlays",
description = "Shows Overlays for targeted teleports.", description = "Shows Overlays for targeted teleports.",
parent = "olmStub" titleSection = "olmTitle"
) )
default boolean tpOverlay() default boolean tpOverlay()
{ {
@@ -253,22 +254,22 @@ public interface CoxConfig extends Config
keyName = "olmTick", keyName = "olmTick",
name = "Olm Tick Counter", name = "Olm Tick Counter",
description = "Show Tick Counter on Olm", description = "Show Tick Counter on Olm",
parent = "olmStub" titleSection = "olmTitle"
) )
default boolean olmTick() default boolean olmTick()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
position = 15,
keyName = "colors", keyName = "colors",
position = 15,
name = "Colors", name = "Colors",
description = "" description = ""
) )
default Stub colors() default Title colors()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -276,7 +277,7 @@ public interface CoxConfig extends Config
keyName = "muttaColor", keyName = "muttaColor",
name = "Muttadile Tile Color", name = "Muttadile Tile Color",
description = "Change hit area tile color for muttadiles", description = "Change hit area tile color for muttadiles",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "Muttadile" unhide = "Muttadile"
) )
@@ -290,7 +291,7 @@ public interface CoxConfig extends Config
keyName = "guardColor", keyName = "guardColor",
name = "Guardians Tile Color", name = "Guardians Tile Color",
description = "Change safespot area tile color for Guardians", description = "Change safespot area tile color for Guardians",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "Guardians" unhide = "Guardians"
) )
@@ -304,7 +305,7 @@ public interface CoxConfig extends Config
keyName = "tektonColor", keyName = "tektonColor",
name = "Tekton Tile Color", name = "Tekton Tile Color",
description = "Change hit area tile color for Tekton", description = "Change hit area tile color for Tekton",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "Tekton" unhide = "Tekton"
) )
@@ -318,7 +319,7 @@ public interface CoxConfig extends Config
keyName = "burnColor", keyName = "burnColor",
name = "Burn Victim Color", name = "Burn Victim Color",
description = "Changes tile color for burn victim.", description = "Changes tile color for burn victim.",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "timers" unhide = "timers"
) )
@@ -332,7 +333,7 @@ public interface CoxConfig extends Config
keyName = "acidColor", keyName = "acidColor",
name = "Acid Victim Color", name = "Acid Victim Color",
description = "Changes tile color for acid victim.", description = "Changes tile color for acid victim.",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "timers" unhide = "timers"
) )
@@ -346,7 +347,7 @@ public interface CoxConfig extends Config
keyName = "tpColor", keyName = "tpColor",
name = "Teleport Target Color", name = "Teleport Target Color",
description = "Changes tile color for teleport target.", description = "Changes tile color for teleport target.",
parent = "colors", titleSection = "colors",
hidden = true, hidden = true,
unhide = "tpOverlay" unhide = "tpOverlay"
) )
@@ -355,15 +356,15 @@ public interface CoxConfig extends Config
return new Color(193, 255, 245); return new Color(193, 255, 245);
} }
@ConfigItem( @ConfigTitleSection(
position = 22,
keyName = "text", keyName = "text",
position = 22,
name = "Text", name = "Text",
description = "" description = ""
) )
default Stub text() default Title text()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -371,7 +372,7 @@ public interface CoxConfig extends Config
keyName = "fontStyle", keyName = "fontStyle",
name = "Font Style", name = "Font Style",
description = "Bold/Italics/Plain", description = "Bold/Italics/Plain",
parent = "text" titleSection = "text"
) )
default FontStyle fontStyle() default FontStyle fontStyle()
{ {
@@ -387,7 +388,7 @@ public interface CoxConfig extends Config
keyName = "textSize", keyName = "textSize",
name = "Text Size", name = "Text Size",
description = "Text Size for Timers.", description = "Text Size for Timers.",
parent = "text" titleSection = "text"
) )
default int textSize() default int textSize()
{ {
@@ -399,7 +400,7 @@ public interface CoxConfig extends Config
keyName = "shadows", keyName = "shadows",
name = "Shadows", name = "Shadows",
description = "Adds Shadows to text.", description = "Adds Shadows to text.",
parent = "text" titleSection = "text"
) )
default boolean shadows() default boolean shadows()
{ {

View File

@@ -30,21 +30,22 @@ import lombok.Getter;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("fightcave") @ConfigGroup("fightcave")
public interface FightCaveConfig extends Config public interface FightCaveConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
position = 0,
keyName = "mainConfig", keyName = "mainConfig",
position = 0,
name = "Main Config", name = "Main Config",
description = "" description = ""
) )
default Stub mainConfig() default Title mainConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -52,7 +53,7 @@ public interface FightCaveConfig extends Config
keyName = "waveDisplay", keyName = "waveDisplay",
name = "Wave display", name = "Wave display",
description = "Shows monsters that will spawn on the selected wave(s).", description = "Shows monsters that will spawn on the selected wave(s).",
parent = "mainConfig" titleSection = "mainConfig"
) )
default WaveDisplayMode waveDisplay() default WaveDisplayMode waveDisplay()
{ {
@@ -64,22 +65,22 @@ public interface FightCaveConfig extends Config
keyName = "tickTimersWidget", keyName = "tickTimersWidget",
name = "Tick Timers in Prayer", name = "Tick Timers in Prayer",
description = "Adds an overlay to the Prayer Interface with the ticks until next attack for that prayer.", description = "Adds an overlay to the Prayer Interface with the ticks until next attack for that prayer.",
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean tickTimersWidget() default boolean tickTimersWidget()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
position = 3,
keyName = "text", keyName = "text",
position = 3,
name = "Text", name = "Text",
description = "" description = ""
) )
default Stub text() default Title text()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -87,7 +88,7 @@ public interface FightCaveConfig extends Config
keyName = "fontStyle", keyName = "fontStyle",
name = "Font Style", name = "Font Style",
description = "Plain | Bold | Italics", description = "Plain | Bold | Italics",
parent = "text" titleSection = "text"
) )
default FontStyle fontStyle() default FontStyle fontStyle()
{ {
@@ -103,7 +104,7 @@ public interface FightCaveConfig extends Config
keyName = "textSize", keyName = "textSize",
name = "Text Size", name = "Text Size",
description = "Text Size for Timers.", description = "Text Size for Timers.",
parent = "text" titleSection = "text"
) )
default int textSize() default int textSize()
{ {
@@ -115,7 +116,7 @@ public interface FightCaveConfig extends Config
keyName = "shadows", keyName = "shadows",
name = "Shadows", name = "Shadows",
description = "Adds Shadows to text.", description = "Adds Shadows to text.",
parent = "text" titleSection = "text"
) )
default boolean shadows() default boolean shadows()
{ {

View File

@@ -27,21 +27,22 @@ package net.runelite.client.plugins.freezetimers;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("freezetimers") @ConfigGroup("freezetimers")
public interface FreezeTimersConfig extends Config public interface FreezeTimersConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "timersStub", keyName = "timersTitle",
name = "Timers", name = "Timers",
description = "", description = "",
position = 1 position = 1
) )
default Stub timersStub() default Title timersTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -49,7 +50,7 @@ public interface FreezeTimersConfig extends Config
name = "Show Players", name = "Show Players",
description = "Configure if the player overlay should be shown", description = "Configure if the player overlay should be shown",
position = 2, position = 2,
parent = "timersStub" titleSection = "timersTitle"
) )
default boolean showPlayers() default boolean showPlayers()
{ {
@@ -61,7 +62,7 @@ public interface FreezeTimersConfig extends Config
name = "Show NPCs", name = "Show NPCs",
description = "Configure if the npc overlay should be shown", description = "Configure if the npc overlay should be shown",
position = 3, position = 3,
parent = "timersStub" titleSection = "timersTitle"
) )
default boolean showNpcs() default boolean showNpcs()
{ {
@@ -73,7 +74,7 @@ public interface FreezeTimersConfig extends Config
name = "Show Freeze Timers", name = "Show Freeze Timers",
description = "Toggle overlay for Freeze timers", description = "Toggle overlay for Freeze timers",
position = 4, position = 4,
parent = "timersStub" titleSection = "timersTitle"
) )
default boolean FreezeTimers() default boolean FreezeTimers()
{ {
@@ -85,7 +86,7 @@ public interface FreezeTimersConfig extends Config
name = "Show TB Timers", name = "Show TB Timers",
description = "Toggle overlay for TB timers", description = "Toggle overlay for TB timers",
position = 5, position = 5,
parent = "timersStub" titleSection = "timersTitle"
) )
default boolean TB() default boolean TB()
{ {
@@ -97,22 +98,22 @@ public interface FreezeTimersConfig extends Config
name = "Show Veng Timers", name = "Show Veng Timers",
description = "Toggle overlay for Veng timers", description = "Toggle overlay for Veng timers",
position = 6, position = 6,
parent = "timersStub" titleSection = "timersTitle"
) )
default boolean Veng() default boolean Veng()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "overlayStub", keyName = "overlayTitle",
name = "Overlay", name = "Overlay",
description = "", description = "",
position = 7 position = 7
) )
default Stub overlayStub() default Title overlayTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -120,7 +121,7 @@ public interface FreezeTimersConfig extends Config
name = "X Offset", name = "X Offset",
description = "Increasing this will push further away from model. Does not apply to text timers.", description = "Increasing this will push further away from model. Does not apply to text timers.",
position = 8, position = 8,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default int offset() default int offset()
{ {
@@ -132,7 +133,7 @@ public interface FreezeTimersConfig extends Config
name = "Text Timers", name = "Text Timers",
description = "Remove Images from Timers", description = "Remove Images from Timers",
position = 9, position = 9,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default boolean noImage() default boolean noImage()
{ {
@@ -144,7 +145,7 @@ public interface FreezeTimersConfig extends Config
name = "Font Style", name = "Font Style",
description = "Bold/Italics/Plain", description = "Bold/Italics/Plain",
position = 10, position = 10,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default FontStyle fontStyle() default FontStyle fontStyle()
{ {
@@ -160,7 +161,7 @@ public interface FreezeTimersConfig extends Config
name = "Text Size", name = "Text Size",
description = "Text Size for Timers.", description = "Text Size for Timers.",
position = 11, position = 11,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default int textSize() default int textSize()
{ {

View File

@@ -32,8 +32,9 @@ import lombok.Getter;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("Gauntlet") @ConfigGroup("Gauntlet")
@@ -57,15 +58,15 @@ public interface GauntletConfig extends Config
} }
} }
@ConfigItem( @ConfigTitleSection(
position = 0,
keyName = "resources", keyName = "resources",
position = 0,
name = "Resources", name = "Resources",
description = "" description = ""
) )
default Stub resources() default Title resources()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -73,7 +74,7 @@ public interface GauntletConfig extends Config
keyName = "highlightResources", keyName = "highlightResources",
name = "Highlight Resources (Outline)", name = "Highlight Resources (Outline)",
description = "Highlights all the resources in each room with an outline.", description = "Highlights all the resources in each room with an outline.",
parent = "resources" titleSection = "resources"
) )
default boolean highlightResources() default boolean highlightResources()
{ {
@@ -85,7 +86,7 @@ public interface GauntletConfig extends Config
keyName = "highlightResourcesColor", keyName = "highlightResourcesColor",
name = "Highlight Color", name = "Highlight Color",
description = "Highlights all the resources in each room with this color.", description = "Highlights all the resources in each room with this color.",
parent = "resources", titleSection = "resources",
hidden = true, hidden = true,
unhide = "highlightResources" unhide = "highlightResources"
) )
@@ -99,7 +100,7 @@ public interface GauntletConfig extends Config
keyName = "highlightResourcesIcons", keyName = "highlightResourcesIcons",
name = "Highlight Resources (Icon)", name = "Highlight Resources (Icon)",
description = "Highlights all the icons in each room with an icon.", description = "Highlights all the icons in each room with an icon.",
parent = "resources", titleSection = "resources",
hidden = true, hidden = true,
unhide = "highlightResources" unhide = "highlightResources"
) )
@@ -119,22 +120,22 @@ public interface GauntletConfig extends Config
description = " change the size of resource icons.", description = " change the size of resource icons.",
hidden = true, hidden = true,
unhide = "highlightResources", unhide = "highlightResources",
parent = "resources" titleSection = "resources"
) )
default int resourceIconSize() default int resourceIconSize()
{ {
return 20; return 20;
} }
@ConfigItem( @ConfigTitleSection(
position = 5,
keyName = "boss", keyName = "boss",
position = 5,
name = "Boss", name = "Boss",
description = "" description = ""
) )
default Stub boss() default Title boss()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -142,7 +143,7 @@ public interface GauntletConfig extends Config
keyName = "countAttacks", keyName = "countAttacks",
name = "Count Attacks Display", name = "Count Attacks Display",
description = "Count the attacks until the Hunllef switches their attack style and prayer.", description = "Count the attacks until the Hunllef switches their attack style and prayer.",
parent = "boss" titleSection = "boss"
) )
default CounterDisplay countAttacks() default CounterDisplay countAttacks()
{ {
@@ -154,7 +155,7 @@ public interface GauntletConfig extends Config
keyName = "highlightWidget", keyName = "highlightWidget",
name = "Highlight Prayer (Prayer Tab)", name = "Highlight Prayer (Prayer Tab)",
description = "Highlights the correct prayer to use in your prayer book.", description = "Highlights the correct prayer to use in your prayer book.",
parent = "boss" titleSection = "boss"
) )
default boolean highlightWidget() default boolean highlightWidget()
{ {
@@ -166,7 +167,7 @@ public interface GauntletConfig extends Config
keyName = "highlightPrayerInfobox", keyName = "highlightPrayerInfobox",
name = "Highlight Prayer (InfoBox)", name = "Highlight Prayer (InfoBox)",
description = "Highlights the correct prayer to use in an Infobox.", description = "Highlights the correct prayer to use in an Infobox.",
parent = "boss" titleSection = "boss"
) )
default boolean highlightPrayerInfobox() default boolean highlightPrayerInfobox()
{ {
@@ -178,7 +179,7 @@ public interface GauntletConfig extends Config
keyName = "flashOnWrongAttack", keyName = "flashOnWrongAttack",
name = "Flash screen on Wrong Attack", name = "Flash screen on Wrong Attack",
description = "This will flash your screen if you attack with the wrong stlye.", description = "This will flash your screen if you attack with the wrong stlye.",
parent = "boss" titleSection = "boss"
) )
default boolean flashOnWrongAttack() default boolean flashOnWrongAttack()
{ {
@@ -190,7 +191,7 @@ public interface GauntletConfig extends Config
keyName = "uniquePrayerAudio", keyName = "uniquePrayerAudio",
name = "Prayer Audio Warning", name = "Prayer Audio Warning",
description = "Plays a unique sound whenever the boss is about to shut down your prayer.", description = "Plays a unique sound whenever the boss is about to shut down your prayer.",
parent = "boss" titleSection = "boss"
) )
default boolean uniquePrayerAudio() default boolean uniquePrayerAudio()
{ {
@@ -202,7 +203,7 @@ public interface GauntletConfig extends Config
keyName = "uniquePrayerVisual", keyName = "uniquePrayerVisual",
name = "Prayer Attack (Icon)", name = "Prayer Attack (Icon)",
description = "Prayer attacks will have a unique overlay visual.", description = "Prayer attacks will have a unique overlay visual.",
parent = "boss" titleSection = "boss"
) )
default boolean uniquePrayerVisual() default boolean uniquePrayerVisual()
{ {
@@ -214,7 +215,7 @@ public interface GauntletConfig extends Config
keyName = "uniqueAttackVisual", keyName = "uniqueAttackVisual",
name = "Magic & Range Attack (Icon)", name = "Magic & Range Attack (Icon)",
description = "Magic and Range attacks will have a unique overlay visual.", description = "Magic and Range attacks will have a unique overlay visual.",
parent = "boss" titleSection = "boss"
) )
default boolean uniqueAttackVisual() default boolean uniqueAttackVisual()
{ {
@@ -226,7 +227,7 @@ public interface GauntletConfig extends Config
keyName = "attackVisualOutline", keyName = "attackVisualOutline",
name = "Hunllefs' attacks (Outline)", name = "Hunllefs' attacks (Outline)",
description = "Outline the Hunllefs' attacks.", description = "Outline the Hunllefs' attacks.",
parent = "boss" titleSection = "boss"
) )
default boolean attackVisualOutline() default boolean attackVisualOutline()
{ {
@@ -238,7 +239,7 @@ public interface GauntletConfig extends Config
keyName = "overlayBoss", keyName = "overlayBoss",
name = "Outline Hunllef (Color)", name = "Outline Hunllef (Color)",
description = "Overlay Hunllef while you are on the wrong prayer with an color denoting it's current attack style.", description = "Overlay Hunllef while you are on the wrong prayer with an color denoting it's current attack style.",
parent = "boss" titleSection = "boss"
) )
default boolean overlayBoss() default boolean overlayBoss()
{ {
@@ -251,7 +252,7 @@ public interface GauntletConfig extends Config
keyName = "overlayBossPrayer", keyName = "overlayBossPrayer",
name = "Hunllef Overlay (Icons)", name = "Hunllef Overlay (Icons)",
description = "Overlay the Hunllef with an icon denoting it's current attack style.", description = "Overlay the Hunllef with an icon denoting it's current attack style.",
parent = "boss" titleSection = "boss"
) )
default boolean overlayBossPrayer() default boolean overlayBossPrayer()
{ {
@@ -263,7 +264,7 @@ public interface GauntletConfig extends Config
keyName = "overlayTornadoes", keyName = "overlayTornadoes",
name = "Show Tornado Decay", name = "Show Tornado Decay",
description = "Display the amount of ticks left until the tornadoes decay.", description = "Display the amount of ticks left until the tornadoes decay.",
parent = "boss" titleSection = "boss"
) )
default boolean overlayTornadoes() default boolean overlayTornadoes()
{ {
@@ -279,22 +280,22 @@ public interface GauntletConfig extends Config
keyName = "projectileIconSize", keyName = "projectileIconSize",
name = "Hunllef Projectile Icon Size", name = "Hunllef Projectile Icon Size",
description = " change the size of Projectile icons.", description = " change the size of Projectile icons.",
parent = "boss" titleSection = "boss"
) )
default int projectileIconSize() default int projectileIconSize()
{ {
return 20; return 20;
} }
@ConfigItem( @ConfigTitleSection(
position = 18,
keyName = "timer", keyName = "timer",
position = 18,
name = "Timer", name = "Timer",
description = "" description = ""
) )
default Stub timer() default Title timer()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -302,7 +303,7 @@ public interface GauntletConfig extends Config
keyName = "displayTimerWidget", keyName = "displayTimerWidget",
name = "Show Gauntlet timer overlay", name = "Show Gauntlet timer overlay",
description = "Display a timer widget that tracks your gauntlet progress.", description = "Display a timer widget that tracks your gauntlet progress.",
parent = "timer" titleSection = "timer"
) )
default boolean displayTimerWidget() default boolean displayTimerWidget()
{ {
@@ -314,7 +315,7 @@ public interface GauntletConfig extends Config
keyName = "displayTimerChat", keyName = "displayTimerChat",
name = "Show Gauntlet timer chat message", name = "Show Gauntlet timer chat message",
description = "Display a chat message that tracks your gauntlet progress.", description = "Display a chat message that tracks your gauntlet progress.",
parent = "timer" titleSection = "timer"
) )
default boolean displayTimerChat() default boolean displayTimerChat()
{ {

View File

@@ -27,8 +27,9 @@ package net.runelite.client.plugins.gpu;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
import static net.runelite.client.plugins.gpu.GpuPlugin.MAX_DISTANCE; import static net.runelite.client.plugins.gpu.GpuPlugin.MAX_DISTANCE;
import static net.runelite.client.plugins.gpu.GpuPlugin.MAX_FOG_DEPTH; import static net.runelite.client.plugins.gpu.GpuPlugin.MAX_FOG_DEPTH;
import net.runelite.client.plugins.gpu.config.AnisotropicFilteringMode; import net.runelite.client.plugins.gpu.config.AnisotropicFilteringMode;
@@ -37,15 +38,15 @@ import net.runelite.client.plugins.gpu.config.AntiAliasingMode;
@ConfigGroup("gpu") @ConfigGroup("gpu")
public interface GpuPluginConfig extends Config public interface GpuPluginConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "drawingStub", keyName = "drawingTitle",
name = "Drawing", name = "Drawing",
description = "", description = "",
position = 1 position = 1
) )
default Stub drawingStub() default Title drawingTitle()
{ {
return new Stub(); return new Title();
} }
@Range( @Range(
@@ -57,7 +58,7 @@ public interface GpuPluginConfig extends Config
name = "Draw Distance", name = "Draw Distance",
description = "Draw distance", description = "Draw distance",
position = 2, position = 2,
parent = "drawingStub" titleSection = "drawingTitle"
) )
default int drawDistance() default int drawDistance()
{ {
@@ -69,22 +70,22 @@ public interface GpuPluginConfig extends Config
name = "Remove Color Banding", name = "Remove Color Banding",
description = "Smooths out the color banding that is present in the CPU renderer", description = "Smooths out the color banding that is present in the CPU renderer",
position = 3, position = 3,
parent = "drawingStub" titleSection = "drawingTitle"
) )
default boolean smoothBanding() default boolean smoothBanding()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "ppStub", keyName = "ppTitle",
name = "Post processing", name = "Post processing",
description = "", description = "",
position = 4 position = 4
) )
default Stub ppStub() default Title ppTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -92,7 +93,7 @@ public interface GpuPluginConfig extends Config
name = "Anti Aliasing", name = "Anti Aliasing",
description = "Configures the anti-aliasing mode", description = "Configures the anti-aliasing mode",
position = 5, position = 5,
parent = "ppStub" titleSection = "ppTitle"
) )
default AntiAliasingMode antiAliasingMode() default AntiAliasingMode antiAliasingMode()
{ {
@@ -104,22 +105,22 @@ public interface GpuPluginConfig extends Config
name = "Anisotropic Filtering", name = "Anisotropic Filtering",
description = "Configures the anisotropic filtering mode", description = "Configures the anisotropic filtering mode",
position = 6, position = 6,
parent = "ppStub" titleSection = "ppTitle"
) )
default AnisotropicFilteringMode anisotropicFilteringMode() default AnisotropicFilteringMode anisotropicFilteringMode()
{ {
return AnisotropicFilteringMode.DISABLED; return AnisotropicFilteringMode.DISABLED;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "fogStub", keyName = "fogTitle",
name = "Fog", name = "Fog",
description = "", description = "",
position = 7 position = 7
) )
default Stub fogStub() default Title fogTitle()
{ {
return new Stub(); return new Title();
} }
@Range( @Range(
@@ -130,7 +131,7 @@ public interface GpuPluginConfig extends Config
name = "Depth", name = "Depth",
description = "Distance from the scene edge the fog starts", description = "Distance from the scene edge the fog starts",
position = 8, position = 8,
parent = "fogStub" titleSection = "fogTitle"
) )
default int fogDepth() default int fogDepth()
{ {
@@ -145,7 +146,7 @@ public interface GpuPluginConfig extends Config
name = "Roundness", name = "Roundness",
description = "Fog circularity in %", description = "Fog circularity in %",
position = 9, position = 9,
parent = "fogStub" titleSection = "fogTitle"
) )
default int fogCircularity() default int fogCircularity()
{ {
@@ -160,7 +161,7 @@ public interface GpuPluginConfig extends Config
name = "Density", name = "Density",
description = "Relative fog thickness", description = "Relative fog thickness",
position = 10, position = 10,
parent = "fogStub" titleSection = "fogTitle"
) )
default int fogDensity() default int fogDensity()
{ {

View File

@@ -30,7 +30,8 @@ import net.runelite.client.config.Alpha;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
import net.runelite.client.plugins.grounditems.config.ItemHighlightMode; import net.runelite.client.plugins.grounditems.config.ItemHighlightMode;
import net.runelite.client.plugins.grounditems.config.MenuHighlightMode; import net.runelite.client.plugins.grounditems.config.MenuHighlightMode;
import net.runelite.client.plugins.grounditems.config.PriceDisplayMode; import net.runelite.client.plugins.grounditems.config.PriceDisplayMode;
@@ -40,15 +41,15 @@ import net.runelite.client.plugins.grounditems.config.ValueCalculationMode;
@ConfigGroup("grounditems") @ConfigGroup("grounditems")
public interface GroundItemsConfig extends Config public interface GroundItemsConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "colorsStub", keyName = "colorsTitle",
name = "Colors", name = "Colors",
description = "", description = "",
position = 1 position = 1
) )
default Stub colorsStub() default Title colorsTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -56,7 +57,7 @@ public interface GroundItemsConfig extends Config
name = "Default items", name = "Default items",
description = "Configures the color for default, non-highlighted items", description = "Configures the color for default, non-highlighted items",
position = 2, position = 2,
parent = "colorsStub" titleSection = "colorsTitle"
) )
@Alpha @Alpha
default Color defaultColor() default Color defaultColor()
@@ -69,7 +70,7 @@ public interface GroundItemsConfig extends Config
name = "Highlighted items", name = "Highlighted items",
description = "Configures the color for highlighted items", description = "Configures the color for highlighted items",
position = 3, position = 3,
parent = "colorsStub" titleSection = "colorsTitle"
) )
@Alpha @Alpha
default Color highlightedColor() default Color highlightedColor()
@@ -82,7 +83,7 @@ public interface GroundItemsConfig extends Config
name = "Hidden items", name = "Hidden items",
description = "Configures the color for hidden items in right-click menu and when holding ALT", description = "Configures the color for hidden items in right-click menu and when holding ALT",
position = 4, position = 4,
parent = "colorsStub" titleSection = "colorsTitle"
) )
@Alpha @Alpha
default Color hiddenColor() default Color hiddenColor()
@@ -90,15 +91,15 @@ public interface GroundItemsConfig extends Config
return Color.GRAY; return Color.GRAY;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "highlightedStub", keyName = "highlightedTitle",
name = "Highlighted", name = "Highlighted",
description = "", description = "",
position = 5 position = 5
) )
default Stub highlightedStub() default Title highlightedTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -106,7 +107,7 @@ public interface GroundItemsConfig extends Config
name = "Highlighted Items", name = "Highlighted Items",
description = "Configures specifically highlighted ground items. Format: (item), (item)", description = "Configures specifically highlighted ground items. Format: (item), (item)",
position = 6, position = 6,
parent = "highlightedStub" titleSection = "highlightedTitle"
) )
default String getHighlightItems() default String getHighlightItems()
{ {
@@ -125,7 +126,7 @@ public interface GroundItemsConfig extends Config
name = "Show Highlighted items only", name = "Show Highlighted items only",
description = "Configures whether or not to draw items only on your highlighted list", description = "Configures whether or not to draw items only on your highlighted list",
position = 7, position = 7,
parent = "highlightedStub" titleSection = "highlightedTitle"
) )
default boolean showHighlightedOnly() default boolean showHighlightedOnly()
{ {
@@ -137,7 +138,7 @@ public interface GroundItemsConfig extends Config
name = "Highlighted Value Calculation", name = "Highlighted Value Calculation",
description = "Configures which coin value is used to determine highlight color", description = "Configures which coin value is used to determine highlight color",
position = 8, position = 8,
parent = "highlightedStub" titleSection = "highlightedTitle"
) )
default ValueCalculationMode valueCalculationMode() default ValueCalculationMode valueCalculationMode()
{ {
@@ -149,7 +150,7 @@ public interface GroundItemsConfig extends Config
name = "Highlight > Value", name = "Highlight > Value",
description = "Configures highlighted ground items over either GE or HA value", description = "Configures highlighted ground items over either GE or HA value",
position = 9, position = 9,
parent = "highlightedStub" titleSection = "highlightedTitle"
) )
default int getHighlightOverValue() default int getHighlightOverValue()
{ {
@@ -161,22 +162,22 @@ public interface GroundItemsConfig extends Config
name = "Notify for Highlighted drops", name = "Notify for Highlighted drops",
description = "Configures whether or not to notify for drops on your highlighted list", description = "Configures whether or not to notify for drops on your highlighted list",
position = 10, position = 10,
parent = "highlightStub" titleSection = "highlightTitle"
) )
default boolean notifyHighlightedDrops() default boolean notifyHighlightedDrops()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "hiddenStub", keyName = "hiddenTitle",
name = "Hidden", name = "Hidden",
description = "", description = "",
position = 11 position = 11
) )
default Stub hiddenStub() default Title hiddenTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -184,7 +185,7 @@ public interface GroundItemsConfig extends Config
name = "Do not hide untradeables", name = "Do not hide untradeables",
description = "Configures whether or not untradeable items ignore hiding under settings", description = "Configures whether or not untradeable items ignore hiding under settings",
position = 12, position = 12,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default boolean dontHideUntradeables() default boolean dontHideUntradeables()
{ {
@@ -196,7 +197,7 @@ public interface GroundItemsConfig extends Config
name = "Hidden Items", name = "Hidden Items",
description = "Configures hidden ground items. Format: (item), (item)", description = "Configures hidden ground items. Format: (item), (item)",
position = 13, position = 13,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default String getHiddenItems() default String getHiddenItems()
{ {
@@ -207,7 +208,7 @@ public interface GroundItemsConfig extends Config
keyName = "hiddenItems", keyName = "hiddenItems",
name = "", name = "",
description = "", description = "",
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
void setHiddenItems(String key); void setHiddenItems(String key);
@@ -216,7 +217,7 @@ public interface GroundItemsConfig extends Config
name = "Recolor Menu Hidden Items", name = "Recolor Menu Hidden Items",
description = "Configures whether or not hidden items in right click menu will be recolored", description = "Configures whether or not hidden items in right click menu will be recolored",
position = 14, position = 14,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default boolean recolorMenuHiddenItems() default boolean recolorMenuHiddenItems()
{ {
@@ -228,7 +229,7 @@ public interface GroundItemsConfig extends Config
name = "Hide < Value", name = "Hide < Value",
description = "Configures hidden ground items under both GE and HA value", description = "Configures hidden ground items under both GE and HA value",
position = 15, position = 15,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default int getHideUnderValue() default int getHideUnderValue()
{ {
@@ -240,7 +241,7 @@ public interface GroundItemsConfig extends Config
name = "Hide Hidden", name = "Hide Hidden",
description = "Remove take option for items that are on the hidden items list.", description = "Remove take option for items that are on the hidden items list.",
position = 16, position = 16,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default boolean removeIgnored() default boolean removeIgnored()
{ {
@@ -252,22 +253,22 @@ public interface GroundItemsConfig extends Config
name = "Right click hidden items", name = "Right click hidden items",
description = "Places hidden items below the 'Walk here' option, making it so that you need to right click to pick them up", description = "Places hidden items below the 'Walk here' option, making it so that you need to right click to pick them up",
position = 17, position = 17,
parent = "hiddenStub" titleSection = "hiddenTitle"
) )
default boolean rightClickHidden() default boolean rightClickHidden()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "highlightStub", keyName = "highlightTitle",
name = "Highlight", name = "Highlight",
description = "", description = "",
position = 18 position = 18
) )
default Stub highlightStub() default Title highlightTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -275,7 +276,7 @@ public interface GroundItemsConfig extends Config
name = "Highlight Tiles", name = "Highlight Tiles",
description = "Configures whether or not to highlight tiles containing ground items", description = "Configures whether or not to highlight tiles containing ground items",
position = 19, position = 19,
parent = "highlightStub" titleSection = "highlightTitle"
) )
default boolean highlightTiles() default boolean highlightTiles()
{ {
@@ -287,7 +288,7 @@ public interface GroundItemsConfig extends Config
name = "Item Highlight Mode", name = "Item Highlight Mode",
description = "Configures how ground items will be highlighted", description = "Configures how ground items will be highlighted",
position = 20, position = 20,
parent = "highlightStub" titleSection = "highlightTitle"
) )
default ItemHighlightMode itemHighlightMode() default ItemHighlightMode itemHighlightMode()
{ {
@@ -299,22 +300,22 @@ public interface GroundItemsConfig extends Config
name = "Menu Highlight Mode", name = "Menu Highlight Mode",
description = "Configures what to highlight in right-click menu", description = "Configures what to highlight in right-click menu",
position = 21, position = 21,
parent = "highlightStub" titleSection = "highlightTitle"
) )
default MenuHighlightMode menuHighlightMode() default MenuHighlightMode menuHighlightMode()
{ {
return MenuHighlightMode.NAME; return MenuHighlightMode.NAME;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "lowValueStub", keyName = "lowValueTitle",
name = "Low value", name = "Low value",
description = "", description = "",
position = 22 position = 22
) )
default Stub lowValueStub() default Title lowValueTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -322,7 +323,7 @@ public interface GroundItemsConfig extends Config
name = "Low value color", name = "Low value color",
description = "Configures the color for low value items", description = "Configures the color for low value items",
position = 23, position = 23,
parent = "lowValueStub" titleSection = "lowValueTitle"
) )
@Alpha @Alpha
default Color lowValueColor() default Color lowValueColor()
@@ -335,7 +336,7 @@ public interface GroundItemsConfig extends Config
name = "Low value price", name = "Low value price",
description = "Configures the start price for low value items", description = "Configures the start price for low value items",
position = 24, position = 24,
parent = "lowValueStub" titleSection = "lowValueTitle"
) )
default int lowValuePrice() default int lowValuePrice()
{ {
@@ -347,22 +348,22 @@ public interface GroundItemsConfig extends Config
name = "Notify for low value drops", name = "Notify for low value drops",
description = "Configures whether or not to notify for drops of low value", description = "Configures whether or not to notify for drops of low value",
position = 25, position = 25,
parent = "lowValueStub" titleSection = "lowValueTitle"
) )
default boolean notifyLowValueDrops() default boolean notifyLowValueDrops()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "mediumValueStub", keyName = "mediumValueTitle",
name = "Medium value", name = "Medium value",
description = "", description = "",
position = 26 position = 26
) )
default Stub mediumValueStub() default Title mediumValueTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -370,7 +371,7 @@ public interface GroundItemsConfig extends Config
name = "Medium value color", name = "Medium value color",
description = "Configures the color for medium value items", description = "Configures the color for medium value items",
position = 27, position = 27,
parent = "mediumValueStub" titleSection = "mediumValueTitle"
) )
@Alpha @Alpha
default Color mediumValueColor() default Color mediumValueColor()
@@ -383,7 +384,7 @@ public interface GroundItemsConfig extends Config
name = "Medium value price", name = "Medium value price",
description = "Configures the start price for medium value items", description = "Configures the start price for medium value items",
position = 28, position = 28,
parent = "mediumValueStub" titleSection = "mediumValueTitle"
) )
default int mediumValuePrice() default int mediumValuePrice()
{ {
@@ -395,22 +396,22 @@ public interface GroundItemsConfig extends Config
name = "Notify for medium value drops", name = "Notify for medium value drops",
description = "Configures whether or not to notify for drops of medium value", description = "Configures whether or not to notify for drops of medium value",
position = 29, position = 29,
parent = "mediumValueStub" titleSection = "mediumValueTitle"
) )
default boolean notifyMediumValueDrops() default boolean notifyMediumValueDrops()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "highValueStub", keyName = "highValueTitle",
name = "High value", name = "High value",
description = "", description = "",
position = 30 position = 30
) )
default Stub highValueStub() default Title highValueTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -418,7 +419,7 @@ public interface GroundItemsConfig extends Config
name = "High value color", name = "High value color",
description = "Configures the color for high value items", description = "Configures the color for high value items",
position = 31, position = 31,
parent = "highValueStub" titleSection = "highValueTitle"
) )
@Alpha @Alpha
default Color highValueColor() default Color highValueColor()
@@ -431,7 +432,7 @@ public interface GroundItemsConfig extends Config
name = "High value price", name = "High value price",
description = "Configures the start price for high value items", description = "Configures the start price for high value items",
position = 32, position = 32,
parent = "highValueStub" titleSection = "highValueTitle"
) )
default int highValuePrice() default int highValuePrice()
{ {
@@ -443,22 +444,22 @@ public interface GroundItemsConfig extends Config
name = "Notify for high value drops", name = "Notify for high value drops",
description = "Configures whether or not to notify for drops of high value", description = "Configures whether or not to notify for drops of high value",
position = 33, position = 33,
parent = "highValueStub" titleSection = "highValueTitle"
) )
default boolean notifyHighValueDrops() default boolean notifyHighValueDrops()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "insaneValueStub", keyName = "insaneValueTitle",
name = "Insane value", name = "Insane value",
description = "", description = "",
position = 34 position = 34
) )
default Stub insaneValueStub() default Title insaneValueTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -466,7 +467,7 @@ public interface GroundItemsConfig extends Config
name = "Insane value items color", name = "Insane value items color",
description = "Configures the color for insane value items", description = "Configures the color for insane value items",
position = 35, position = 35,
parent = "insaneValueStub" titleSection = "insaneValueTitle"
) )
@Alpha @Alpha
default Color insaneValueColor() default Color insaneValueColor()
@@ -479,7 +480,7 @@ public interface GroundItemsConfig extends Config
name = "Insane value price", name = "Insane value price",
description = "Configures the start price for insane value items", description = "Configures the start price for insane value items",
position = 36, position = 36,
parent = "insaneValueStub" titleSection = "insaneValueTitle"
) )
default int insaneValuePrice() default int insaneValuePrice()
{ {
@@ -491,22 +492,22 @@ public interface GroundItemsConfig extends Config
name = "Notify for insane value drops", name = "Notify for insane value drops",
description = "Configures whether or not to notify for drops of insane value", description = "Configures whether or not to notify for drops of insane value",
position = 37, position = 37,
parent = "insaneValueStub" titleSection = "insaneValueTitle"
) )
default boolean notifyInsaneValueDrops() default boolean notifyInsaneValueDrops()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "priceStub", keyName = "priceTitle",
name = "Price", name = "Price",
description = "", description = "",
position = 38 position = 38
) )
default Stub priceStub() default Title priceTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -514,7 +515,7 @@ public interface GroundItemsConfig extends Config
name = "Price Display Mode", name = "Price Display Mode",
description = "Configures what price types are shown alongside of ground item name", description = "Configures what price types are shown alongside of ground item name",
position = 39, position = 39,
parent = "priceStub" titleSection = "priceTitle"
) )
default PriceDisplayMode priceDisplayMode() default PriceDisplayMode priceDisplayMode()
{ {
@@ -526,22 +527,22 @@ public interface GroundItemsConfig extends Config
name = "Sort by GE price", name = "Sort by GE price",
description = "Sorts ground items by GE price, instead of alch value", description = "Sorts ground items by GE price, instead of alch value",
position = 40, position = 40,
parent = "priceStub" titleSection = "priceTitle"
) )
default boolean sortByGEPrice() default boolean sortByGEPrice()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "miscStub", keyName = "miscTitle",
name = "Miscellaneous", name = "Miscellaneous",
description = "", description = "",
position = 41 position = 41
) )
default Stub miscStub() default Title miscTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -549,7 +550,7 @@ public interface GroundItemsConfig extends Config
name = "Show Menu Item Quantities", name = "Show Menu Item Quantities",
description = "Configures whether or not to show the item quantities in the menu", description = "Configures whether or not to show the item quantities in the menu",
position = 42, position = 42,
parent = "miscStub" titleSection = "miscTitle"
) )
default boolean showMenuItemQuantities() default boolean showMenuItemQuantities()
{ {
@@ -561,7 +562,7 @@ public interface GroundItemsConfig extends Config
name = "Collapse ground item menu entries", name = "Collapse ground item menu entries",
description = "Collapses ground item menu entries together and appends count", description = "Collapses ground item menu entries together and appends count",
position = 43, position = 43,
parent = "miscStub" titleSection = "miscTitle"
) )
default boolean collapseEntries() default boolean collapseEntries()
{ {
@@ -573,7 +574,7 @@ public interface GroundItemsConfig extends Config
name = "Only show loot", name = "Only show loot",
description = "Only shows drops from NPCs and players", description = "Only shows drops from NPCs and players",
position = 44, position = 44,
parent = "miscStub" titleSection = "miscTitle"
) )
default boolean onlyShowLoot() default boolean onlyShowLoot()
{ {
@@ -585,7 +586,7 @@ public interface GroundItemsConfig extends Config
name = "Show time remaining", name = "Show time remaining",
description = "Turn on a countdown timer to show how long an item will remain on the ground", description = "Turn on a countdown timer to show how long an item will remain on the ground",
position = 45, position = 45,
parent = "miscStub" titleSection = "miscTitle"
) )
default TimerDisplayMode showGroundItemDuration() default TimerDisplayMode showGroundItemDuration()
{ {
@@ -597,7 +598,7 @@ public interface GroundItemsConfig extends Config
name = "Delay for double-tap ALT to hide", name = "Delay for double-tap ALT to hide",
description = "Decrease this number if you accidentally hide ground items often. (0 = Disabled)", description = "Decrease this number if you accidentally hide ground items often. (0 = Disabled)",
position = 46, position = 46,
parent = "miscStub" titleSection = "miscTitle"
) )
default int doubleTapDelay() default int doubleTapDelay()
{ {
@@ -609,31 +610,20 @@ public interface GroundItemsConfig extends Config
name = "Text Outline", name = "Text Outline",
description = "Use an outline around text instead of a text shadow", description = "Use an outline around text instead of a text shadow",
position = 47, position = 47,
parent = "miscStub" titleSection = "miscTitle"
) )
default boolean toggleOutline() default boolean toggleOutline()
{ {
return false; return false;
} }
@ConfigItem(
keyName = "showTimer",
name = "Show ground item tick countdown timer",
description = "Shows how many ticks left until disappearing.",
position = 48,
parent = "miscStub"
)
default boolean showTimer()
{
return false;
}
@Alpha @Alpha
@ConfigItem( @ConfigItem(
keyName = "bordercolor", keyName = "bordercolor",
name = "Border color", name = "Border color",
description = "Change the border color", description = "Change the border color",
position = 49 position = 48,
titleSection = "miscTitle"
) )
default Color bordercolor() default Color bordercolor()
{ {
@@ -641,14 +631,26 @@ public interface GroundItemsConfig extends Config
} }
@ConfigItem( @ConfigItem(
keyName = "xpStub", keyName = "showTimer",
name = "Show ground item tick countdown timer",
description = "Shows how many ticks left until disappearing.",
position = 49,
titleSection = "miscTitle"
)
default boolean showTimer()
{
return false;
}
@ConfigTitleSection(
keyName = "xpTitle",
name = "XP", name = "XP",
description = "Highlights various items that give xp", description = "Highlights various items that give xp",
position = 50 position = 50
) )
default Stub xpStub() default Title xpTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -656,7 +658,7 @@ public interface GroundItemsConfig extends Config
name = "Highlight Herblore xp", name = "Highlight Herblore xp",
description = "Highlight Herblore xp related items.", description = "Highlight Herblore xp related items.",
position = 51, position = 51,
parent = "xpStub" titleSection = "xpTitle"
) )
default boolean highlightHerblore() default boolean highlightHerblore()
{ {
@@ -668,7 +670,7 @@ public interface GroundItemsConfig extends Config
name = "Herblore Color", name = "Herblore Color",
description = "Color of Herblore xp items.", description = "Color of Herblore xp items.",
position = 52, position = 52,
parent = "xpStub" titleSection = "xpTitle"
) )
@Alpha @Alpha
default Color herbloreColor() default Color herbloreColor()
@@ -681,7 +683,7 @@ public interface GroundItemsConfig extends Config
name = "Highlight Prayer xp", name = "Highlight Prayer xp",
description = "Highlight Prayer xp related items.", description = "Highlight Prayer xp related items.",
position = 53, position = 53,
parent = "xpStub" titleSection = "xpTitle"
) )
default boolean highlightPrayer() default boolean highlightPrayer()
{ {
@@ -693,7 +695,7 @@ public interface GroundItemsConfig extends Config
name = "Prayer Color", name = "Prayer Color",
description = "Color of Prayer xp items.", description = "Color of Prayer xp items.",
position = 54, position = 54,
parent = "xpStub" titleSection = "xpTitle"
) )
@Alpha @Alpha
default Color prayerColor() default Color prayerColor()

View File

@@ -30,6 +30,7 @@ package net.runelite.client.plugins.hideprayers;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection;
import net.runelite.client.plugins.hideprayers.util.Armadyl; import net.runelite.client.plugins.hideprayers.util.Armadyl;
import net.runelite.client.plugins.hideprayers.util.Bandos; import net.runelite.client.plugins.hideprayers.util.Bandos;
import net.runelite.client.plugins.hideprayers.util.Barrows; import net.runelite.client.plugins.hideprayers.util.Barrows;
@@ -43,12 +44,45 @@ import net.runelite.client.plugins.hideprayers.util.Zulrah;
@ConfigGroup("hideprayers") @ConfigGroup("hideprayers")
public interface HidePrayersConfig extends Config public interface HidePrayersConfig extends Config
{ {
@ConfigSection(
name = "Individual Prayers",
description = "",
position = 0,
keyName = "individualPrayersSection"
)
default boolean individualPrayersSection()
{
return false;
}
@ConfigSection(
name = "PvM Prayers",
description = "",
position = 1,
keyName = "pvmSection"
)
default boolean pvmSection()
{
return false;
}
@ConfigSection(
name = "PvP Prayers",
description = "",
position = 2,
keyName = "pvpSection"
)
default boolean pvpSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 0, position = 0,
keyName = "showindividualprayers", keyName = "showindividualprayers",
name = "Hide Individual Prayers", name = "Hide Individual Prayers",
description = "Hide/Show Prayers.", description = "Hide/Show Prayers.",
group = "Individual Prayers", section = "individualPrayersSection",
disabledBy = "getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean showindividualprayers() default boolean showindividualprayers()
@@ -61,7 +95,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowTHICK_SKIN", keyName = "ShowTHICK_SKIN",
name = "Show Thick Skin", name = "Show Thick Skin",
description = "Hide/Show Thick Skin", description = "Hide/Show Thick Skin",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -75,7 +109,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowBURST_OF_STRENGTH", keyName = "ShowBURST_OF_STRENGTH",
name = "Show Burst of Strength", name = "Show Burst of Strength",
description = "Hide/Show Burst of Strength", description = "Hide/Show Burst of Strength",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -89,7 +123,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowCLARITY_OF_THOUGHT", keyName = "ShowCLARITY_OF_THOUGHT",
name = "Show Clarity of Thought", name = "Show Clarity of Thought",
description = "Hide/Show Clarity of Thought", description = "Hide/Show Clarity of Thought",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "Showindividualprayers" unhide = "Showindividualprayers"
) )
@@ -103,7 +137,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowSHARP_EYE", keyName = "ShowSHARP_EYE",
name = "Show Sharp Eye", name = "Show Sharp Eye",
description = "Hide/Show Sharp Eye", description = "Hide/Show Sharp Eye",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -117,7 +151,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowMYSTIC_WILL", keyName = "ShowMYSTIC_WILL",
name = "Show Mystic Will", name = "Show Mystic Will",
description = "Hide/Show Mystic Will", description = "Hide/Show Mystic Will",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -131,7 +165,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowROCK_SKIN", keyName = "ShowROCK_SKIN",
name = "Show Rock Skin", name = "Show Rock Skin",
description = "Hide/Show Rock Skin", description = "Hide/Show Rock Skin",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -145,7 +179,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowSUPERHUMAN_STRENGTH", keyName = "ShowSUPERHUMAN_STRENGTH",
name = "Show Super Human Strength", name = "Show Super Human Strength",
description = "Hide/Show Super Human Strength", description = "Hide/Show Super Human Strength",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -159,7 +193,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowIMPROVED_REFLEXES", keyName = "ShowIMPROVED_REFLEXES",
name = "Show Improved_Reflexes", name = "Show Improved_Reflexes",
description = "Hide/Show Improved_Reflexes", description = "Hide/Show Improved_Reflexes",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -173,7 +207,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowRapidRestore", keyName = "ShowRapidRestore",
name = "Show Rapid Restore", name = "Show Rapid Restore",
description = "Hide/Show Rapid Restore", description = "Hide/Show Rapid Restore",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -187,7 +221,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowRapidHeal", keyName = "ShowRapidHeal",
name = "Show Rapid Heal", name = "Show Rapid Heal",
description = "Hide/Show Rapid Heal", description = "Hide/Show Rapid Heal",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -201,7 +235,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowProtectItem", keyName = "ShowProtectItem",
name = "Show Protect Item", name = "Show Protect Item",
description = "Hide/Show Protect Item", description = "Hide/Show Protect Item",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -215,7 +249,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowHAWK_EYE", keyName = "ShowHAWK_EYE",
name = "Show Hawk Eye", name = "Show Hawk Eye",
description = "Hide/Show Hawk Eye", description = "Hide/Show Hawk Eye",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -229,7 +263,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowMYSTIC_LORE", keyName = "ShowMYSTIC_LORE",
name = "Show Mystic Lore", name = "Show Mystic Lore",
description = "Hide/Show Mystic Lore", description = "Hide/Show Mystic Lore",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -244,7 +278,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowSteelSkin", keyName = "ShowSteelSkin",
name = "Show Steel Skin", name = "Show Steel Skin",
description = "Hide/Show Steel skin", description = "Hide/Show Steel skin",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -258,7 +292,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowUltimateStrength", keyName = "ShowUltimateStrength",
name = "Show Ultimate Strength", name = "Show Ultimate Strength",
description = "Hide/Show Ultimate strength", description = "Hide/Show Ultimate strength",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -272,7 +306,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowIncredibleReflex", keyName = "ShowIncredibleReflex",
name = "Show Incredible Reflex", name = "Show Incredible Reflex",
description = "Hide/Show Incredible Reflex", description = "Hide/Show Incredible Reflex",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -286,7 +320,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowPTFMagic", keyName = "ShowPTFMagic",
name = "Show Protect From Magic", name = "Show Protect From Magic",
description = "Hide/Show Protect From Magic", description = "Hide/Show Protect From Magic",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -300,7 +334,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowPTFRange", keyName = "ShowPTFRange",
name = "Show Protect From Range", name = "Show Protect From Range",
description = "Hide/Show Protect from Range", description = "Hide/Show Protect from Range",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -314,7 +348,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowPTFMelee", keyName = "ShowPTFMelee",
name = "Show Protect From Melee", name = "Show Protect From Melee",
description = "Hide/Show Protect From Melee", description = "Hide/Show Protect From Melee",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -328,7 +362,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowEagle", keyName = "ShowEagle",
name = "Show Eagle Eye", name = "Show Eagle Eye",
description = "Hide/Show Eagle Eye", description = "Hide/Show Eagle Eye",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -342,7 +376,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowMystic", keyName = "ShowMystic",
name = "Show Mystic Might", name = "Show Mystic Might",
description = "Hide/Show Mystic Might", description = "Hide/Show Mystic Might",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -356,7 +390,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowRETRIBUTION", keyName = "ShowRETRIBUTION",
name = "Show Retribution", name = "Show Retribution",
description = "Hide/Show Retribution", description = "Hide/Show Retribution",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -370,7 +404,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowRedemption", keyName = "ShowRedemption",
name = "Show Redemption", name = "Show Redemption",
description = "Hide/Show Redemption", description = "Hide/Show Redemption",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -384,7 +418,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowSmite", keyName = "ShowSmite",
name = "Show Smite", name = "Show Smite",
description = "Hide/Show Smite", description = "Hide/Show Smite",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -398,7 +432,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowPreserve", keyName = "ShowPreserve",
name = "Show Preserve", name = "Show Preserve",
description = "Hide/Show Preserve", description = "Hide/Show Preserve",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -412,7 +446,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowChivalry", keyName = "ShowChivalry",
name = "Show Chivalry", name = "Show Chivalry",
description = "Hide/Show Chivalry", description = "Hide/Show Chivalry",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -426,7 +460,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowPiety", keyName = "ShowPiety",
name = "Show Piety", name = "Show Piety",
description = "Hide/Show Piety", description = "Hide/Show Piety",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -440,7 +474,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowRigour", keyName = "ShowRigour",
name = "Show Rigour", name = "Show Rigour",
description = "Hide/Show Rigour", description = "Hide/Show Rigour",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -454,7 +488,7 @@ public interface HidePrayersConfig extends Config
keyName = "ShowAugury", keyName = "ShowAugury",
name = "Show Augury", name = "Show Augury",
description = "Hide/Show Augury", description = "Hide/Show Augury",
group = "Individual Prayers", section = "individualPrayersSection",
hidden = true, hidden = true,
unhide = "showindividualprayers" unhide = "showindividualprayers"
) )
@@ -466,11 +500,11 @@ public interface HidePrayersConfig extends Config
// ----------------------------------------------------------- // // ----------------------------------------------------------- //
@ConfigItem( @ConfigItem(
position = 29, position = 0,
keyName = "getarmadylprayers", keyName = "getarmadylprayers",
name = "enable Armadyl Prayers", name = "enable Armadyl Prayers",
description = "Shows prayers for Armadyl", description = "Shows prayers for Armadyl",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers"
) )
default boolean getarmadylprayers() default boolean getarmadylprayers()
@@ -479,11 +513,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 30, position = 1,
keyName = "armadyl", keyName = "armadyl",
name = "Armadyl", name = "Armadyl",
description = "Shows prayers for Armadyl", description = "Shows prayers for Armadyl",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getarmadylprayers" unhide = "getarmadylprayers"
) )
@@ -493,11 +527,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 31, position = 2,
keyName = "getbarrowsprayers", keyName = "getbarrowsprayers",
name = "enable Barrows Prayers", name = "enable Barrows Prayers",
description = "Shows prayers for Barrows", description = "Shows prayers for Barrows",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getarmadylprayers"
) )
default boolean getbarrowsprayers() default boolean getbarrowsprayers()
@@ -506,11 +540,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 32, position = 3,
keyName = "barrows", keyName = "barrows",
name = "Barrows", name = "Barrows",
description = "Shows prayers for Barrows", description = "Shows prayers for Barrows",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getbarrowsprayers" unhide = "getbarrowsprayers"
) )
@@ -520,11 +554,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 33, position = 4,
keyName = "getbandosprayers", keyName = "getbandosprayers",
name = "enable Bandos Prayers", name = "enable Bandos Prayers",
description = "Shows prayers for Bandos", description = "Shows prayers for Bandos",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getbandosprayers() default boolean getbandosprayers()
@@ -533,11 +567,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 34, position = 5,
keyName = "bandos", keyName = "bandos",
name = "Bandos", name = "Bandos",
description = "Shows prayers for Bandos", description = "Shows prayers for Bandos",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getbandosprayers" unhide = "getbandosprayers"
) )
@@ -547,11 +581,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 35, position = 6,
keyName = "getcerberusprayers", keyName = "getcerberusprayers",
name = "enable Cerberus Prayers", name = "enable Cerberus Prayers",
description = "Shows prayers for Cerberus", description = "Shows prayers for Cerberus",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getcerberusprayers() default boolean getcerberusprayers()
@@ -560,11 +594,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 36, position = 7,
keyName = "cerberus", keyName = "cerberus",
name = "Cerberus", name = "Cerberus",
description = "Shows prayers for Cerberus", description = "Shows prayers for Cerberus",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getcerberusprayers" unhide = "getcerberusprayers"
) )
@@ -574,11 +608,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 37, position = 8,
keyName = "getsaradominprayers", keyName = "getsaradominprayers",
name = "enable Saradomin Prayers", name = "enable Saradomin Prayers",
description = "Shows prayers for Saradomin", description = "Shows prayers for Saradomin",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getvorkathprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getsaradominprayers() default boolean getsaradominprayers()
@@ -587,11 +621,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 38, position = 9,
keyName = "saradomin", keyName = "saradomin",
name = "Saradomin", name = "Saradomin",
description = "Shows prayers for Saradomin", description = "Shows prayers for Saradomin",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getsaradominprayers" unhide = "getsaradominprayers"
) )
@@ -601,11 +635,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 39, position = 10,
keyName = "getvorkathprayers", keyName = "getvorkathprayers",
name = "enable Vorkath Prayers", name = "enable Vorkath Prayers",
description = "Shows prayers for Vorkath", description = "Shows prayers for Vorkath",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getzamorakprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getvorkathprayers() default boolean getvorkathprayers()
@@ -614,11 +648,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 40, position = 11,
keyName = "vorkath", keyName = "vorkath",
name = "Vorkath", name = "Vorkath",
description = "Shows prayers for Vorkath", description = "Shows prayers for Vorkath",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getvorkathprayers" unhide = "getvorkathprayers"
) )
@@ -628,11 +662,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 41, position = 12,
keyName = "getzamorakprayers", keyName = "getzamorakprayers",
name = "enable Zamorak Prayers", name = "enable Zamorak Prayers",
description = "Shows prayers for Zamorak", description = "Shows prayers for Zamorak",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzulrahprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getzamorakprayers() default boolean getzamorakprayers()
@@ -641,11 +675,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 42, position = 13,
keyName = "zamorak", keyName = "zamorak",
name = "Zamorak", name = "Zamorak",
description = "Shows prayers for Zamorak", description = "Shows prayers for Zamorak",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getzamorakprayers" unhide = "getzamorakprayers"
) )
@@ -655,11 +689,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 43, position = 14,
keyName = "getzulrahprayers", keyName = "getzulrahprayers",
name = "enable Zulrah Prayers", name = "enable Zulrah Prayers",
description = "Shows prayers for Zulrah", description = "Shows prayers for Zulrah",
group = "PVM Prayers", section = "pvmSection",
disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getpvpprayers || HideRapidHealRestore || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getzulrahprayers() default boolean getzulrahprayers()
@@ -668,11 +702,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 44, position = 15,
keyName = "zulrah", keyName = "zulrah",
name = "Zulrah", name = "Zulrah",
description = "Shows prayers for Zulrah", description = "Shows prayers for Zulrah",
group = "PVM Prayers", section = "pvmSection",
hidden = true, hidden = true,
unhide = "getzulrahprayers" unhide = "getzulrahprayers"
) )
@@ -684,11 +718,11 @@ public interface HidePrayersConfig extends Config
// ----------------------------------------------------------- // // ----------------------------------------------------------- //
@ConfigItem( @ConfigItem(
position = 45, position = 0,
keyName = "getpvpprayers", keyName = "getpvpprayers",
name = "enable PVP Prayers", name = "enable PVP Prayers",
description = "Shows prayers based on prayer build", description = "Shows prayers based on prayer build",
group = "PVP Prayers", section = "pvpSection",
disabledBy = "showindividualprayers || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers" disabledBy = "showindividualprayers || getzulrahprayers || getzamorakprayers || getvorkathprayers || getsaradominprayers || getcerberusprayers || getbandosprayers || getbarrowsprayers || getarmadylprayers"
) )
default boolean getpvpprayers() default boolean getpvpprayers()
@@ -697,11 +731,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 46, position = 1,
keyName = "pvpprayers", keyName = "pvpprayers",
name = "PVP Prayers", name = "PVP Prayers",
description = "Shows prayers based on prayer build", description = "Shows prayers based on prayer build",
group = "PVP Prayers", section = "pvpSection",
hidden = true, hidden = true,
unhide = "getpvpprayers" unhide = "getpvpprayers"
) )
@@ -711,11 +745,11 @@ public interface HidePrayersConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 47, position = 2,
keyName = "HideRapidHealRestore", keyName = "HideRapidHealRestore",
name = "Hide Rapid Heal and Rapid Restore", name = "Hide Rapid Heal and Rapid Restore",
description = "Hides the Rapid Heal and Rapid Restore prayers", description = "Hides the Rapid Heal and Rapid Restore prayers",
group = "PVP Prayers", section = "pvpSection",
hidden = true, hidden = true,
unhide = "getpvpprayers" unhide = "getpvpprayers"
) )

View File

@@ -27,6 +27,7 @@ package net.runelite.client.plugins.idlenotifier;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection;
@ConfigGroup("idlenotifier") @ConfigGroup("idlenotifier")
public interface IdleNotifierConfig extends Config public interface IdleNotifierConfig extends Config
@@ -85,7 +86,7 @@ public interface IdleNotifierConfig extends Config
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "movementidle", keyName = "movementidle",
name = "Idle Movement Notifications", name = "Idle Movement Notifications",
@@ -240,12 +241,24 @@ public interface IdleNotifierConfig extends Config
return false; return false;
} }
@ConfigSection(
position = 20,
keyName = "pvpSection",
name = "PvP",
description = ""
)
default boolean pvpSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "pkers", keyName = "pkers",
name = "PKer Notifier", name = "PKer Notifier",
description = "Notifies if an attackable player based on your level range appears on screen.", description = "Notifies if an attackable player based on your level range appears on screen.",
position = 20, position = 21,
group = "PvP", section = "pvpSection",
warning = "This will not notify you if the player is in your cc or is online on your friends list." warning = "This will not notify you if the player is in your cc or is online on your friends list."
) )
default boolean notifyPkers() default boolean notifyPkers()
@@ -254,11 +267,11 @@ public interface IdleNotifierConfig extends Config
} }
@ConfigItem( @ConfigItem(
keyName = "resourceDoor", keyName = "resourceDoor",
name = "Resource Door Notifier", name = "Resource Door Notifier",
description = "Notifies if the wilderness resource area door is opened", description = "Notifies if the wilderness resource area door is opened",
position = 21, position = 22,
group = "PvP" section = "pvpSection"
) )
default boolean notifyResourceDoor() default boolean notifyResourceDoor()
{ {

View File

@@ -28,27 +28,29 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("inferno") @ConfigGroup("inferno")
public interface InfernoConfig extends Config public interface InfernoConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
position = 0,
keyName = "prayer", keyName = "prayer",
position = 0,
name = "Prayer", name = "Prayer",
description = "" description = ""
) )
default Stub prayer() default Title prayer()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 1, position = 1,
keyName = "Prayer Helper", keyName = "Prayer Helper",
name = "Prayer Helper", name = "Prayer Helper",
description = "Indicates the correct prayer" description = "Indicates the correct prayer",
titleSection = "prayer"
) )
default boolean showPrayerHelp() default boolean showPrayerHelp()
{ {
@@ -59,7 +61,8 @@ public interface InfernoConfig extends Config
position = 2, position = 2,
keyName = "prayerHelperMode", keyName = "prayerHelperMode",
name = "Prayer Helper Mode", name = "Prayer Helper Mode",
description = "Display prayer indicator in the prayer tab or in the bottom right corner of the screen" description = "Display prayer indicator in the prayer tab or in the bottom right corner of the screen",
titleSection = "prayer"
) )
default InfernoPrayerOverlayMode prayerOverlayMode() default InfernoPrayerOverlayMode prayerOverlayMode()
{ {
@@ -70,7 +73,8 @@ public interface InfernoConfig extends Config
position = 3, position = 3,
keyName = "descendingBoxes", keyName = "descendingBoxes",
name = "Descending Boxes", name = "Descending Boxes",
description = "Draws timing boxes above the prayer icons, as if you were playing Piano Tiles" description = "Draws timing boxes above the prayer icons, as if you were playing Piano Tiles",
titleSection = "prayer"
) )
default boolean descendingBoxes() default boolean descendingBoxes()
{ {
@@ -81,29 +85,31 @@ public interface InfernoConfig extends Config
position = 4, position = 4,
keyName = "indicateWhenPrayingCorrectly", keyName = "indicateWhenPrayingCorrectly",
name = "Indicate When Praying Correctly", name = "Indicate When Praying Correctly",
description = "Indicate the correct prayer, even if you are already praying that prayer" description = "Indicate the correct prayer, even if you are already praying that prayer",
titleSection = "prayer"
) )
default boolean indicateWhenPrayingCorrectly() default boolean indicateWhenPrayingCorrectly()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
position = 5,
keyName = "monsters", keyName = "monsters",
position = 5,
name = "Monsters", name = "Monsters",
description = "" description = ""
) )
default Stub monsters() default Title monsters()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 6, position = 6,
keyName = "Nibbler Overlay", keyName = "Nibbler Overlay",
name = "Nibbler Overlay", name = "Nibbler Overlay",
description = "Shows if there are any Nibblers left" description = "Shows if there are any Nibblers left",
titleSection = "monsters"
) )
default boolean displayNibblerOverlay() default boolean displayNibblerOverlay()
{ {
@@ -114,29 +120,31 @@ public interface InfernoConfig extends Config
position = 7, position = 7,
keyName = "indicateActiveHealers", keyName = "indicateActiveHealers",
name = "Indicate Active Healers", name = "Indicate Active Healers",
description = "Indicate healers that are still healing Jad" description = "Indicate healers that are still healing Jad",
titleSection = "monsters"
) )
default boolean indicateActiveHealers() default boolean indicateActiveHealers()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
position = 8,
keyName = "waves", keyName = "waves",
position = 8,
name = "Waves", name = "Waves",
description = "" description = ""
) )
default Stub waves() default Title waves()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 9, position = 9,
keyName = "waveDisplay", keyName = "waveDisplay",
name = "Wave display", name = "Wave display",
description = "Shows monsters that will spawn on the selected wave(s)." description = "Shows monsters that will spawn on the selected wave(s).",
titleSection = "waves"
) )
default InfernoWaveDisplayMode waveDisplay() default InfernoWaveDisplayMode waveDisplay()
{ {
@@ -147,7 +155,8 @@ public interface InfernoConfig extends Config
position = 10, position = 10,
keyName = "getWaveOverlayHeaderColor", keyName = "getWaveOverlayHeaderColor",
name = "Wave Header", name = "Wave Header",
description = "Color for Wave Header" description = "Color for Wave Header",
titleSection = "waves"
) )
default Color getWaveOverlayHeaderColor() default Color getWaveOverlayHeaderColor()
{ {
@@ -158,7 +167,8 @@ public interface InfernoConfig extends Config
position = 11, position = 11,
keyName = "getWaveTextColor", keyName = "getWaveTextColor",
name = "Wave Text Color", name = "Wave Text Color",
description = "Color for Wave Texts" description = "Color for Wave Texts",
titleSection = "waves"
) )
default Color getWaveTextColor() default Color getWaveTextColor()
{ {

View File

@@ -27,28 +27,29 @@ package net.runelite.client.plugins.lootingbagviewer;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("lootingbagviewer") @ConfigGroup("lootingbagviewer")
public interface LootingBagViewerConfig extends Config public interface LootingBagViewerConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "overlayStub", keyName = "overlayTitle",
name = "Overlays", name = "Overlays",
description = "", description = "",
position = 0 position = 0
) )
default Stub overlayStub() default Title overlayTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "renderViewer", keyName = "renderViewer",
name = "Render Viewer", name = "Render Viewer",
description = "Shows second inventory on screen with looting bag items.", description = "Shows second inventory on screen with looting bag items.",
position = 1, position = 1,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default boolean renderViewer() default boolean renderViewer()
{ {
@@ -56,11 +57,11 @@ public interface LootingBagViewerConfig extends Config
} }
@ConfigItem( @ConfigItem(
keyName = "renderLootingBag", keyName = "renderLootingBag",
name = "Render Looting Bag Worth", name = "Render Looting Bag Worth",
description = "Shows current amount of GP over the looting bag.", description = "Shows current amount of GP over the looting bag.",
position = 2, position = 2,
parent = "overlayStub" titleSection = "overlayTitle"
) )
default boolean renderLootingBag() default boolean renderLootingBag()
{ {

View File

@@ -28,16 +28,28 @@ package net.runelite.client.plugins.loottracker;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection;
@ConfigGroup("loottracker") @ConfigGroup("loottracker")
public interface LootTrackerConfig extends Config public interface LootTrackerConfig extends Config
{ {
@ConfigSection(
position = 1,
keyName = "filterSection",
name = "Filter",
description = ""
)
default boolean filterSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "ignoredItems", keyName = "ignoredItems",
name = "Ignored items", name = "Ignored items",
description = "Configures which items should be ignored when calculating loot prices.", description = "Configures which items should be ignored when calculating loot prices.",
position = 0, position = 0,
group = "Filters" section = "filterSection"
) )
default String getIgnoredItems() default String getIgnoredItems()
{ {
@@ -56,7 +68,7 @@ public interface LootTrackerConfig extends Config
name = "Ignored NPCs", name = "Ignored NPCs",
description = "Configures which NPCs should be ignored ", description = "Configures which NPCs should be ignored ",
position = 1, position = 1,
group = "Filters" section = "filterSection"
) )
default String getIgnoredNPCs() default String getIgnoredNPCs()
{ {
@@ -128,7 +140,7 @@ public interface LootTrackerConfig extends Config
name = "NPC Whitelist", name = "NPC Whitelist",
description = "Only track drops from specific NPCs", description = "Only track drops from specific NPCs",
position = 1, position = 1,
group = "Filters", section = "filterSection",
disabledBy = "blacklistEnabled" disabledBy = "blacklistEnabled"
) )
default boolean whitelistEnabled() default boolean whitelistEnabled()
@@ -141,7 +153,7 @@ public interface LootTrackerConfig extends Config
name = "Whitelist", name = "Whitelist",
description = "Comma-separated list of NPCs to track drops from", description = "Comma-separated list of NPCs to track drops from",
position = 2, position = 2,
group = "Filters", section = "filterSection",
hidden = true, hidden = true,
unhide = "whitelistEnabled" unhide = "whitelistEnabled"
) )
@@ -155,7 +167,7 @@ public interface LootTrackerConfig extends Config
name = "NPC Blacklist", name = "NPC Blacklist",
description = "Track drops from all NPCs except for specified ones", description = "Track drops from all NPCs except for specified ones",
position = 3, position = 3,
group = "Filters", section = "filterSection",
disabledBy = "whitelistEnabled" disabledBy = "whitelistEnabled"
) )
default boolean blacklistEnabled() default boolean blacklistEnabled()
@@ -168,7 +180,7 @@ public interface LootTrackerConfig extends Config
name = "Blacklist", name = "Blacklist",
description = "Comma-separated list of NPCs to not track drops from", description = "Comma-separated list of NPCs to not track drops from",
position = 4, position = 4,
group = "Filters", section = "filterSection",
hidden = true, hidden = true,
unhide = "blacklistEnabled" unhide = "blacklistEnabled"
) )

View File

@@ -30,21 +30,22 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("objectindicators") @ConfigGroup("objectindicators")
public interface ObjectIndicatorsConfig extends Config public interface ObjectIndicatorsConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "overlayStub", keyName = "overlayTitle",
name = "Overlay Style", name = "Overlay Style",
description = "", description = "",
position = 0 position = 0
) )
default Stub overlayStub() default Title overlayTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -52,7 +53,7 @@ public interface ObjectIndicatorsConfig extends Config
keyName = "objectMarkerRenderStyle", keyName = "objectMarkerRenderStyle",
name = "Highlight Style", name = "Highlight Style",
description = "Highlight setting", description = "Highlight setting",
parent = "overlayStub" titleSection = "overlayTitle"
) )
default RenderStyle objectMarkerRenderStyle() default RenderStyle objectMarkerRenderStyle()
{ {
@@ -65,7 +66,7 @@ public interface ObjectIndicatorsConfig extends Config
keyName = "objectMarkerOutlineRenderStyle", keyName = "objectMarkerOutlineRenderStyle",
name = "Outline Style", name = "Outline Style",
description = "Highlight outline setting", description = "Highlight outline setting",
parent = "overlayStub", titleSection = "overlayTitle",
hidden = true, hidden = true,
unhide = "objectMarkerRenderStyle", unhide = "objectMarkerRenderStyle",
unhideValue = "OUTLINE" unhideValue = "OUTLINE"
@@ -75,15 +76,15 @@ public interface ObjectIndicatorsConfig extends Config
return OutlineRenderStyle.NORMAL_OUTLINE; return OutlineRenderStyle.NORMAL_OUTLINE;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "colorStub", keyName = "colorTitle",
name = "Colors", name = "Colors",
description = "", description = "",
position = 3 position = 3
) )
default Stub colorStub() default Title colorTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -91,7 +92,7 @@ public interface ObjectIndicatorsConfig extends Config
keyName = "markerColor", keyName = "markerColor",
name = "Marker color", name = "Marker color",
description = "Configures the outer color of object marker", description = "Configures the outer color of object marker",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color objectMarkerColor() default Color objectMarkerColor()
{ {
@@ -106,7 +107,7 @@ public interface ObjectIndicatorsConfig extends Config
keyName = "objectMarkerAlpha", keyName = "objectMarkerAlpha",
name = "Alpha", name = "Alpha",
description = "Configures the opacity/alpha of object marker", description = "Configures the opacity/alpha of object marker",
parent = "colorStub" titleSection = "colorTitle"
) )
default int objectMarkerAlpha() default int objectMarkerAlpha()
{ {

View File

@@ -28,21 +28,22 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("pileindicators") @ConfigGroup("pileindicators")
public interface PileIndicatorsConfig extends Config public interface PileIndicatorsConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "playerPilesStub", keyName = "playerPilesTitle",
name = "Player Piles", name = "Player Piles",
description = "", description = "",
position = 0 position = 0
) )
default Stub playerPilesStub() default Title playerPilesTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -50,7 +51,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "enablePlayers", keyName = "enablePlayers",
name = "Enable Player Piling", name = "Enable Player Piling",
description = "Enable the option to highlight players when they pile.", description = "Enable the option to highlight players when they pile.",
parent = "playerPilesStub" titleSection = "playerPilesTitle"
) )
default boolean enablePlayers() default boolean enablePlayers()
{ {
@@ -62,7 +63,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "wildyOnlyPlayer", keyName = "wildyOnlyPlayer",
name = "Wilderness Only", name = "Wilderness Only",
description = "Show player piling only when in the Wilderness.", description = "Show player piling only when in the Wilderness.",
parent = "playerPilesStub" titleSection = "playerPilesTitle"
) )
default boolean wildyOnlyPlayer() default boolean wildyOnlyPlayer()
{ {
@@ -74,22 +75,22 @@ public interface PileIndicatorsConfig extends Config
keyName = "playerPileColor", keyName = "playerPileColor",
name = "Player Pile Color", name = "Player Pile Color",
description = "Color used for player piles.", description = "Color used for player piles.",
parent = "playerPilesStub" titleSection = "playerPilesTitle"
) )
default Color playerPileColor() default Color playerPileColor()
{ {
return Color.RED; return Color.RED;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "npcPilesStub", keyName = "npcPilesTitle",
name = "NPC Piles", name = "NPC Piles",
description = "", description = "",
position = 4 position = 4
) )
default Stub npcPilesStub() default Title npcPilesTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -97,7 +98,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "enableNPCS", keyName = "enableNPCS",
name = "Enable NPC Piling", name = "Enable NPC Piling",
description = "Enable the option to highlight NPCs when they pile.", description = "Enable the option to highlight NPCs when they pile.",
parent = "npcPilesStub" titleSection = "npcPilesTitle"
) )
default boolean enableNPCS() default boolean enableNPCS()
{ {
@@ -109,22 +110,22 @@ public interface PileIndicatorsConfig extends Config
keyName = "npcPileColor", keyName = "npcPileColor",
name = "NPC Pile Color", name = "NPC Pile Color",
description = "Color used for NPC piles.", description = "Color used for NPC piles.",
parent = "npcPilesStub" titleSection = "npcPilesTitle"
) )
default Color npcPileColor() default Color npcPileColor()
{ {
return Color.BLUE; return Color.BLUE;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "mixedPilesStub", keyName = "mixedPilesTitle",
name = "Mixed Piles", name = "Mixed Piles",
description = "", description = "",
position = 7 position = 7
) )
default Stub mixedPilesStub() default Title mixedPilesTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -132,22 +133,22 @@ public interface PileIndicatorsConfig extends Config
keyName = "mixedPileColor", keyName = "mixedPileColor",
name = "Mixed Pile Color", name = "Mixed Pile Color",
description = "Color used for mixed piles.", description = "Color used for mixed piles.",
parent = "mixedPilesStub" titleSection = "mixedPilesTitle"
) )
default Color mixedPileColor() default Color mixedPileColor()
{ {
return new Color(255, 0, 255); return new Color(255, 0, 255);
} }
@ConfigItem( @ConfigTitleSection(
keyName = "pilesSizeStub", keyName = "pilesSizeTitle",
name = "Pile size", name = "Pile size",
description = "", description = "",
position = 9 position = 9
) )
default Stub pilesSizeStub() default Title pilesSizeTitle()
{ {
return new Stub(); return new Title();
} }
@Range( @Range(
@@ -158,22 +159,22 @@ public interface PileIndicatorsConfig extends Config
keyName = "minimumPileSize", keyName = "minimumPileSize",
name = "Minimum Pile Size", name = "Minimum Pile Size",
description = "Any pile under this size will not show up. (Minimum: 2)", description = "Any pile under this size will not show up. (Minimum: 2)",
parent = "pilesSizeStub" titleSection = "pilesSizeTitle"
) )
default int minimumPileSize() default int minimumPileSize()
{ {
return 2; return 2;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "miscellaneousStub", keyName = "miscellaneousTitle",
name = "Miscellaneous", name = "Miscellaneous",
description = "", description = "",
position = 11 position = 11
) )
default Stub miscellaneousStub() default Title miscellaneousTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -181,7 +182,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "numberOnly", keyName = "numberOnly",
name = "Display Number Only", name = "Display Number Only",
description = "Shorten \"PILE SIZE: 1\" to \"1\"", description = "Shorten \"PILE SIZE: 1\" to \"1\"",
parent = "miscellaneousStub" titleSection = "miscellaneousTitle"
) )
default boolean numberOnly() default boolean numberOnly()
{ {
@@ -193,7 +194,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "drawPileTile", keyName = "drawPileTile",
name = "Draw Pile Tile", name = "Draw Pile Tile",
description = "Draws the tile of the pile for best visibility.", description = "Draws the tile of the pile for best visibility.",
parent = "miscellaneousStub" titleSection = "miscellaneousTitle"
) )
default boolean drawPileTile() default boolean drawPileTile()
{ {
@@ -205,7 +206,7 @@ public interface PileIndicatorsConfig extends Config
keyName = "drawPileHull", keyName = "drawPileHull",
name = "Draw Pile Convex Hull", name = "Draw Pile Convex Hull",
description = "Draws the hull of the pile for best visibility.", description = "Draws the hull of the pile for best visibility.",
parent = "miscellaneousStub" titleSection = "miscellaneousTitle"
) )
default boolean drawPileHull() default boolean drawPileHull()
{ {

View File

@@ -30,19 +30,109 @@ import net.runelite.api.ClanMemberRank;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigSection;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("playerindicators") @ConfigGroup("playerindicators")
public interface PlayerIndicatorsConfig extends Config public interface PlayerIndicatorsConfig extends Config
{ {
EnumSet<PlayerIndicationLocation> defaultPlayerIndicatorMode = EnumSet.complementOf(EnumSet.of(PlayerIndicationLocation.HULL)); EnumSet<PlayerIndicationLocation> defaultPlayerIndicatorMode = EnumSet.complementOf(EnumSet.of(PlayerIndicationLocation.HULL));
@ConfigSection(
name = "Yourself",
description = "",
position = 0,
keyName = "yourselfSection"
)
default boolean yourselfSection()
{
return false;
}
@ConfigSection(
name = "Friends",
description = "",
position = 1,
keyName = "friendsSection"
)
default boolean friendsSection()
{
return false;
}
@ConfigSection(
name = "Clan",
description = "",
position = 2,
keyName = "clanSection"
)
default boolean clanSection()
{
return false;
}
@ConfigSection(
name = "Team",
description = "",
position = 3,
keyName = "teamSection"
)
default boolean teamSection()
{
return false;
}
@ConfigSection(
name = "Target",
description = "",
position = 4,
keyName = "targetSection"
)
default boolean targetSection()
{
return false;
}
@ConfigSection(
name = "Other",
description = "",
position = 5,
keyName = "otherSection"
)
default boolean otherSection()
{
return false;
}
@ConfigSection(
name = "Callers",
description = "",
position = 6,
keyName = "callersSection"
)
default boolean callersSection()
{
return false;
}
@ConfigSection(
name = "Miscellaneous",
description = "",
position = 7,
keyName = "miscellaneousSection"
)
default boolean miscellaneousSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 0, position = 0,
keyName = "drawOwnName", keyName = "drawOwnName",
name = "Highlight own player", name = "Highlight own player",
description = "Configures whether or not your own player should be highlighted", description = "Configures whether or not your own player should be highlighted",
group = "Yourself" section = "yourselfSection"
) )
default boolean highlightOwnPlayer() default boolean highlightOwnPlayer()
{ {
@@ -54,7 +144,7 @@ public interface PlayerIndicatorsConfig extends Config
keyName = "ownNameColor", keyName = "ownNameColor",
name = "Own player color", name = "Own player color",
description = "Color of your own player", description = "Color of your own player",
group = "Yourself" section = "yourselfSection"
) )
default Color getOwnPlayerColor() default Color getOwnPlayerColor()
{ {
@@ -66,7 +156,7 @@ public interface PlayerIndicatorsConfig extends Config
keyName = "selfIndicatorModes", keyName = "selfIndicatorModes",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Yourself", section = "yourselfSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
default EnumSet<PlayerIndicationLocation> selfIndicatorModes() default EnumSet<PlayerIndicationLocation> selfIndicatorModes()
@@ -75,11 +165,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 3, position = 0,
keyName = "drawFriendNames", keyName = "drawFriendNames",
name = "Highlight friends", name = "Highlight friends",
description = "Configures whether or not friends should be highlighted", description = "Configures whether or not friends should be highlighted",
group = "Friends" section = "friendsSection"
) )
default boolean highlightFriends() default boolean highlightFriends()
{ {
@@ -87,11 +177,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 4, position = 1,
keyName = "friendNameColor", keyName = "friendNameColor",
name = "Friend color", name = "Friend color",
description = "Color of friend names", description = "Color of friend names",
group = "Friends" section = "friendsSection"
) )
default Color getFriendColor() default Color getFriendColor()
{ {
@@ -99,11 +189,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 5, position = 2,
keyName = "friendIndicatorMode", keyName = "friendIndicatorMode",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Friends", section = "friendsSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
@@ -113,11 +203,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 6, position = 0,
keyName = "highlightClan", keyName = "highlightClan",
name = "Highlight clan members", name = "Highlight clan members",
description = "Configures whether or clan members should be highlighted", description = "Configures whether or clan members should be highlighted",
group = "Clan" section = "clanSection"
) )
default boolean highlightClan() default boolean highlightClan()
{ {
@@ -125,11 +215,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 7, position = 1,
keyName = "clanMemberColor", keyName = "clanMemberColor",
name = "Clan member color", name = "Clan member color",
description = "Color of clan members", description = "Color of clan members",
group = "Clan" section = "clanSection"
) )
default Color getClanColor() default Color getClanColor()
{ {
@@ -137,11 +227,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 8, position = 2,
keyName = "clanIndicatorModes", keyName = "clanIndicatorModes",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Clan", section = "clanSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
@@ -151,11 +241,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 9, position = 3,
keyName = "clanMenuIcons", keyName = "clanMenuIcons",
name = "Show clan ranks", name = "Show clan ranks",
description = "Add clan rank to right click menu and next to player names", description = "Add clan rank to right click menu and next to player names",
group = "Clan" section = "clanSection"
) )
default boolean showClanRanks() default boolean showClanRanks()
{ {
@@ -163,11 +253,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 10, position = 0,
keyName = "drawTeamMemberNames", keyName = "drawTeamMemberNames",
name = "Highlight team members", name = "Highlight team members",
description = "Configures whether or not team members should be highlighted", description = "Configures whether or not team members should be highlighted",
group = "Team" section = "teamSection"
) )
default boolean highlightTeamMembers() default boolean highlightTeamMembers()
{ {
@@ -175,11 +265,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 11, position = 1,
keyName = "teamMemberColor", keyName = "teamMemberColor",
name = "Team member color", name = "Team member color",
description = "Color of team members", description = "Color of team members",
group = "Team" section = "teamSection"
) )
default Color getTeamcolor() default Color getTeamcolor()
{ {
@@ -187,11 +277,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 12, position = 2,
keyName = "teamIndicatorModes", keyName = "teamIndicatorModes",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Team", section = "teamSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
@@ -201,11 +291,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 13, position = 0,
keyName = "drawTargetsNames", keyName = "drawTargetsNames",
name = "Highlight attackable targets", name = "Highlight attackable targets",
description = "Configures whether or not attackable targets should be highlighted", description = "Configures whether or not attackable targets should be highlighted",
group = "Target" section = "targetSection"
) )
default boolean highlightTargets() default boolean highlightTargets()
{ {
@@ -213,11 +303,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 14, position = 1,
keyName = "targetColor", keyName = "targetColor",
name = "Target member color", name = "Target member color",
description = "Color of attackable targets", description = "Color of attackable targets",
group = "Target" section = "targetSection"
) )
default Color getTargetsColor() default Color getTargetsColor()
{ {
@@ -225,11 +315,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 15, position = 2,
keyName = "targetsIndicatorModes", keyName = "targetsIndicatorModes",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Target", section = "targetSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
@@ -239,11 +329,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 16, position = 3,
keyName = "showAgility", keyName = "showAgility",
name = "Show Agility Levels", name = "Show Agility Levels",
description = "Show the agility level of attackable players next to their name while in the wilderness.", description = "Show the agility level of attackable players next to their name while in the wilderness.",
group = "Target" section = "targetSection"
) )
default boolean showAgilityLevel() default boolean showAgilityLevel()
{ {
@@ -251,11 +341,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 17, position = 4,
keyName = "agilityFormat", keyName = "agilityFormat",
name = "Format", name = "Format",
description = "Whether to show the agility level as text, or as icons (1 skull >= 1st threshold, 2 skulls >= 2nd threshold).", description = "Whether to show the agility level as text, or as icons (1 skull >= 1st threshold, 2 skulls >= 2nd threshold).",
group = "Target" section = "targetSection"
) )
default PlayerIndicatorsPlugin.AgilityFormats agilityFormat() default PlayerIndicatorsPlugin.AgilityFormats agilityFormat()
{ {
@@ -263,11 +353,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 18, position = 5,
keyName = "agilityFirstThreshold", keyName = "agilityFirstThreshold",
name = "First Threshold", name = "First Threshold",
description = "When showing agility as icons, show one icon for agility >= this level.", description = "When showing agility as icons, show one icon for agility >= this level.",
group = "Target" section = "targetSection"
) )
default int agilityFirstThreshold() default int agilityFirstThreshold()
{ {
@@ -275,11 +365,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 19, position = 6,
keyName = "agilitySecondThreshold", keyName = "agilitySecondThreshold",
name = "Second Threshold", name = "Second Threshold",
description = "When showing agility as icons, show two icons for agility >= this level.", description = "When showing agility as icons, show two icons for agility >= this level.",
group = "Target" section = "targetSection"
) )
default int agilitySecondThreshold() default int agilitySecondThreshold()
{ {
@@ -287,11 +377,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 20, position = 7,
keyName = "playerSkull", keyName = "playerSkull",
name = "Show Skull Information", name = "Show Skull Information",
description = "shows", description = "shows",
group = "Target" section = "targetSection"
) )
default boolean playerSkull() default boolean playerSkull()
{ {
@@ -299,11 +389,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 21, position = 8,
keyName = "minimapSkullLocation", keyName = "minimapSkullLocation",
name = "Skull Icon Location", name = "Skull Icon Location",
description = "The location of the skull icon for skulled players", description = "The location of the skull icon for skulled players",
group = "Target" section = "targetSection"
) )
default PlayerIndicatorsPlugin.MinimapSkullLocations skullLocation() default PlayerIndicatorsPlugin.MinimapSkullLocations skullLocation()
{ {
@@ -311,11 +401,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 22, position = 9,
keyName = "targetRisk", keyName = "targetRisk",
name = "Indicate Target Risk", name = "Indicate Target Risk",
description = "Indicates the risk (in K GP) of the target", description = "Indicates the risk (in K GP) of the target",
group = "Target" section = "targetSection"
) )
default boolean targetRisk() default boolean targetRisk()
{ {
@@ -323,11 +413,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 23, position = 10,
keyName = "showCombat", keyName = "showCombat",
name = "Show Combat Levels", name = "Show Combat Levels",
description = "Show the combat level of attackable players next to their name.", description = "Show the combat level of attackable players next to their name.",
group = "Target" section = "targetSection"
) )
default boolean showCombatLevel() default boolean showCombatLevel()
{ {
@@ -335,11 +425,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 24, position = 0,
keyName = "drawOtherPlayerNames", keyName = "drawOtherPlayerNames",
name = "Highlight other players", name = "Highlight other players",
description = "Configures whether or not other players should be highlighted", description = "Configures whether or not other players should be highlighted",
group = "Other" section = "otherSection"
) )
default boolean highlightOtherPlayers() default boolean highlightOtherPlayers()
{ {
@@ -347,11 +437,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 25, position = 1,
keyName = "otherPlayerColor", keyName = "otherPlayerColor",
name = "Other player color", name = "Other player color",
description = "Color of other players' names", description = "Color of other players' names",
group = "Other" section = "otherSection"
) )
default Color getOtherColor() default Color getOtherColor()
{ {
@@ -359,11 +449,11 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 26, position = 2,
keyName = "otherIndicatorModes", keyName = "otherIndicatorModes",
name = "Indicator Mode", name = "Indicator Mode",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Other", section = "otherSection",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
@@ -372,38 +462,25 @@ public interface PlayerIndicatorsConfig extends Config
return defaultPlayerIndicatorMode; return defaultPlayerIndicatorMode;
} }
@ConfigTitleSection(
@ConfigItem(
position = 11,
keyName = "playerNamePosition",
name = "Name position",
description = "Configures the position of drawn player names, or if they should be disabled",
parent = "Other Settings"
)
default PlayerNameLocation playerNamePosition()
{
return PlayerNameLocation.ABOVE_HEAD;
}
@ConfigItem(
position = 5,
keyName = "callerConfiguration", keyName = "callerConfiguration",
position = 0,
name = "Caller Configuration", name = "Caller Configuration",
description = "", description = "",
group = "Callers" section = "callersSection"
) )
default Stub callerConfiguration() default Title callerConfiguration()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 30, position = 1,
keyName = "highlightCallers", keyName = "highlightCallers",
name = "Highlight Callers", name = "Highlight Callers",
description = "Highlights Callers Onscreen", description = "Highlights Callers Onscreen",
group = "Callers", section = "callersSection",
parent = "callerConfiguration" titleSection = "callerConfiguration"
) )
default boolean highlightCallers() default boolean highlightCallers()
{ {
@@ -411,12 +488,12 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 31, position = 2,
keyName = "useClanchatRanks", keyName = "useClanchatRanks",
name = "Use Ranks as Callers", name = "Use Ranks as Callers",
description = "Uses clanchat ranks as the list of callers", description = "Uses clanchat ranks as the list of callers",
group = "Callers", section = "callersSection",
parent = "callerConfiguration" titleSection = "callerConfiguration"
) )
default boolean useClanchatRanks() default boolean useClanchatRanks()
{ {
@@ -424,12 +501,12 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 32, position = 3,
keyName = "callerRank", keyName = "callerRank",
name = "Minimum rank for Clan Caller", name = "Minimum rank for Clan Caller",
description = "Chooses the minimum rank to use as clanchat callers.", description = "Chooses the minimum rank to use as clanchat callers.",
group = "Callers", section = "callersSection",
parent = "callerConfiguration" titleSection = "callerConfiguration"
) )
default ClanMemberRank callerRank() default ClanMemberRank callerRank()
{ {
@@ -437,38 +514,38 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 33, position = 4,
keyName = "callers", keyName = "callers",
name = "List of callers to highlight", name = "List of callers to highlight",
description = "Highlights callers, only highlights one at a time. Separate each entry with a comma and enter" + description = "Highlights callers, only highlights one at a time. Separate each entry with a comma and enter" +
" in the order you want them highlighted.", " in the order you want them highlighted.",
group = "Callers", section = "callersSection",
parent = "callerConfiguration" titleSection = "callerConfiguration"
) )
default String callers() default String callers()
{ {
return " "; return " ";
} }
@ConfigItem( @ConfigTitleSection(
position = 5,
keyName = "callerIndicators", keyName = "callerIndicators",
position = 5,
name = "Caller Indicators", name = "Caller Indicators",
description = "", description = "",
group = "Callers" section = "callersSection"
) )
default Stub callerIndicators() default Title callerIndicators()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 31, position = 6,
keyName = "callerColor", keyName = "callerColor",
name = "Caller Color", name = "Caller Color",
description = "Color of Indicated Callers", description = "Color of Indicated Callers",
group = "Callers", section = "callersSection",
parent = "callerIndicators" titleSection = "callerIndicators"
) )
default Color callerColor() default Color callerColor()
{ {
@@ -476,12 +553,12 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 32, position = 7,
keyName = "callerHighlightOptions", keyName = "callerHighlightOptions",
name = "Caller indication methods", name = "Caller indication methods",
description = "Location(s) of the overlay", description = "Location(s) of the overlay",
group = "Callers", section = "callersSection",
parent = "callerIndicators", titleSection = "callerIndicators",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
default EnumSet<PlayerIndicationLocation> callerHighlightOptions() default EnumSet<PlayerIndicationLocation> callerHighlightOptions()
@@ -489,25 +566,25 @@ public interface PlayerIndicatorsConfig extends Config
return defaultPlayerIndicatorMode; return defaultPlayerIndicatorMode;
} }
@ConfigItem( @ConfigTitleSection(
position = 5,
keyName = "callerTargetIndicators", keyName = "callerTargetIndicators",
position = 8,
name = "Caller Target Indicators", name = "Caller Target Indicators",
description = "", description = "",
group = "Callers" section = "callersSection"
) )
default Stub callerTargetIndicators() default Title callerTargetIndicators()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 33, position = 9,
keyName = "callersTargets", keyName = "callersTargets",
name = "Calllers' targets", name = "Calllers' targets",
description = "Highlights the targets of callers", description = "Highlights the targets of callers",
group = "Callers", section = "callersSection",
parent = "callerTargetIndicators" titleSection = "callerTargetIndicators"
) )
default boolean callersTargets() default boolean callersTargets()
{ {
@@ -515,12 +592,12 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 34, position = 10,
keyName = "callerTargetColor", keyName = "callerTargetColor",
name = "Callers' targets color", name = "Callers' targets color",
description = "Color of the the targets of callers", description = "Color of the the targets of callers",
group = "Callers", section = "callersSection",
parent = "callerTargetIndicators" titleSection = "callerTargetIndicators"
) )
default Color callerTargetColor() default Color callerTargetColor()
{ {
@@ -528,12 +605,12 @@ public interface PlayerIndicatorsConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 35, position = 11,
keyName = "callerTargetHighlightOptions", keyName = "callerTargetHighlightOptions",
name = "Pile indication methods", name = "Pile indication methods",
description = "How to highlight the callers' target", description = "How to highlight the callers' target",
group = "Callers", section = "callersSection",
parent = "callerTargetIndicators", titleSection = "callerTargetIndicators",
enumClass = PlayerIndicationLocation.class enumClass = PlayerIndicationLocation.class
) )
default EnumSet<PlayerIndicationLocation> callerTargetHighlightOptions() default EnumSet<PlayerIndicationLocation> callerTargetHighlightOptions()
@@ -541,13 +618,12 @@ public interface PlayerIndicatorsConfig extends Config
return defaultPlayerIndicatorMode; return defaultPlayerIndicatorMode;
} }
@ConfigItem( @ConfigItem(
position = 36, position = 0,
keyName = "unchargedGlory", keyName = "unchargedGlory",
name = "Uncharged Glory Indication", name = "Uncharged Glory Indication",
description = "Indicates if players have an uncharged glory", description = "Indicates if players have an uncharged glory (this only works if the above head indicator is selected)",
parent = "Other Settings" section = "miscellaneousSection"
) )
default boolean unchargedGlory() default boolean unchargedGlory()
{ {

View File

@@ -29,26 +29,27 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("raids") @ConfigGroup("raids")
public interface RaidsConfig extends Config public interface RaidsConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "scouterConfig", keyName = "scouterConfig",
name = "Scouter Config", name = "Scouter Config",
description = "", description = "",
position = 0 position = 0
) )
default Stub scouterConfig() default Title scouterConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 1, position = 1,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "enhanceScouterTitle", keyName = "enhanceScouterTitle",
name = "Enhance scouter title", name = "Enhance scouter title",
description = "Adds #combat and good puzzles to scouter title" description = "Adds #combat and good puzzles to scouter title"
@@ -60,7 +61,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 2, position = 2,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "hideBackground", keyName = "hideBackground",
name = "Hide Scouter Background", name = "Hide Scouter Background",
description = "Removes the scouter background, and makes it transparent." description = "Removes the scouter background, and makes it transparent."
@@ -72,7 +73,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 2, position = 2,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "raidsTimer", keyName = "raidsTimer",
name = "Display elapsed raid time", name = "Display elapsed raid time",
description = "Display elapsed raid time" description = "Display elapsed raid time"
@@ -84,7 +85,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 3, position = 3,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "pointsMessage", keyName = "pointsMessage",
name = "Display points in chatbox after raid", name = "Display points in chatbox after raid",
description = "Display a message with total points, individual points and percentage at the end of a raid" description = "Display a message with total points, individual points and percentage at the end of a raid"
@@ -97,7 +98,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 4, position = 4,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "ptsHr", keyName = "ptsHr",
name = "Enable points per hour message", name = "Enable points per hour message",
description = "Enable the message" description = "Enable the message"
@@ -109,7 +110,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 5, position = 5,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "scoutOverlay", keyName = "scoutOverlay",
name = "Show scout overlay", name = "Show scout overlay",
description = "Display an overlay that shows the current raid layout (when entering lobby)" description = "Display an overlay that shows the current raid layout (when entering lobby)"
@@ -121,7 +122,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 6, position = 6,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "scoutOverlayAtBank", keyName = "scoutOverlayAtBank",
name = "Show scout overlay outside lobby", name = "Show scout overlay outside lobby",
description = "Keep the overlay active while at the raids area" description = "Keep the overlay active while at the raids area"
@@ -133,7 +134,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 7, position = 7,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "scoutOverlayInRaid", keyName = "scoutOverlayInRaid",
name = "Show scout overlay inside raid", name = "Show scout overlay inside raid",
description = "Keep the overlay active while inside raid" description = "Keep the overlay active while inside raid"
@@ -145,7 +146,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 8, position = 8,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "displayFloorBreak", keyName = "displayFloorBreak",
name = "Layout floor break", name = "Layout floor break",
description = "Displays floor break in layout" description = "Displays floor break in layout"
@@ -157,7 +158,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 9, position = 9,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "showRecommendedItems", keyName = "showRecommendedItems",
name = "Show recommended items", name = "Show recommended items",
description = "Adds overlay with recommended items to scouter" description = "Adds overlay with recommended items to scouter"
@@ -169,7 +170,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 10, position = 10,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "recommendedItems", keyName = "recommendedItems",
name = "Recommended items", name = "Recommended items",
hidden = true, hidden = true,
@@ -183,7 +184,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 11, position = 11,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "alwaysShowWorldAndCC", keyName = "alwaysShowWorldAndCC",
name = "Always show CC and World", name = "Always show CC and World",
description = "The CC and World are not removed from being in the in-game scouter" description = "The CC and World are not removed from being in the in-game scouter"
@@ -195,7 +196,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 12, position = 12,
parent = "scouterConfig", titleSection = "scouterConfig",
keyName = "displayLayoutMessage", keyName = "displayLayoutMessage",
name = "Send raid layout message when entering raid", name = "Send raid layout message when entering raid",
description = "Sends game message with raid layout on entering new raid" description = "Sends game message with raid layout on entering new raid"
@@ -205,20 +206,20 @@ public interface RaidsConfig extends Config
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "roomConfig", keyName = "roomConfig",
name = "Room Config", name = "Room Config",
description = "", description = "",
position = 13 position = 13
) )
default Stub roomConfig() default Title roomConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 14, position = 14,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "colorTightrope", keyName = "colorTightrope",
name = "Color tightrope", name = "Color tightrope",
description = "Colors tightrope a separate color" description = "Colors tightrope a separate color"
@@ -230,7 +231,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 15, position = 15,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "tightropeColor", keyName = "tightropeColor",
name = "Tightrope color", name = "Tightrope color",
description = "The color of tightropes", description = "The color of tightropes",
@@ -244,7 +245,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 16, position = 16,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "crabHandler", keyName = "crabHandler",
name = "Color crabs", name = "Color crabs",
description = "If your crabs are good, it will color them to your set color." + description = "If your crabs are good, it will color them to your set color." +
@@ -257,7 +258,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 17, position = 17,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "goodCrabColor", keyName = "goodCrabColor",
name = "Good Crab color", name = "Good Crab color",
description = "The color of good crabs", description = "The color of good crabs",
@@ -271,7 +272,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 17, position = 17,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "rareCrabColor", keyName = "rareCrabColor",
name = "Rare Crab color", name = "Rare Crab color",
description = "The color of rare crabs", description = "The color of rare crabs",
@@ -285,7 +286,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 18, position = 18,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "enableRotationWhitelist", keyName = "enableRotationWhitelist",
name = "Enable rotation whitelist", name = "Enable rotation whitelist",
description = "Enable the rotation whitelist" description = "Enable the rotation whitelist"
@@ -297,7 +298,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 19, position = 19,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "whitelistedRotations", keyName = "whitelistedRotations",
name = "Whitelisted rotations", name = "Whitelisted rotations",
hidden = true, hidden = true,
@@ -311,7 +312,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 20, position = 20,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "enableLayoutWhitelist", keyName = "enableLayoutWhitelist",
name = "Enable layout whitelist", name = "Enable layout whitelist",
description = "Enable the layout whitelist" description = "Enable the layout whitelist"
@@ -323,7 +324,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 21, position = 21,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "whitelistedLayouts", keyName = "whitelistedLayouts",
name = "Whitelisted layouts", name = "Whitelisted layouts",
hidden = true, hidden = true,
@@ -337,7 +338,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 22, position = 22,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "showScavsFarms", keyName = "showScavsFarms",
name = "Show scavengers and farming", name = "Show scavengers and farming",
description = "Adds scavengers and farming to the room breakdown" description = "Adds scavengers and farming to the room breakdown"
@@ -349,7 +350,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 23, position = 23,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "scavsBeforeIce", keyName = "scavsBeforeIce",
name = "Show last scavs for Ice Demon", name = "Show last scavs for Ice Demon",
description = "Highlights final scavengers before Ice Demon" description = "Highlights final scavengers before Ice Demon"
@@ -361,7 +362,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 24, position = 24,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "scavsBeforeOlm", keyName = "scavsBeforeOlm",
name = "Show last scavs for Olm", name = "Show last scavs for Olm",
description = "Highlights final scavengers before Olm" description = "Highlights final scavengers before Olm"
@@ -373,7 +374,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 25, position = 25,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "scavPrepColor", keyName = "scavPrepColor",
name = "Last scavs color", name = "Last scavs color",
description = "The color of the final scavs before Ice Demon/Olm" description = "The color of the final scavs before Ice Demon/Olm"
@@ -385,7 +386,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 26, position = 26,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "whitelistedRooms", keyName = "whitelistedRooms",
name = "Whitelisted rooms", name = "Whitelisted rooms",
description = "Display whitelisted rooms in green on the overlay. Separate with comma (full name)", description = "Display whitelisted rooms in green on the overlay. Separate with comma (full name)",
@@ -400,7 +401,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 27, position = 27,
parent = "roomConfig", titleSection = "roomConfig",
keyName = "blacklistedRooms", keyName = "blacklistedRooms",
name = "Blacklisted rooms", name = "Blacklisted rooms",
description = "Display blacklisted rooms in red on the overlay. Separate with comma (full name)", description = "Display blacklisted rooms in red on the overlay. Separate with comma (full name)",
@@ -413,20 +414,20 @@ public interface RaidsConfig extends Config
return ""; return "";
} }
@ConfigItem( @ConfigTitleSection(
keyName = "hideRooms", keyName = "hideRooms",
name = "Hide Rooms", name = "Hide Rooms",
description = "", description = "",
position = 28 position = 28
) )
default Stub hideRooms() default Title hideRooms()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 29, position = 29,
parent = "hideRooms", titleSection = "hideRooms",
keyName = "hideRopeless", keyName = "hideRopeless",
name = "Hide no Tightrope raids", name = "Hide no Tightrope raids",
description = "Completely hides raids with no tightrope" description = "Completely hides raids with no tightrope"
@@ -438,7 +439,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 30, position = 30,
parent = "hideRooms", titleSection = "hideRooms",
keyName = "hideVanguards", keyName = "hideVanguards",
name = "Hide Vanguard raids", name = "Hide Vanguard raids",
description = "Completely hides raids with Vanguards" description = "Completely hides raids with Vanguards"
@@ -450,7 +451,7 @@ public interface RaidsConfig extends Config
@ConfigItem( @ConfigItem(
position = 31, position = 31,
parent = "hideRooms", titleSection = "hideRooms",
keyName = "hideUnknownCombat", keyName = "hideUnknownCombat",
name = "Hide Unknown combat raids", name = "Hide Unknown combat raids",
description = "Completely hides raids with Unknown combat" description = "Completely hides raids with Unknown combat"

View File

@@ -28,27 +28,28 @@ package net.runelite.client.plugins.runecraft;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("runecraft") @ConfigGroup("runecraft")
public interface RunecraftConfig extends Config public interface RunecraftConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "utilStub", keyName = "utilTitle",
name = "Utility", name = "Utility",
description = "", description = "",
position = 1 position = 1
) )
default Stub utilStub() default Title utilTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "lavas", keyName = "lavas",
name = "Lavas", name = "Lavas",
description = "Swaps Ring of dueling menu entry depending on location, requires fire tiara or RC cape to be worn.", description = "Swaps Ring of dueling menu entry depending on location, requires fire tiara or RC cape to be worn.",
parent = "utilStub", titleSection = "utilTitle",
warning = "<html><center>This config option is incompatible with menu-entry-swapper equipment swaps." + warning = "<html><center>This config option is incompatible with menu-entry-swapper equipment swaps." +
"<br>Expect bugs if you use them together.</html></center>", "<br>Expect bugs if you use them together.</html></center>",
position = 2 position = 2
@@ -62,7 +63,7 @@ public interface RunecraftConfig extends Config
keyName = "essPouch", keyName = "essPouch",
name = "Swap essence pouch", name = "Swap essence pouch",
description = "Makes essence pouch left-click fill in bank", description = "Makes essence pouch left-click fill in bank",
parent = "utilStub", titleSection = "utilTitle",
position = 3 position = 3
) )
default boolean essPouch() default boolean essPouch()
@@ -75,7 +76,7 @@ public interface RunecraftConfig extends Config
name = "Highlight Dark Mage NPC", name = "Highlight Dark Mage NPC",
description = "Configures whether to highlight the Dark Mage when pouches are degraded", description = "Configures whether to highlight the Dark Mage when pouches are degraded",
position = 4, position = 4,
parent = "utilStub" titleSection = "utilTitle"
) )
default boolean hightlightDarkMage() default boolean hightlightDarkMage()
{ {
@@ -87,23 +88,22 @@ public interface RunecraftConfig extends Config
name = "Notify when pouch degrades", name = "Notify when pouch degrades",
description = "Send a notification when a pouch degrades", description = "Send a notification when a pouch degrades",
position = 5, position = 5,
parent = "utilStub" titleSection = "utilTitle"
) )
default boolean degradingNotification() default boolean degradingNotification()
{ {
return true; return true;
} }
@ConfigTitleSection(
@ConfigItem( keyName = "riftsTitle",
keyName = "riftsStub",
name = "Rifts", name = "Rifts",
description = "", description = "",
position = 6 position = 6
) )
default Stub riftsStub() default Title riftsTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -111,7 +111,7 @@ public interface RunecraftConfig extends Config
name = "Show Rifts in Abyss", name = "Show Rifts in Abyss",
description = "Configures whether the rifts in the abyss will be displayed", description = "Configures whether the rifts in the abyss will be displayed",
position = 7, position = 7,
parent = "riftsStub" titleSection = "riftsTitle"
) )
default boolean showRifts() default boolean showRifts()
{ {
@@ -123,7 +123,7 @@ public interface RunecraftConfig extends Config
name = "Show Air rift", name = "Show Air rift",
description = "Configures whether to display the air rift", description = "Configures whether to display the air rift",
position = 8, position = 8,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -137,7 +137,7 @@ public interface RunecraftConfig extends Config
name = "Show Blood rift", name = "Show Blood rift",
description = "Configures whether to display the Blood rift", description = "Configures whether to display the Blood rift",
position = 9, position = 9,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -151,7 +151,7 @@ public interface RunecraftConfig extends Config
name = "Show Body rift", name = "Show Body rift",
description = "Configures whether to display the Body rift", description = "Configures whether to display the Body rift",
position = 10, position = 10,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -165,7 +165,7 @@ public interface RunecraftConfig extends Config
name = "Show Chaos rift", name = "Show Chaos rift",
description = "Configures whether to display the Chaos rift", description = "Configures whether to display the Chaos rift",
position = 11, position = 11,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -179,7 +179,7 @@ public interface RunecraftConfig extends Config
name = "Show Cosmic rift", name = "Show Cosmic rift",
description = "Configures whether to display the Cosmic rift", description = "Configures whether to display the Cosmic rift",
position = 12, position = 12,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -193,7 +193,7 @@ public interface RunecraftConfig extends Config
name = "Show Death rift", name = "Show Death rift",
description = "Configures whether to display the Death rift", description = "Configures whether to display the Death rift",
position = 13, position = 13,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -207,7 +207,7 @@ public interface RunecraftConfig extends Config
name = "Show Earth rift", name = "Show Earth rift",
description = "Configures whether to display the Earth rift", description = "Configures whether to display the Earth rift",
position = 14, position = 14,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -221,7 +221,7 @@ public interface RunecraftConfig extends Config
name = "Show Fire rift", name = "Show Fire rift",
description = "Configures whether to display the Fire rift", description = "Configures whether to display the Fire rift",
position = 15, position = 15,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -235,7 +235,7 @@ public interface RunecraftConfig extends Config
name = "Show Law rift", name = "Show Law rift",
description = "Configures whether to display the Law rift", description = "Configures whether to display the Law rift",
position = 16, position = 16,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -249,7 +249,7 @@ public interface RunecraftConfig extends Config
name = "Show Mind rift", name = "Show Mind rift",
description = "Configures whether to display the Mind rift", description = "Configures whether to display the Mind rift",
position = 17, position = 17,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -263,7 +263,7 @@ public interface RunecraftConfig extends Config
name = "Show Nature rift", name = "Show Nature rift",
description = "Configures whether to display the Nature rift", description = "Configures whether to display the Nature rift",
position = 18, position = 18,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -277,7 +277,7 @@ public interface RunecraftConfig extends Config
name = "Show Soul rift", name = "Show Soul rift",
description = "Configures whether to display the Soul rift", description = "Configures whether to display the Soul rift",
position = 19, position = 19,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -291,7 +291,7 @@ public interface RunecraftConfig extends Config
name = "Show Water rift", name = "Show Water rift",
description = "Configures whether to display the Water rift", description = "Configures whether to display the Water rift",
position = 20, position = 20,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )
@@ -305,7 +305,7 @@ public interface RunecraftConfig extends Config
name = "Show Rift click box", name = "Show Rift click box",
description = "Configures whether to display the click box of the rift", description = "Configures whether to display the click box of the rift",
position = 21, position = 21,
parent = "riftsStub", titleSection = "riftsTitle",
hidden = true, hidden = true,
unhide = "showRifts" unhide = "showRifts"
) )

View File

@@ -28,21 +28,22 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("runedoku") @ConfigGroup("runedoku")
public interface RunedokuConfig extends Config public interface RunedokuConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "colorTitle",
position = 0, position = 0,
keyName = "colorStub",
name = "Colors", name = "Colors",
description = "" //stubs don't show descriptions when hovered over description = "" //stubs don't show descriptions when hovered over
) )
default Stub colorStub() default Title colorTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -50,7 +51,7 @@ public interface RunedokuConfig extends Config
keyName = "mindRuneColor", keyName = "mindRuneColor",
name = "Mind Rune Color", name = "Mind Rune Color",
description = "Color used to highlight Mind runes.", description = "Color used to highlight Mind runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color mindRuneColor() default Color mindRuneColor()
{ {
@@ -62,7 +63,7 @@ public interface RunedokuConfig extends Config
keyName = "fireRuneColor", keyName = "fireRuneColor",
name = "Fire Rune Color", name = "Fire Rune Color",
description = "Color used to highlight Fire runes.", description = "Color used to highlight Fire runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color fireRuneColor() default Color fireRuneColor()
{ {
@@ -74,7 +75,7 @@ public interface RunedokuConfig extends Config
keyName = "bodyRuneColor", keyName = "bodyRuneColor",
name = "Body Rune Color", name = "Body Rune Color",
description = "Color used to highlight Body runes.", description = "Color used to highlight Body runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color bodyRuneColor() default Color bodyRuneColor()
{ {
@@ -86,7 +87,7 @@ public interface RunedokuConfig extends Config
keyName = "airRuneColor", keyName = "airRuneColor",
name = "Air Rune Color", name = "Air Rune Color",
description = "Color used to highlight Air runes.", description = "Color used to highlight Air runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color airRuneColor() default Color airRuneColor()
{ {
@@ -98,7 +99,7 @@ public interface RunedokuConfig extends Config
keyName = "deathRuneColor", keyName = "deathRuneColor",
name = "Death Rune Color", name = "Death Rune Color",
description = "Color used to highlight Death runes.", description = "Color used to highlight Death runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color deathRuneColor() default Color deathRuneColor()
{ {
@@ -110,7 +111,7 @@ public interface RunedokuConfig extends Config
keyName = "waterRuneColor", keyName = "waterRuneColor",
name = "Water Rune Color", name = "Water Rune Color",
description = "Color used to highlight Water runes.", description = "Color used to highlight Water runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color waterRuneColor() default Color waterRuneColor()
{ {
@@ -122,7 +123,7 @@ public interface RunedokuConfig extends Config
keyName = "chaosRuneColor", keyName = "chaosRuneColor",
name = "Chaos Rune Color", name = "Chaos Rune Color",
description = "Color used to highlight Chaos runes.", description = "Color used to highlight Chaos runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color chaosRuneColor() default Color chaosRuneColor()
{ {
@@ -134,7 +135,7 @@ public interface RunedokuConfig extends Config
keyName = "earthRuneColor", keyName = "earthRuneColor",
name = "Earth Rune Color", name = "Earth Rune Color",
description = "Color used to highlight Earth runes.", description = "Color used to highlight Earth runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color earthRuneColor() default Color earthRuneColor()
{ {
@@ -146,29 +147,30 @@ public interface RunedokuConfig extends Config
keyName = "lawRuneColor", keyName = "lawRuneColor",
name = "Law Rune Color", name = "Law Rune Color",
description = "Color used to highlight Law runes.", description = "Color used to highlight Law runes.",
parent = "colorStub" titleSection = "colorTitle"
) )
default Color lawRuneColor() default Color lawRuneColor()
{ {
return Color.CYAN; return Color.CYAN;
} }
@ConfigItem( @ConfigTitleSection(
position = 10,
keyName = "miscFeature", keyName = "miscFeature",
position = 10,
name = "Miscellaneous Features", name = "Miscellaneous Features",
description = "" description = ""
) )
default Stub miscFeature() default Title miscFeature()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
position = 11, position = 11,
keyName = "onlyHighlightSelectedPiece", keyName = "onlyHighlightSelectedPiece",
name = "Only Highlight Selected Piece", name = "Only Highlight Selected Piece",
description = "Instead of showing all, this option only show what rune you have selected." description = "Instead of showing all, this option only show what rune you have selected.",
titleSection = "miscFeature"
) )
default boolean onlyHighlightSelectedPiece() default boolean onlyHighlightSelectedPiece()
{ {

View File

@@ -28,27 +28,28 @@ package net.runelite.client.plugins.statusorbs;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("statusorbs") @ConfigGroup("statusorbs")
public interface StatusOrbsConfig extends Config public interface StatusOrbsConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "hp", keyName = "hp",
name = "Hitpoints", name = "Hitpoints",
description = "", description = "",
position = 0 position = 0
) )
default Stub hp() default Title hp()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "dynamicHpHeart", keyName = "dynamicHpHeart",
name = "Dynamic hitpoints heart", name = "Dynamic hitpoints heart",
description = "Changes the HP heart color to match players current affliction", description = "Changes the HP heart color to match players current affliction",
parent = "hp", titleSection = "hp",
position = 1 position = 1
) )
default boolean dynamicHpHeart() default boolean dynamicHpHeart()
@@ -60,7 +61,7 @@ public interface StatusOrbsConfig extends Config
keyName = "showHitpoints", keyName = "showHitpoints",
name = "Show hitpoints regen", name = "Show hitpoints regen",
description = "Show a ring around the hitpoints orb", description = "Show a ring around the hitpoints orb",
parent = "hp", titleSection = "hp",
position = 2 position = 2
) )
default boolean showHitpoints() default boolean showHitpoints()
@@ -72,7 +73,7 @@ public interface StatusOrbsConfig extends Config
keyName = "showWhenNoChange", keyName = "showWhenNoChange",
name = "Show hitpoints regen at full hitpoints", name = "Show hitpoints regen at full hitpoints",
description = "Always show the hitpoints regen orb, even if there will be no stat change", description = "Always show the hitpoints regen orb, even if there will be no stat change",
parent = "hp", titleSection = "hp",
position = 3 position = 3
) )
default boolean showWhenNoChange() default boolean showWhenNoChange()
@@ -84,7 +85,7 @@ public interface StatusOrbsConfig extends Config
keyName = "notifyBeforeHpRegenDuration", keyName = "notifyBeforeHpRegenDuration",
name = "Hitpoint Regen Notification (seconds)", name = "Hitpoint Regen Notification (seconds)",
description = "Notify approximately when your next hitpoint is about to regen. A value of 0 will disable notification.", description = "Notify approximately when your next hitpoint is about to regen. A value of 0 will disable notification.",
parent = "hp", titleSection = "hp",
position = 4 position = 4
) )
default int getNotifyBeforeHpRegenSeconds() default int getNotifyBeforeHpRegenSeconds()
@@ -92,22 +93,22 @@ public interface StatusOrbsConfig extends Config
return 0; return 0;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "spec", keyName = "spec",
name = "Special attack", name = "Special attack",
description = "", description = "",
position = 5 position = 5
) )
default Stub spec() default Title spec()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "showSpecial", keyName = "showSpecial",
name = "Show Spec. Attack regen", name = "Show Spec. Attack regen",
description = "Show a ring around the Special Attack orb", description = "Show a ring around the Special Attack orb",
parent = "spec", titleSection = "spec",
position = 6 position = 6
) )
default boolean showSpecial() default boolean showSpecial()
@@ -115,15 +116,15 @@ public interface StatusOrbsConfig extends Config
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "run", keyName = "run",
name = "Run energy", name = "Run energy",
description = "", description = "",
position = 7 position = 7
) )
default Stub run() default Title run()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -131,7 +132,7 @@ public interface StatusOrbsConfig extends Config
name = "Show run energy regen", name = "Show run energy regen",
description = "Show a ring around the run regen orb", description = "Show a ring around the run regen orb",
position = 8, position = 8,
parent = "run" titleSection = "run"
) )
default boolean showRun() default boolean showRun()
{ {
@@ -143,7 +144,7 @@ public interface StatusOrbsConfig extends Config
name = "Replace run orb text with run time left", name = "Replace run orb text with run time left",
description = "Show the remaining run time (in seconds) next in the energy orb", description = "Show the remaining run time (in seconds) next in the energy orb",
position = 9, position = 9,
parent = "run" titleSection = "run"
) )
default boolean replaceOrbText() default boolean replaceOrbText()
{ {

View File

@@ -12,17 +12,29 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigSection;
@ConfigGroup("Theatre") @ConfigGroup("Theatre")
public interface TheatreConfig extends Config public interface TheatreConfig extends Config
{ {
@ConfigItem( @ConfigSection(
position = 0, position = 0,
keyName = "maidenSection",
name = "Maiden",
description = ""
)
default boolean experimentalSection()
{
return false;
}
@ConfigItem(
position = 1,
keyName = "showMaidenBloodToss", keyName = "showMaidenBloodToss",
name = "Show Maiden Blood Toss", name = "Show Maiden Blood Toss",
description = "Displays the tile location where tossed blood will land.", description = "Displays the tile location where tossed blood will land.",
group = "Maiden" section = "maidenSection"
) )
default boolean showMaidenBloodToss() default boolean showMaidenBloodToss()
{ {
@@ -30,11 +42,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 1, position = 2,
keyName = "showMaidenBloodSpawns", keyName = "showMaidenBloodSpawns",
name = "Show Maiden Blood Spawns", name = "Show Maiden Blood Spawns",
description = "Show the tiles that blood spawns will travel to.", description = "Show the tiles that blood spawns will travel to.",
group = "Maiden" section = "maidenSection"
) )
default boolean showMaidenBloodSpawns() default boolean showMaidenBloodSpawns()
{ {
@@ -42,23 +54,34 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 2, position = 3,
keyName = "showNyloFreezeHighlights", keyName = "showNyloFreezeHighlights",
name = "Show Nylo Freeze Highlights", name = "Show Nylo Freeze Highlights",
description = "Show when to freeze Nylos at maiden. Say n1,n2,s1,s2 in chat for it to register.", description = "Show when to freeze Nylos at maiden. Say n1,n2,s1,s2 in chat for it to register.",
group = "Maiden" section = "maidenSection"
) )
default boolean showNyloFreezeHighlights() default boolean showNyloFreezeHighlights()
{ {
return true; return true;
} }
@ConfigSection(
position = 4,
keyName = "bloatSection",
name = "Bloat",
description = ""
)
default boolean bloatSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 2, position = 5,
keyName = "showBloatIndicator", keyName = "showBloatIndicator",
name = "Show Bloat Status", name = "Show Bloat Status",
description = "Displays Bloat's status (asleep, wake, and enrage) using color code.", description = "Displays Bloat's status (asleep, wake, and enrage) using color code.",
group = "Bloat" section = "bloatSection"
) )
default boolean showBloatIndicator() default boolean showBloatIndicator()
{ {
@@ -66,11 +89,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 3, position = 6,
keyName = "showBloatHands", keyName = "showBloatHands",
name = "Show Bloat Hands", name = "Show Bloat Hands",
description = "Highlights the falling hands inside Bloat.", description = "Highlights the falling hands inside Bloat.",
group = "Bloat" section = "bloatSection"
) )
default boolean showBloatHands() default boolean showBloatHands()
{ {
@@ -78,11 +101,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 4, position = 7,
keyName = "bloatFeet", keyName = "bloatFeet",
name = "Bloat Hands Rave Edition", name = "Bloat Hands Rave Edition",
description = "", description = "",
group = "Bloat" section = "bloatSection"
) )
default boolean BloatFeetIndicatorRaveEdition() default boolean BloatFeetIndicatorRaveEdition()
{ {
@@ -90,23 +113,34 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 4, position = 8,
keyName = "showBloatTimer", keyName = "showBloatTimer",
name = "Show Bloat Timer", name = "Show Bloat Timer",
description = "Show the estimated time when Bloat will go down.", description = "Show the estimated time when Bloat will go down.",
group = "Bloat" section = "bloatSection"
) )
default boolean showBloatTimer() default boolean showBloatTimer()
{ {
return false; return false;
} }
@ConfigSection(
position = 9,
keyName = "nylocasSection",
name = "Nylocas",
description = ""
)
default boolean nylocasSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 5, position = 10,
keyName = "showNyloPillarHealth", keyName = "showNyloPillarHealth",
name = "Show Nylocas Pillar Health", name = "Show Nylocas Pillar Health",
description = "Show the health bars of the Nylocas pillars.", description = "Show the health bars of the Nylocas pillars.",
group = "Nylocas" section = "nylocasSection"
) )
default boolean showNyloPillarHealth() default boolean showNyloPillarHealth()
{ {
@@ -114,11 +148,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 6, position = 11,
keyName = "showNylocasExplosions", keyName = "showNylocasExplosions",
name = "Highlight Old Nylocas", name = "Highlight Old Nylocas",
description = "Either a timer on the nylo counting down to explosion, or a tile underneath.", description = "Either a timer on the nylo counting down to explosion, or a tile underneath.",
group = "Nylocas" section = "nylocasSection"
) )
default NYLOOPTION showNylocasExplosions() default NYLOOPTION showNylocasExplosions()
{ {
@@ -126,11 +160,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 7, position = 12,
keyName = "showNylocasAmount", keyName = "showNylocasAmount",
name = "Show Nylocas Amount", name = "Show Nylocas Amount",
description = "An overlay will appear that counts the amount of Nylocas in the room.", description = "An overlay will appear that counts the amount of Nylocas in the room.",
group = "Nylocas" section = "nylocasSection"
) )
default boolean showNylocasAmount() default boolean showNylocasAmount()
{ {
@@ -138,11 +172,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 8, position = 13,
keyName = "nylocasMenuSwap", keyName = "nylocasMenuSwap",
name = "Hide Nylocas wrong attack options", name = "Hide Nylocas wrong attack options",
description = "hides attack options on small nylos of the wrong style", description = "hides attack options on small nylos of the wrong style",
group = "Nylocas" section = "nylocasSection"
) )
default boolean nylocasMenuSwap() default boolean nylocasMenuSwap()
{ {
@@ -180,23 +214,35 @@ public interface TheatreConfig extends Config
**/ **/
@ConfigItem( @ConfigItem(
position = 11, position = 14,
keyName = "highlightNyloAgros", keyName = "highlightNyloAgros",
name = "Show Nylocas Agros", name = "Show Nylocas Agros",
description = "Highlight the Nylocas that are aggressive to the player.", description = "Highlight the Nylocas that are aggressive to the player.",
group = "Nylocas" section = "nylocasSection"
) )
default boolean highlightNyloAgros() default boolean highlightNyloAgros()
{ {
return true; return true;
} }
@ConfigSection(
position = 15,
keyName = "sotetsegSection",
name = "Sotetseg",
description = ""
)
default boolean sotetsegSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 12, position = 16,
keyName = "showSotetsegAttacks", keyName = "showSotetsegAttacks",
name = "Show Sotetseg Attacks", name = "Show Sotetseg Attacks",
description = "Highlight the attacks which Sotetseg throws at you.", description = "Highlight the attacks which Sotetseg throws at you.",
group = "Sotetseg" section = "sotetsegSection"
) )
default boolean showSotetsegAttacks() default boolean showSotetsegAttacks()
{ {
@@ -204,11 +250,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 13, position = 17,
keyName = "showSotetsegMaze", keyName = "showSotetsegMaze",
name = "Mark Sotetseg Maze", name = "Mark Sotetseg Maze",
description = "Marks the tiles of Sotetseg's maze while in the overworld.", description = "Marks the tiles of Sotetseg's maze while in the overworld.",
group = "Sotetseg" section = "sotetsegSection"
) )
default boolean showSotetsegMaze() default boolean showSotetsegMaze()
{ {
@@ -216,11 +262,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 14, position = 18,
keyName = "showSotetsegSolo", keyName = "showSotetsegSolo",
name = "Mark Sotetseg Maze (Solo)", name = "Mark Sotetseg Maze (Solo)",
description = "Marks the tiles of Sotetseg's maze while in the underworld.", description = "Marks the tiles of Sotetseg's maze while in the underworld.",
group = "Sotetseg" section = "sotetsegSection"
) )
default boolean showSotetsegSolo() default boolean showSotetsegSolo()
{ {
@@ -228,23 +274,34 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 14, position = 19,
keyName = "markerColor", keyName = "markerColor",
name = "Sotey Tile Colour", name = "Sotey Tile Colour",
description = "Configures the color of marked tile", description = "Configures the color of marked tile",
group = "Sotetseg" section = "sotetsegSection"
) )
default Color mazeTileColour() default Color mazeTileColour()
{ {
return Color.WHITE; return Color.WHITE;
} }
@ConfigSection(
position = 20,
keyName = "xarpusSection",
name = "Xarpus",
description = ""
)
default boolean xarpusSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 15, position = 21,
keyName = "showXarpusHeals", keyName = "showXarpusHeals",
name = "Show Xarpus Heals", name = "Show Xarpus Heals",
description = "Highlights the tiles that Xarpus is healing with.", description = "Highlights the tiles that Xarpus is healing with.",
group = "Xarpus" section = "xarpusSection"
) )
default boolean showXarpusHeals() default boolean showXarpusHeals()
{ {
@@ -252,23 +309,34 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 16, position = 22,
keyName = "showXarpusTick", keyName = "showXarpusTick",
name = "Show Xarpus Turn Tick", name = "Show Xarpus Turn Tick",
description = "Count down the ticks until Xarpus turns their head.", description = "Count down the ticks until Xarpus turns their head.",
group = "Xarpus" section = "xarpusSection"
) )
default boolean showXarpusTick() default boolean showXarpusTick()
{ {
return true; return true;
} }
@ConfigSection(
position = 23,
keyName = "verzikSection",
name = "Verzik",
description = ""
)
default boolean verzikSection()
{
return false;
}
@ConfigItem( @ConfigItem(
position = 17, position = 24,
keyName = "showVerzikAttacks", keyName = "showVerzikAttacks",
name = "Show Verzik Attack Tick", name = "Show Verzik Attack Tick",
description = "Count down the ticks until Verzik attacks.", description = "Count down the ticks until Verzik attacks.",
group = "Verzik" section = "verzikSection"
) )
default boolean showVerzikAttacks() default boolean showVerzikAttacks()
{ {
@@ -276,11 +344,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 18, position = 25,
keyName = "showVerzikYellows", keyName = "showVerzikYellows",
name = "Show Yellows Tick", name = "Show Yellows Tick",
description = "Count down the ticks until Verzik yellow's damage tick.", description = "Count down the ticks until Verzik yellow's damage tick.",
group = "Verzik" section = "verzikSection"
) )
default boolean showVerzikYellows() default boolean showVerzikYellows()
{ {
@@ -288,11 +356,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 19, position = 26,
keyName = "showCrabTargets", keyName = "showCrabTargets",
name = "Show Crab Targets", name = "Show Crab Targets",
description = "Shows the target of crabs at Verzik.", description = "Shows the target of crabs at Verzik.",
group = "Verzik" section = "verzikSection"
) )
default boolean showCrabTargets() default boolean showCrabTargets()
{ {
@@ -300,11 +368,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 20, position = 27,
keyName = "VerzikTankTile", keyName = "VerzikTankTile",
name = "Verzik P3 Tile Overlay", name = "Verzik P3 Tile Overlay",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean VerzikTankTile() default boolean VerzikTankTile()
{ {
@@ -312,11 +380,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 22, position = 28,
keyName = "verzikrangeattacks", keyName = "verzikrangeattacks",
name = "Show Verzik Range Attacks", name = "Show Verzik Range Attacks",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean verzikRangeAttacks() default boolean verzikRangeAttacks()
{ {
@@ -324,11 +392,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 23, position = 29,
keyName = "extratimers", keyName = "extratimers",
name = "Show Extra Timers", name = "Show Extra Timers",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean extraTimers() default boolean extraTimers()
{ {
@@ -336,11 +404,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 24, position = 30,
keyName = "p1attacks", keyName = "p1attacks",
name = "Verzik P1 Timer", name = "Verzik P1 Timer",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean p1attacks() default boolean p1attacks()
{ {
@@ -348,11 +416,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 25, position = 31,
keyName = "p2attacks", keyName = "p2attacks",
name = "Verzik P2 Timer", name = "Verzik P2 Timer",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean p2attacks() default boolean p2attacks()
{ {
@@ -360,11 +428,11 @@ public interface TheatreConfig extends Config
} }
@ConfigItem( @ConfigItem(
position = 26, position = 32,
keyName = "p3attacks", keyName = "p3attacks",
name = "Verzik P3 Timer", name = "Verzik P3 Timer",
description = "", description = "",
group = "Verzik" section = "verzikSection"
) )
default boolean p3attacks() default boolean p3attacks()
{ {

View File

@@ -30,21 +30,22 @@ import lombok.Getter;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Range; import net.runelite.client.config.Range;
import net.runelite.client.config.Stub; import net.runelite.client.config.Title;
@ConfigGroup("TickTimers") @ConfigGroup("TickTimers")
public interface TickTimersConfig extends Config public interface TickTimersConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
position = 0,
keyName = "mainConfig", keyName = "mainConfig",
position = 0,
name = "Main Config", name = "Main Config",
description = "" description = ""
) )
default Stub mainConfig() default Title mainConfig()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -52,7 +53,7 @@ public interface TickTimersConfig extends Config
keyName = "prayerWidgetHelper", keyName = "prayerWidgetHelper",
name = "Prayer Widget Helper", name = "Prayer Widget Helper",
description = "Shows you which prayer to click and the time until click.", description = "Shows you which prayer to click and the time until click.",
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean showPrayerWidgetHelper() default boolean showPrayerWidgetHelper()
{ {
@@ -64,7 +65,7 @@ public interface TickTimersConfig extends Config
keyName = "showHitSquares", keyName = "showHitSquares",
name = "Show Hit Squares", name = "Show Hit Squares",
description = "Shows you where the melee bosses can hit you from.", description = "Shows you where the melee bosses can hit you from.",
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean showHitSquares() default boolean showHitSquares()
{ {
@@ -77,22 +78,22 @@ public interface TickTimersConfig extends Config
name = "Change Tick Color", name = "Change Tick Color",
description = "If this is enabled, it will change the tick color to white" + description = "If this is enabled, it will change the tick color to white" +
"<br> at 1 tick remaining, signaling you to swap.", "<br> at 1 tick remaining, signaling you to swap.",
parent = "mainConfig" titleSection = "mainConfig"
) )
default boolean changeTickColor() default boolean changeTickColor()
{ {
return false; return false;
} }
@ConfigItem( @ConfigTitleSection(
position = 4,
keyName = "bosses", keyName = "bosses",
position = 4,
name = "Bosses", name = "Bosses",
description = "" description = ""
) )
default Stub bosses() default Title bosses()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -100,7 +101,7 @@ public interface TickTimersConfig extends Config
keyName = "gwd", keyName = "gwd",
name = "God Wars Dungeon", name = "God Wars Dungeon",
description = "Show tick timers for GWD Bosses. This must be enabled before you zone in.", description = "Show tick timers for GWD Bosses. This must be enabled before you zone in.",
parent = "bosses" titleSection = "bosses"
) )
default boolean gwd() default boolean gwd()
{ {
@@ -112,22 +113,22 @@ public interface TickTimersConfig extends Config
keyName = "dks", keyName = "dks",
name = "Dagannoth Kings", name = "Dagannoth Kings",
description = "Show tick timers for Dagannoth Kings. This must be enabled before you zone in.", description = "Show tick timers for Dagannoth Kings. This must be enabled before you zone in.",
parent = "bosses" titleSection = "bosses"
) )
default boolean dks() default boolean dks()
{ {
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
position = 7,
keyName = "text", keyName = "text",
position = 7,
name = "Text", name = "Text",
description = "" description = ""
) )
default Stub text() default Title text()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -135,7 +136,7 @@ public interface TickTimersConfig extends Config
keyName = "fontStyle", keyName = "fontStyle",
name = "Font Style", name = "Font Style",
description = "Plain | Bold | Italics", description = "Plain | Bold | Italics",
parent = "text" titleSection = "text"
) )
default FontStyle fontStyle() default FontStyle fontStyle()
{ {
@@ -151,7 +152,7 @@ public interface TickTimersConfig extends Config
keyName = "textSize", keyName = "textSize",
name = "Text Size", name = "Text Size",
description = "Text Size for Timers.", description = "Text Size for Timers.",
parent = "text" titleSection = "text"
) )
default int textSize() default int textSize()
{ {
@@ -163,7 +164,7 @@ public interface TickTimersConfig extends Config
keyName = "shadows", keyName = "shadows",
name = "Shadows", name = "Shadows",
description = "Adds Shadows to text.", description = "Adds Shadows to text.",
parent = "text" titleSection = "text"
) )
default boolean shadows() default boolean shadows()
{ {

View File

@@ -26,20 +26,22 @@ package net.runelite.client.plugins.tmorph;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigSection;
import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("TMorph") @ConfigGroup("TMorph")
public interface TMorphConfig extends Config public interface TMorphConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "swaps", keyName = "swaps",
name = "Morphers", name = "Morphers",
description = "", description = "",
position = 0 position = 0
) )
default Stub swaps() default Title swaps()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
@@ -48,7 +50,7 @@ public interface TMorphConfig extends Config
description = "<html><center>Proper Format is id,id:Slot" + description = "<html><center>Proper Format is id,id:Slot" +
"<br>For example: 6570,21295:Cape" + "<br>For example: 6570,21295:Cape" +
"<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>", "<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>",
parent = "swaps", titleSection = "swaps",
position = 1, position = 1,
parse = true, parse = true,
clazz = Parse.class, clazz = Parse.class,
@@ -65,7 +67,7 @@ public interface TMorphConfig extends Config
description = "<html><center>Proper Format is id,id:Slot" + description = "<html><center>Proper Format is id,id:Slot" +
"<br>For example: 6570,21295:Cape" + "<br>For example: 6570,21295:Cape" +
"<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>", "<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>",
parent = "swaps", titleSection = "swaps",
position = 2, position = 2,
parse = true, parse = true,
clazz = Parse.class, clazz = Parse.class,
@@ -82,7 +84,7 @@ public interface TMorphConfig extends Config
description = "<html><center>Proper Format is id,id:Slot" + description = "<html><center>Proper Format is id,id:Slot" +
"<br>For example: 6570,21295:Cape" + "<br>For example: 6570,21295:Cape" +
"<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>", "<br>Valid Slots: Helmet, Cape, Amulet, Weapon, Torso, Shield, Legs, Head, Hands, Boots, Jaw, Ring, Ammo</center></html>",
parent = "swaps", titleSection = "swaps",
position = 3, position = 3,
parse = true, parse = true,
clazz = Parse.class, clazz = Parse.class,
@@ -93,27 +95,39 @@ public interface TMorphConfig extends Config
return ""; return "";
} }
//////////////////Experimental Functions
@ConfigSection(
position = 4,
keyName = "experimentalSection",
name = "Experimental Functions",
description = ""
)
default boolean experimentalSection()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "experimentalFunctions", keyName = "experimentalFunctions",
name = "Experimental Functions", name = "Experimental Functions",
description = "May bug out in unintended ways.", description = "May bug out in unintended ways.",
parent = "swaps", section = "experimentalSection",
position = 4 position = 0
) )
default boolean experimentalFunctions() default boolean experimentalFunctions()
{ {
return false; return false;
} }
//////////////////Experimental Functions
@ConfigItem( @ConfigItem(
keyName = "globalAnimSwap", keyName = "globalAnimSwap",
name = "Global Animation Swap", name = "Global Animation Swap",
description = "DO NOT USE WITH ANIMATION SWAP BELOW", description = "DO NOT USE WITH ANIMATION SWAP BELOW",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 1
) )
default int globalAnimSwap() default int globalAnimSwap()
{ {
@@ -124,9 +138,10 @@ public interface TMorphConfig extends Config
keyName = "animationSwap", keyName = "animationSwap",
name = "Animation Swap", name = "Animation Swap",
description = "ID", description = "ID",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 2
) )
default int animationSwap() default int animationSwap()
{ {
@@ -137,9 +152,10 @@ public interface TMorphConfig extends Config
keyName = "animationTarget", keyName = "animationTarget",
name = "Animation Target", name = "Animation Target",
description = "ID", description = "ID",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 3
) )
default int animationTarget() default int animationTarget()
{ {
@@ -150,9 +166,10 @@ public interface TMorphConfig extends Config
keyName = "globalGraphicSwap", keyName = "globalGraphicSwap",
name = "Global Graphic Swap", name = "Global Graphic Swap",
description = "DO NOT USE WITH GRAPHIC SWAP BELOW", description = "DO NOT USE WITH GRAPHIC SWAP BELOW",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 4
) )
default int globalGraphicSwap() default int globalGraphicSwap()
{ {
@@ -163,9 +180,10 @@ public interface TMorphConfig extends Config
keyName = "graphicSwap", keyName = "graphicSwap",
name = "Graphic Swap", name = "Graphic Swap",
description = "ID", description = "ID",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 5
) )
default int graphicSwap() default int graphicSwap()
{ {
@@ -176,9 +194,10 @@ public interface TMorphConfig extends Config
keyName = "graphicTarget", keyName = "graphicTarget",
name = "Graphic Target", name = "Graphic Target",
description = "ID", description = "ID",
group = "Experimental Functions", section = "experimentalSection",
hidden = true, hidden = true,
unhide = "experimentalFunctions" unhide = "experimentalFunctions",
position = 6
) )
default int graphicTarget() default int graphicTarget()
{ {

View File

@@ -30,28 +30,29 @@ import java.awt.Color;
import net.runelite.client.config.Config; import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem; import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub; import net.runelite.client.config.ConfigTitleSection;
import net.runelite.client.config.Title;
@ConfigGroup("zalcano") @ConfigGroup("zalcano")
public interface ZalcanoConfig extends Config public interface ZalcanoConfig extends Config
{ {
@ConfigItem( @ConfigTitleSection(
keyName = "zalcanoStub", keyName = "zalcanoTitle",
name = "Zalcano", name = "Zalcano",
description = "", description = "",
position = 0 position = 0
) )
default Stub zalcanoStub() default Title zalcanoTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "highlightZalcanoHull", keyName = "highlightZalcanoHull",
name = "Highlight Zalcano", name = "Highlight Zalcano",
description = "Highlight Zalcano\'s convex hull.", description = "Highlight Zalcano\'s convex hull.",
parent = "zalcanoStub", titleSection = "zalcanoTitle",
position = 1 position = 1
) )
default boolean highlightZalcanoHull() default boolean highlightZalcanoHull()
@@ -63,7 +64,7 @@ public interface ZalcanoConfig extends Config
keyName = "zalcanoHullColor", keyName = "zalcanoHullColor",
name = "Color for highlight", name = "Color for highlight",
description = "", description = "",
parent = "zalcanoStub", titleSection = "zalcanoTitle",
position = 2 position = 2
) )
default Color zalcanoHullColor() default Color zalcanoHullColor()
@@ -71,22 +72,22 @@ public interface ZalcanoConfig extends Config
return new Color(255, 25, 0); return new Color(255, 25, 0);
} }
@ConfigItem( @ConfigTitleSection(
keyName = "zalcanoAoesStub", keyName = "zalcanoAoesTitle",
name = "Area of Effect", name = "Area of Effect",
description = "", description = "",
position = 3 position = 3
) )
default Stub zalcanoAoesStub() default Title zalcanoAoesTitle()
{ {
return new Stub(); return new Title();
} }
@ConfigItem( @ConfigItem(
keyName = "showAoeZalcanoWakeup", keyName = "showAoeZalcanoWakeup",
name = "Zalcano Wakeup", name = "Zalcano Wakeup",
description = "Shows an AOE warning for Zalcano waking back up.", description = "Shows an AOE warning for Zalcano waking back up.",
parent = "zalcanoAoesStub", titleSection = "zalcanoAoesTitle",
position = 4 position = 4
) )
default boolean showAoeZalcanoWakeup() default boolean showAoeZalcanoWakeup()
@@ -98,7 +99,7 @@ public interface ZalcanoConfig extends Config
keyName = "showAoeForRockfall", keyName = "showAoeForRockfall",
name = "Small Rocks", name = "Small Rocks",
description = "Shows an AOE warning for the rocks that fall occasionally.", description = "Shows an AOE warning for the rocks that fall occasionally.",
parent = "zalcanoAoesStub", titleSection = "zalcanoAoesTitle",
position = 5 position = 5
) )
default boolean showAoeForRockfall() default boolean showAoeForRockfall()
@@ -110,7 +111,7 @@ public interface ZalcanoConfig extends Config
keyName = "showAoeForRedSymbols", keyName = "showAoeForRedSymbols",
name = "Red Symbols", name = "Red Symbols",
description = "Shows an AOE warning for the 3x3 red symbols that appear.", description = "Shows an AOE warning for the 3x3 red symbols that appear.",
parent = "zalcanoAoesStub", titleSection = "zalcanoAoesTitle",
position = 6 position = 6
) )
default boolean showAoeForRedSymbols() default boolean showAoeForRedSymbols()
@@ -122,7 +123,7 @@ public interface ZalcanoConfig extends Config
keyName = "highlightMiningSpot", keyName = "highlightMiningSpot",
name = "Mining spot", name = "Mining spot",
description = "Highlights the glowing rock and warns you if Zalcano attacks it.", description = "Highlights the glowing rock and warns you if Zalcano attacks it.",
parent = "zalcanoAoesStub", titleSection = "zalcanoAoesTitle",
position = 7 position = 7
) )
default boolean highlightMiningSpot() default boolean highlightMiningSpot()
@@ -130,15 +131,15 @@ public interface ZalcanoConfig extends Config
return true; return true;
} }
@ConfigItem( @ConfigTitleSection(
keyName = "helperStub", keyName = "helperTitle",
name = "Helpers", name = "Helpers",
description = "", description = "",
position = 8 position = 8
) )
default Stub helperStub() default Title helperTitle()
{ {
return new Stub(); return new Title();
} }
/** /**
@@ -148,7 +149,7 @@ public interface ZalcanoConfig extends Config
keyName = "showSteps", keyName = "showSteps",
name = "Show Step", name = "Show Step",
description = "", description = "",
parent = "helperStub", titleSection = "helperTitle",
position = 9, position = 9,
hidden = true //hidden until fully functional hidden = true //hidden until fully functional
) )
@@ -161,7 +162,7 @@ public interface ZalcanoConfig extends Config
keyName = "showAoeZalcanoMineable", keyName = "showAoeZalcanoMineable",
name = "Zalcano Mineable", name = "Zalcano Mineable",
description = "Highlights Zalcano if she is mineable.", description = "Highlights Zalcano if she is mineable.",
parent = "helperStub", titleSection = "helperTitle",
position = 10 position = 10
) )
default boolean showAoeZalcanoMineable() default boolean showAoeZalcanoMineable()
@@ -173,7 +174,7 @@ public interface ZalcanoConfig extends Config
keyName = "highlightGolem", keyName = "highlightGolem",
name = "Highlight Golem", name = "Highlight Golem",
description = "Highlights the Golem that Zalcano spawns in.", description = "Highlights the Golem that Zalcano spawns in.",
parent = "helperStub", titleSection = "helperTitle",
position = 11 position = 11
) )
default boolean highlightGolem() default boolean highlightGolem()

View File

@@ -27,6 +27,7 @@ package net.runelite.client.ui.components;
import java.awt.Insets; import java.awt.Insets;
import java.awt.event.MouseAdapter; import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import javax.swing.Icon;
import javax.swing.ImageIcon; import javax.swing.ImageIcon;
import javax.swing.JButton; import javax.swing.JButton;
@@ -50,22 +51,29 @@ public class IconButton extends JButton
setOpaque(false); setOpaque(false);
setRolloverEnabled(false); setRolloverEnabled(false);
if (hoverIcon != null) setHoverIcon(hoverIcon);
{
addMouseListener(new MouseAdapter()
{
@Override
public void mouseEntered(MouseEvent e)
{
setIcon(hoverIcon);
}
@Override
public void mouseExited(MouseEvent e)
{
setIcon(icon);
}
});
}
} }
}
public void setHoverIcon(ImageIcon hoverIcon)
{
if (hoverIcon == null)
{
return;
}
final Icon icon = getIcon();
addMouseListener(new MouseAdapter()
{
@Override
public void mouseEntered(MouseEvent e)
{
setIcon(hoverIcon);
}
@Override
public void mouseExited(MouseEvent e)
{
setIcon(icon);
}
});
}
}

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018, Craftiii4 <craftiii4@gmail.com> * Copyright (c) 2019, Hydrox6 <ikada@protonmail.ch>
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -22,31 +22,18 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package net.runelite.client.config; package net.runelite.client.ui.components;
import java.util.ArrayList; import javax.swing.JPanel;
import java.util.Collection; import java.awt.Dimension;
import lombok.AccessLevel;
import lombok.Getter;
public class ConfigItemsGroup public class MinimumSizedPanel extends JPanel
{ {
@Override
@Getter(AccessLevel.PUBLIC) public Dimension getPreferredSize()
private final String group;
@Getter(AccessLevel.PUBLIC)
private Collection<ConfigItemDescriptor> items;
public ConfigItemsGroup(String group)
{ {
this.group = group; final Dimension pref = super.getPreferredSize();
this.items = new ArrayList<>(); final Dimension minimum = super.getMinimumSize();
return new Dimension(Math.max(pref.width, minimum.width), Math.max(pref.height, minimum.height));
} }
}
public void addItem(ConfigItemDescriptor item)
{
items.add(item);
}
}