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