agility plugin: add toggle for obstacle clickboxes
This commit is contained in:
@@ -32,6 +32,17 @@ import net.runelite.client.config.ConfigItem;
|
||||
@ConfigGroup("agility")
|
||||
public interface AgilityConfig extends Config
|
||||
{
|
||||
@ConfigItem(
|
||||
keyName = "showClickboxes",
|
||||
name = "Show Clickboxes",
|
||||
description = "Show agility course obstacle clickboxes",
|
||||
position = 0
|
||||
)
|
||||
default boolean showClickboxes()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "showLapCount",
|
||||
name = "Show Lap Count",
|
||||
|
||||
@@ -71,7 +71,8 @@ class AgilityOverlay extends Overlay
|
||||
plugin.getObstacles().forEach((object, obstacle) ->
|
||||
{
|
||||
if (Obstacles.SHORTCUT_OBSTACLE_IDS.containsKey(object.getId()) && !config.highlightShortcuts() ||
|
||||
Obstacles.TRAP_OBSTACLE_IDS.contains(object.getId()) && !config.showTrapOverlay())
|
||||
Obstacles.TRAP_OBSTACLE_IDS.contains(object.getId()) && !config.showTrapOverlay() ||
|
||||
Obstacles.COURSE_OBSTACLE_IDS.contains(object.getId()) && !config.showClickboxes())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user