More configs updated (#333)

* Fix duplicate options when using groups

* Add some examples of the new config options

Check style

* Config item titles and nesting
This commit is contained in:
sdburns1998
2019-05-21 00:34:17 +02:00
committed by Ganom
parent 5778e2d33e
commit e282852e2d
6 changed files with 410 additions and 165 deletions

View File

@@ -424,7 +424,6 @@ public class ConfigPanel extends PluginPanel
for (ConfigItemsGroup cig : cd.getItemGroups())
{
ConfigPanelItem mainParent = new ConfigPanelItem(null, null);
List<ConfigItemDescriptor> allItems = new ArrayList<>();
boolean collapsed = false;
if (!cig.getGroup().equals(""))
@@ -464,7 +463,7 @@ public class ConfigPanel extends PluginPanel
continue;
}
allItems.addAll(cig.getItems());
List<ConfigItemDescriptor> allItems = new ArrayList<>(cig.getItems());
int maxDepth = 3;
do

View File

@@ -28,16 +28,28 @@ package net.runelite.client.plugins.coxhelper;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub;
@ConfigGroup("Cox")
public interface CoxConfig extends Config
{
@ConfigItem(
position = 0,
keyName = "muttadileStub",
name = "Muttadile",
description = "",
position = 1
)
default Stub muttadileStub()
{
return new Stub();
}
@ConfigItem(
position = 2,
keyName = "Muttadile",
name = "Muttadile Marker",
description = ""
description = "",
parent = "muttadileStub"
)
default boolean Muttadile()
{
@@ -45,10 +57,22 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 1,
keyName = "tektonStub",
name = "Tekton",
description = "",
position = 3
)
default Stub tektonStub()
{
return new Stub();
}
@ConfigItem(
position = 4,
keyName = "Tekton",
name = "Tekton Marker",
description = ""
description = "",
parent = "tektonStub"
)
default boolean Tekton()
{
@@ -56,10 +80,22 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 2,
keyName = "guardiansStub",
name = "Guardians",
description = "",
position = 5
)
default Stub guardiansStub()
{
return new Stub();
}
@ConfigItem(
position = 6,
keyName = "Guardians",
name = "Guardians timing",
description = ""
description = "",
parent = "guardiansStub"
)
default boolean Guardians()
{
@@ -67,10 +103,22 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 3,
keyName = "olmStub",
name = "Olm",
description = "",
position = 7
)
default Stub olmStub()
{
return new Stub();
}
@ConfigItem(
position = 8,
keyName = "prayAgainstOlm",
name = "Olm Show Prayer",
description = "Shows what prayer to use during olm."
description = "Shows what prayer to use during olm.",
parent = "olmStub"
)
default boolean prayAgainstOlm()
{
@@ -78,10 +126,11 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 3,
position = 9,
keyName = "timers",
name = "Olm Show Burn/Acid Timers",
description = "Shows tick timers for burns/acids."
description = "Shows tick timers for burns/acids.",
parent = "olmStub"
)
default boolean timers()
{
@@ -89,10 +138,11 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 3,
position = 10,
keyName = "tpOverlay",
name = "Olm Show Teleport Overlays",
description = "Shows Overlays for targeted teleports."
description = "Shows Overlays for targeted teleports.",
parent = "olmStub"
)
default boolean tpOverlay()
{
@@ -100,10 +150,11 @@ public interface CoxConfig extends Config
}
@ConfigItem(
position = 4,
position = 6,
keyName = "OlmTick",
name = "Olm Tick Counter",
description = "Show Tick Counter on Olm"
description = "Show Tick Counter on Olm",
parent = "olmStub"
)
default boolean OlmTick()
{

View File

@@ -27,16 +27,28 @@ package net.runelite.client.plugins.flexo;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub;
@ConfigGroup("flexo")
public interface FlexoConfig extends Config
{
@ConfigItem(
keyName = "overlayStub",
name = "Overlay",
description = "",
position = 1
)
default Stub overlayStub()
{
return new Stub();
}
@ConfigItem(
position = 0,
position = 2,
keyName = "overlayEnabled",
name = "Overlay Enabled",
description = "Shows clicking area and points etc."
description = "Shows clicking area and points etc.",
parent = "overlayStub"
)
default boolean overlayEnabled()
{
@@ -44,10 +56,64 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 1,
position = 3,
keyName = "debugNPCs",
name = "Debug NPCs",
description = "Draws clickArea and clickPoints across all visible npcs",
parent = "overlayStub",
hidden = true,
unhide = "overlayEnabled"
)
default boolean getDebugNPCs()
{
return false;
}
@ConfigItem(
position = 4,
keyName = "debugPlayers",
name = "Debug Players",
description = "Draws clickArea and clickPoints across all visible players",
parent = "overlayStub",
hidden = true,
unhide = "overlayEnabled"
)
default boolean getDebugPlayers()
{
return false;
}
@ConfigItem(
position = 5,
keyName = "debugGroundItems",
name = "Debug Ground Items",
description = "Draws clickArea and clickPoints across all visible ground items",
parent = "overlayStub",
hidden = true,
unhide = "overlayEnabled"
)
default boolean getDebugGroundItems()
{
return false;
}
@ConfigItem(
keyName = "mouseStub",
name = "Mouse",
description = "",
position = 6
)
default Stub mouseStub()
{
return new Stub();
}
@ConfigItem(
position = 7,
keyName = "minDelayAmount",
name = "Min Delay",
description = "Minimum delay that is applied to every action at the end (ms)"
description = "Minimum delay that is applied to every action at the end (ms)",
parent = "mouseStub"
)
default int minDelayAmt()
{
@@ -56,10 +122,11 @@ public interface FlexoConfig extends Config
@ConfigItem(
position = 2,
position = 8,
keyName = "reactionTime",
name = "Reaction Time",
description = "The base time between actions (ms)"
description = "The base time between actions (ms)",
parent = "mouseStub"
)
default int getReactionTimeVariation()
{
@@ -67,10 +134,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 3,
position = 9,
keyName = "mouseDragSpeed",
name = "Mouse drag speed",
description = "The speed at which steps are executed. Keep at 49? cuz jagex mouse recorder?"
description = "The speed at which steps are executed. Keep at 49? cuz jagex mouse recorder?",
parent = "mouseStub"
)
default int getMouseDragSpeed()
{
@@ -79,10 +147,11 @@ public interface FlexoConfig extends Config
@ConfigItem(
position = 4,
position = 10,
keyName = "overshoots",
name = "Overshoots",
description = "Higher number = more overshoots"
description = "Higher number = more overshoots",
parent = "mouseStub"
)
default int getOvershoots()
{
@@ -90,10 +159,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 5,
position = 11,
keyName = "variatingFlow",
name = "Flow - Variating",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getVariatingFlow()
{
@@ -101,10 +171,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 6,
position = 12,
keyName = "slowStartupFlow",
name = "Flow - Slow startup",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getSlowStartupFlow()
{
@@ -113,10 +184,11 @@ public interface FlexoConfig extends Config
@ConfigItem(
position = 7,
position = 13,
keyName = "slowStartup2Flow",
name = "Flow - Slow startup 2",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getSlowStartup2Flow()
{
@@ -124,10 +196,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 8,
position = 14,
keyName = "jaggedFlow",
name = "Flow - Jagged",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getJaggedFlow()
{
@@ -135,10 +208,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 9,
position = 15,
keyName = "interruptedFlow",
name = "Flow - Interrupted",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getInterruptedFlow()
{
@@ -147,10 +221,11 @@ public interface FlexoConfig extends Config
@ConfigItem(
position = 10,
position = 16,
keyName = "interruptedFlow2",
name = "Flow - Interrupted 2",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getInterruptedFlow2()
{
@@ -158,10 +233,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 11,
position = 17,
keyName = "stoppingFlow",
name = "Flow - Stopping",
description = ""
description = "",
parent = "mouseStub"
)
default boolean getStoppingFlow()
{
@@ -169,10 +245,11 @@ public interface FlexoConfig extends Config
}
@ConfigItem(
position = 12,
position = 18,
keyName = "deviationSlopeDivider",
name = "Deviation slope divider",
description = ""
description = "",
parent = "mouseStub"
)
default int getDeviationSlope()
{
@@ -181,46 +258,14 @@ public interface FlexoConfig extends Config
@ConfigItem(
position = 13,
position = 19,
keyName = "noisinessDivider",
name = "Noisiness divider",
description = ""
description = "",
parent = "mouseStub"
)
default String getNoisinessDivider()
{
return "2.0D";
}
@ConfigItem(
position = 14,
keyName = "debugNPCs",
name = "Debug NPCs",
description = "Draws clickArea and clickPoints across all visible npcs"
)
default boolean getDebugNPCs()
{
return false;
}
@ConfigItem(
position = 15,
keyName = "debugPlayers",
name = "Debug Players",
description = "Draws clickArea and clickPoints across all visible players"
)
default boolean getDebugPlayers()
{
return false;
}
@ConfigItem(
position = 16,
keyName = "debugGroundItems",
name = "Debug Ground Items",
description = "Draws clickArea and clickPoints across all visible ground items"
)
default boolean getDebugGroundItems()
{
return false;
}
}

View File

@@ -28,52 +28,29 @@ import java.awt.Color;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub;
@ConfigGroup("flinching")
public interface FlinchingConfig extends Config
{
@ConfigItem(
position = 0,
keyName = "hexColorFlinch",
name = "Overlay Color",
description = "Color of flinching timer overlay"
@ConfigItem(
keyName = "flinchStub",
name = "Flinch",
description = "",
position = 1
)
default Color getFlinchOverlayColor()
default Stub flinchStub()
{
return Color.CYAN;
return new Stub();
}
@ConfigItem(
position = 1,
keyName = "flinchOverlaySize",
name = "Overlay Diameter",
description = "Flinch overlay timer diameter"
)
default int getFlinchOverlaySize()
{
return 30;
}
@ConfigItem(
position = 2,
keyName = "flinchDelay",
name = "Flinch Timer Delay",
description = "Shows the appropriate time to attack while flinching milliseconds"
)
default int getFlinchDelay()
{
return 5400;
}
@ConfigItem(
position = 3,
keyName = "flinchOnHitReceivedDelay",
name = "Flinch Hit Received Delay",
description = "Slightly longer delay after being attacked milliseconds"
description = "Slightly longer delay after being attacked milliseconds",
parent = "flinchStub"
)
default int getFlinchAttackedDelay()
{
@@ -81,8 +58,54 @@ public interface FlinchingConfig extends Config
}
@ConfigItem(
position = 3,
keyName = "flinchDelay",
name = "Flinch Timer Delay",
description = "Shows the appropriate time to attack while flinching milliseconds",
parent = "flinchStub"
)
default int getFlinchDelay()
{
return 5400;
}
position = 4,
@ConfigItem(
keyName = "overlayStub",
name = "Overlay",
description = "",
position = 4
)
default Stub overlayStub()
{
return new Stub();
}
@ConfigItem(
position = 5,
keyName = "flinchOverlaySize",
name = "Overlay Diameter",
description = "Flinch overlay timer diameter",
parent = "overlayStub"
)
default int getFlinchOverlaySize()
{
return 30;
}
@ConfigItem(
position = 6,
keyName = "hexColorFlinch",
name = "Overlay Color",
description = "Color of flinching timer overlay",
parent = "overlayStub"
)
default Color getFlinchOverlayColor()
{
return Color.CYAN;
}
@ConfigItem(
position = 7,
keyName = "flinchResetOnHit",
name = "Reset on Hit",
description = "Timer resets after every attack from your character"
@@ -93,8 +116,7 @@ public interface FlinchingConfig extends Config
}
@ConfigItem(
position = 5,
position = 8,
keyName = "flinchResetOnHitReceived",
name = "Reset on Hit Received",
description = "Timer resets when your character gets attacked"

View File

@@ -28,16 +28,28 @@ import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Range;
import net.runelite.client.config.Stub;
@ConfigGroup("freezetimers")
public interface FreezeTimersConfig extends Config
{
@ConfigItem(
keyName = "timersStub",
name = "Timers",
description = "",
position = 1
)
default Stub timersStub()
{
return new Stub();
}
@ConfigItem(
keyName = "showOverlay",
name = "Show Players",
description = "Configure if the player overlay should be shown",
position = 1
position = 2,
parent = "timersStub"
)
default boolean showPlayers()
{
@@ -48,7 +60,8 @@ public interface FreezeTimersConfig extends Config
keyName = "showNpcs",
name = "Show NPCs",
description = "Configure if the npc overlay should be shown",
position = 2
position = 3,
parent = "timersStub"
)
default boolean showNpcs()
{
@@ -59,7 +72,8 @@ public interface FreezeTimersConfig extends Config
keyName = "FreezeTimers",
name = "Show Freeze Timers",
description = "Toggle overlay for Freeze timers",
position = 3
position = 4,
parent = "timersStub"
)
default boolean FreezeTimers()
{
@@ -70,7 +84,8 @@ public interface FreezeTimersConfig extends Config
keyName = "TB",
name = "Show TB Timers",
description = "Toggle overlay for TB timers",
position = 4
position = 5,
parent = "timersStub"
)
default boolean TB()
{
@@ -81,18 +96,31 @@ public interface FreezeTimersConfig extends Config
keyName = "Veng",
name = "Show Veng Timers",
description = "Toggle overlay for Veng timers",
position = 5
position = 6,
parent = "timersStub"
)
default boolean Veng()
{
return true;
}
@ConfigItem(
keyName = "overlayStub",
name = "Overlay",
description = "",
position = 7
)
default Stub overlayStub()
{
return new Stub();
}
@ConfigItem(
keyName = "xoffset",
name = "X Offset",
description = "Increasing this will push further away from model. Does not apply to text timers.",
position = 6
position = 8,
parent = "overlayStub"
)
default int offset()
{
@@ -103,7 +131,8 @@ public interface FreezeTimersConfig extends Config
keyName = "noImage",
name = "Text Timers",
description = "Remove Images from Timers",
position = 7
position = 9,
parent = "overlayStub"
)
default boolean noImage()
{
@@ -114,7 +143,8 @@ public interface FreezeTimersConfig extends Config
keyName = "fontStyle",
name = "Font Style",
description = "Bold/Italics/Plain",
position = 8
position = 10,
parent = "overlayStub"
)
default FontStyle fontStyle()
{
@@ -129,7 +159,8 @@ public interface FreezeTimersConfig extends Config
keyName = "textSize",
name = "Text Size",
description = "Text Size for Timers.",
position = 9
position = 11,
parent = "overlayStub"
)
default int textSize()
{

View File

@@ -11,16 +11,29 @@ package net.runelite.client.plugins.ztob;
import net.runelite.client.config.Config;
import net.runelite.client.config.ConfigGroup;
import net.runelite.client.config.ConfigItem;
import net.runelite.client.config.Stub;
@ConfigGroup("Theatre")
public interface TheatreConfig extends Config
{
@ConfigItem(
position = 0,
keyName = "maidenStub",
name = "Maiden",
description = "",
position = 0
)
default Stub maidenStub()
{
return new Stub();
}
@ConfigItem(
position = 1,
keyName = "MaidenBlood",
name = "Maiden blood attack",
description = ""
description = "",
parent = "maidenStub"
)
default boolean MaidenBlood()
{
@@ -28,10 +41,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 1,
position = 2,
keyName = "MaidenSpawns",
name = "Maiden blood spawns",
description = ""
description = "",
parent = "maidenStub"
)
default boolean MaidenSpawns()
{
@@ -39,10 +53,22 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 2,
keyName = "bloatStub",
name = "Bloat",
description = "",
position = 3
)
default Stub bloatStub()
{
return new Stub();
}
@ConfigItem(
position = 4,
keyName = "BloatIndicator",
name = "Bloat Indicator",
description = ""
description = "",
parent = "bloatStub"
)
default boolean BloatIndicator()
{
@@ -50,10 +76,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 3,
position = 5,
keyName = "bloat Timer",
name = "Bloat Timer",
description = ""
description = "",
parent = "bloatStub"
)
default boolean bloatTimer()
{
@@ -61,10 +88,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 4,
position = 6,
keyName = "bloatFeet",
name = "Bloat Feet",
description = ""
description = "",
parent = "bloatStub"
)
default boolean bloatFeetIndicator()
{
@@ -72,10 +100,22 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 5,
keyName = "nylocasStub",
name = "Nylocas",
description = "",
position = 7
)
default Stub NylocasStub()
{
return new Stub();
}
@ConfigItem(
position = 8,
keyName = "NyloPillars",
name = "Nylocas pillar health",
description = ""
description = "",
parent = "nylocasStub"
)
default boolean NyloPillars()
{
@@ -84,10 +124,11 @@ public interface TheatreConfig extends Config
@ConfigItem(
position = 6,
position = 9,
keyName = "NyloBlasts",
name = "Nylocas explosions",
description = ""
description = "",
parent = "nylocasStub"
)
default boolean NyloBlasts()
{
@@ -95,10 +136,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 7,
position = 10,
keyName = "NyloMenu",
name = "Hide Attack options for Nylocas",
description = ""
description = "",
parent = "nylocasStub"
)
default boolean NyloMenu()
@@ -107,10 +149,22 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 8,
keyName = "sotetsegStub",
name = "Sotetseg",
description = "",
position = 11
)
default Stub sotetsegStub()
{
return new Stub();
}
@ConfigItem(
position = 12,
keyName = "highlightSote",
name = "Sote Missiles",
description = "Highlight Sotetseg's Missiles with pray type"
name = "Sotetseg Missiles",
description = "Highlight Sotetseg's Missiles with pray type",
parent = "sotetsegStub"
)
default boolean highlightSote()
{
@@ -118,10 +172,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 9,
position = 13,
keyName = "SotetsegMaze1",
name = "Sotetseg maze",
description = ""
description = "",
parent = "sotetsegStub"
)
default boolean SotetsegMaze1()
{
@@ -129,10 +184,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 10,
position = 14,
keyName = "SotetsegMaze2",
name = "Sotetseg maze (solo mode)",
description = ""
description = "",
parent = "sotetsegStub"
)
default boolean SotetsegMaze2()
{
@@ -140,10 +196,22 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 11,
keyName = "xarpusStub",
name = "Xarpus",
description = "",
position = 15
)
default Stub xarpusStub()
{
return new Stub();
}
@ConfigItem(
position = 16,
keyName = "XarpusExhumed",
name = "Xarpus Exhumed",
description = ""
description = "",
parent = "xarpusStub"
)
default boolean XarpusExhumed()
{
@@ -151,10 +219,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 12,
position = 17,
keyName = "XarpusTick",
name = "Xarpus Tick",
description = ""
description = "",
parent = "xarpusStub"
)
default boolean XarpusTick()
{
@@ -162,10 +231,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 13,
position = 18,
keyName = "xarpusExhumes",
name = "Xarpus Exhume Counter",
description = ""
description = "",
parent = "xarpusStub"
)
default boolean XarpusExhumeOverlay()
{
@@ -173,10 +243,22 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 14,
keyName = "verzikStub",
name = "Verzik",
description = "",
position = 19
)
default Stub verzikStub()
{
return new Stub();
}
@ConfigItem(
position = 20,
keyName = "VerzikCupcakes",
name = "Verzik Projectile Markers",
description = ""
description = "",
parent = "verzikStub"
)
default boolean VerzikCupcakes()
{
@@ -184,10 +266,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 15,
position = 21,
keyName = "VerzikTick",
name = "Verzik P3 Tick",
description = ""
description = "",
parent = "verzikStub"
)
default boolean VerzikTick()
{
@@ -195,10 +278,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 16,
position = 22,
keyName = "VerzikMelee",
name = "Verzik P3 Melee Range",
description = ""
description = "",
parent = "verzikStub"
)
default boolean VerzikMelee()
{
@@ -206,10 +290,11 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 17,
position = 23,
keyName = "VerzikYellow",
name = "Verzik Yellow Timing",
description = ""
description = "",
parent = "verzikStub"
)
default boolean VerzikYellow()
{
@@ -217,10 +302,23 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 18,
keyName = "verzikOverlayStub",
name = "Overlay",
description = "",
position = 24,
parent = "verzikStub"
)
default Stub verzikOverlayStub()
{
return new Stub();
}
@ConfigItem(
position = 25,
keyName = "Verzik Nylo",
name = "Verzik Nylo Overlay",
description = ""
description = "",
parent = "verzikOverlayStub"
)
default boolean NyloTargetOverlay()
{
@@ -228,15 +326,14 @@ public interface TheatreConfig extends Config
}
@ConfigItem(
position = 19,
position = 26,
keyName = "VerzikTankTile",
name = "Verzik P3 Tile Overlay",
description = ""
description = "",
parent = "verzikOverlayStub"
)
default boolean verzikTankTile()
{
return true;
}
}