Enable options are stupid
This commit is contained in:
@@ -33,22 +33,12 @@ import net.runelite.client.config.ConfigItem;
|
|||||||
@ConfigGroup("aoe")
|
@ConfigGroup("aoe")
|
||||||
public interface AoeWarningConfig extends Config
|
public interface AoeWarningConfig extends Config
|
||||||
{
|
{
|
||||||
@ConfigItem(
|
|
||||||
keyName = "enabled",
|
|
||||||
name = "AoE Warnings Enabled",
|
|
||||||
description = "Configures whether or not AoE Projectile Warnings plugin is displayed",
|
|
||||||
position = 1
|
|
||||||
)
|
|
||||||
default boolean enabled()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
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",
|
||||||
position = 2
|
position = 1
|
||||||
)
|
)
|
||||||
default boolean isOutlineEnabled()
|
default boolean isOutlineEnabled()
|
||||||
{
|
{
|
||||||
@@ -59,7 +49,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",
|
||||||
position = 3
|
position = 2
|
||||||
)
|
)
|
||||||
default boolean isFadeEnabled()
|
default boolean isFadeEnabled()
|
||||||
{
|
{
|
||||||
@@ -70,7 +60,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 3
|
||||||
)
|
)
|
||||||
default boolean isShamansEnabled()
|
default boolean isShamansEnabled()
|
||||||
{
|
{
|
||||||
@@ -92,7 +82,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 5
|
||||||
)
|
)
|
||||||
default boolean isIceDemonEnabled()
|
default boolean isIceDemonEnabled()
|
||||||
{
|
{
|
||||||
@@ -103,7 +93,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 6
|
||||||
)
|
)
|
||||||
default boolean isVasaEnabled()
|
default boolean isVasaEnabled()
|
||||||
{
|
{
|
||||||
@@ -114,7 +104,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 7
|
||||||
)
|
)
|
||||||
default boolean isTektonEnabled()
|
default boolean isTektonEnabled()
|
||||||
{
|
{
|
||||||
@@ -125,7 +115,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 7
|
||||||
)
|
)
|
||||||
default boolean isVorkathEnabled()
|
default boolean isVorkathEnabled()
|
||||||
{
|
{
|
||||||
@@ -136,7 +126,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 8
|
||||||
)
|
)
|
||||||
default boolean isGalvekEnabled()
|
default boolean isGalvekEnabled()
|
||||||
{
|
{
|
||||||
@@ -147,7 +137,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 9
|
||||||
)
|
)
|
||||||
default boolean isGargBossEnabled()
|
default boolean isGargBossEnabled()
|
||||||
{
|
{
|
||||||
@@ -158,7 +148,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 10
|
||||||
)
|
)
|
||||||
default boolean isVetionEnabled()
|
default boolean isVetionEnabled()
|
||||||
{
|
{
|
||||||
@@ -169,7 +159,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 11
|
||||||
)
|
)
|
||||||
default boolean isChaosFanaticEnabled()
|
default boolean isChaosFanaticEnabled()
|
||||||
{
|
{
|
||||||
@@ -180,7 +170,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 12
|
||||||
)
|
)
|
||||||
default boolean isOlmEnabled()
|
default boolean isOlmEnabled()
|
||||||
{
|
{
|
||||||
@@ -191,7 +181,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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.",
|
||||||
position = 4
|
position = 13
|
||||||
)
|
)
|
||||||
default boolean bombDisplay()
|
default boolean bombDisplay()
|
||||||
{
|
{
|
||||||
@@ -202,7 +192,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 14
|
||||||
)
|
)
|
||||||
default boolean isCorpEnabled()
|
default boolean isCorpEnabled()
|
||||||
{
|
{
|
||||||
@@ -213,7 +203,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 15
|
||||||
)
|
)
|
||||||
default boolean isWintertodtEnabled()
|
default boolean isWintertodtEnabled()
|
||||||
{
|
{
|
||||||
@@ -224,7 +214,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
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",
|
||||||
position = 4
|
position = 16
|
||||||
)
|
)
|
||||||
default boolean isXarpusEnabled()
|
default boolean isXarpusEnabled()
|
||||||
{
|
{
|
||||||
@@ -235,7 +225,7 @@ public interface AoeWarningConfig extends Config
|
|||||||
keyName = "lightning",
|
keyName = "lightning",
|
||||||
name = "Olm Lightning Trails",
|
name = "Olm Lightning Trails",
|
||||||
description = "Show Lightning Trails",
|
description = "Show Lightning Trails",
|
||||||
position = 4
|
position = 17
|
||||||
)
|
)
|
||||||
default boolean LightningTrail()
|
default boolean LightningTrail()
|
||||||
{
|
{
|
||||||
@@ -246,27 +236,28 @@ public interface AoeWarningConfig extends Config
|
|||||||
keyName = "addyDrags",
|
keyName = "addyDrags",
|
||||||
name = "Addy Drags",
|
name = "Addy Drags",
|
||||||
description = "Show Bad Areas",
|
description = "Show Bad Areas",
|
||||||
position = 4
|
position = 18
|
||||||
)
|
)
|
||||||
default boolean addyDrags()
|
default boolean addyDrags()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@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"
|
position = 19
|
||||||
)
|
)
|
||||||
default boolean isDrakeEnabled()
|
default boolean isDrakeEnabled()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@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",
|
||||||
|
position = 20
|
||||||
)
|
)
|
||||||
default boolean isCerbFireEnabled()
|
default boolean isCerbFireEnabled()
|
||||||
{
|
{
|
||||||
@@ -276,7 +267,8 @@ public interface AoeWarningConfig extends Config
|
|||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
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",
|
||||||
|
position = 21
|
||||||
)
|
)
|
||||||
default int delay()
|
default int delay()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -69,10 +69,6 @@ public class AoeWarningOverlay extends Overlay
|
|||||||
@Override
|
@Override
|
||||||
public Dimension render(Graphics2D graphics)
|
public Dimension render(Graphics2D graphics)
|
||||||
{
|
{
|
||||||
if (!config.enabled())
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
for (WorldPoint point : plugin.getLightningTrail())
|
for (WorldPoint point : plugin.getLightningTrail())
|
||||||
{
|
{
|
||||||
drawTile(graphics, point, new Color(0,150,200), 2, 150, 50);
|
drawTile(graphics, point, new Color(0,150,200), 2, 150, 50);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import net.runelite.api.NPC;
|
|||||||
import net.runelite.api.Actor;
|
import net.runelite.api.Actor;
|
||||||
|
|
||||||
|
|
||||||
public class Healer
|
class Healer
|
||||||
{
|
{
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@@ -62,9 +62,7 @@ public class Healer
|
|||||||
@Setter
|
@Setter
|
||||||
private int secondCallFood;
|
private int secondCallFood;
|
||||||
|
|
||||||
|
Healer(NPC npc, int spawnNumber, int wave)
|
||||||
|
|
||||||
public Healer(NPC npc, int spawnNumber, int wave)
|
|
||||||
{
|
{
|
||||||
this.npc = npc;
|
this.npc = npc;
|
||||||
this.wave = wave;
|
this.wave = wave;
|
||||||
@@ -102,7 +100,4 @@ public class Healer
|
|||||||
default: return null;
|
default: return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -31,16 +31,6 @@ import net.runelite.client.config.ConfigItem;
|
|||||||
@ConfigGroup("hydra")
|
@ConfigGroup("hydra")
|
||||||
public interface HydraConfig extends Config
|
public interface HydraConfig extends Config
|
||||||
{
|
{
|
||||||
@ConfigItem(
|
|
||||||
position = 0,
|
|
||||||
keyName = "hydraenable",
|
|
||||||
name = "Enable Hydra (194 cb) Helper",
|
|
||||||
description = "Configures whether or not to enable Hydra Helper. (For use on regular hydra's only, will not work with Alchemical Hydra)."
|
|
||||||
)
|
|
||||||
default boolean EnableHydra()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 1,
|
position = 1,
|
||||||
|
|||||||
@@ -99,10 +99,6 @@ public class HydraPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onNpcSpawned(NpcSpawned event)
|
public void onNpcSpawned(NpcSpawned event)
|
||||||
{
|
{
|
||||||
if (!config.EnableHydra())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
NPC hydra = event.getNpc();
|
NPC hydra = event.getNpc();
|
||||||
if (hydra.getCombatLevel() != 0 && hydra.getName() != null)
|
if (hydra.getCombatLevel() != 0 && hydra.getName() != null)
|
||||||
{
|
{
|
||||||
@@ -119,10 +115,6 @@ public class HydraPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onNpcDespawned(NpcDespawned event)
|
public void onNpcDespawned(NpcDespawned event)
|
||||||
{
|
{
|
||||||
if (!config.EnableHydra())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
NPC hydra = event.getNpc();
|
NPC hydra = event.getNpc();
|
||||||
if (hydra.getCombatLevel() != 0 && hydra.getName() != null)
|
if (hydra.getCombatLevel() != 0 && hydra.getName() != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2019, Frosty Fridge <https://github.com/frostyfridge>
|
|
||||||
* 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.plugins.vetion;
|
|
||||||
|
|
||||||
import net.runelite.client.config.Config;
|
|
||||||
import net.runelite.client.config.ConfigGroup;
|
|
||||||
import net.runelite.client.config.ConfigItem;
|
|
||||||
|
|
||||||
@ConfigGroup("vetion")
|
|
||||||
public interface VetionConfig extends Config
|
|
||||||
{
|
|
||||||
@ConfigItem(
|
|
||||||
keyName = "earthquakeTimerActive",
|
|
||||||
name = "Vet'ion Earthquake Timer",
|
|
||||||
description = "Configures whether or not a timer is shown to track the cooldown of Vet'ion's earthquake attack",
|
|
||||||
position = 0
|
|
||||||
)
|
|
||||||
default boolean eartquakeTimerActive()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -50,9 +50,6 @@ import net.runelite.client.ui.overlay.OverlayManager;
|
|||||||
public class VetionPlugin extends Plugin
|
public class VetionPlugin extends Plugin
|
||||||
{
|
{
|
||||||
|
|
||||||
@Inject
|
|
||||||
private VetionConfig config;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private OverlayManager overlayManager;
|
private OverlayManager overlayManager;
|
||||||
|
|
||||||
@@ -62,12 +59,6 @@ public class VetionPlugin extends Plugin
|
|||||||
@Getter
|
@Getter
|
||||||
private Map<Actor, Instant> vetions;
|
private Map<Actor, Instant> vetions;
|
||||||
|
|
||||||
@Provides
|
|
||||||
VetionConfig getConfig(ConfigManager configManager)
|
|
||||||
{
|
|
||||||
return configManager.getConfig(VetionConfig.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void startUp()
|
protected void startUp()
|
||||||
{
|
{
|
||||||
@@ -86,7 +77,7 @@ public class VetionPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onAnimationChanged(AnimationChanged event)
|
public void onAnimationChanged(AnimationChanged event)
|
||||||
{
|
{
|
||||||
if (config.eartquakeTimerActive() && event.getActor().getAnimation() == AnimationID.VETION_EARTHQUAKE)
|
if (event.getActor().getAnimation() == AnimationID.VETION_EARTHQUAKE)
|
||||||
{
|
{
|
||||||
Actor vet = event.getActor();
|
Actor vet = event.getActor();
|
||||||
vetions.remove(vet, Instant.now());
|
vetions.remove(vet, Instant.now());
|
||||||
|
|||||||
@@ -33,17 +33,6 @@ import net.runelite.client.config.ConfigItem;
|
|||||||
@ConfigGroup("zulrah")
|
@ConfigGroup("zulrah")
|
||||||
public interface ZulrahConfig extends Config
|
public interface ZulrahConfig extends Config
|
||||||
{
|
{
|
||||||
@ConfigItem(
|
|
||||||
position = 0,
|
|
||||||
keyName = "zulrahenable",
|
|
||||||
name = "Enable Zulrah Helper",
|
|
||||||
description = "Configures whether or not to enable Zulrah Helper."
|
|
||||||
)
|
|
||||||
default boolean EnableZulrah()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 1,
|
position = 1,
|
||||||
keyName = "zulrahprayenable",
|
keyName = "zulrahprayenable",
|
||||||
|
|||||||
@@ -230,11 +230,6 @@ public class ZulrahPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onGameTick(GameTick event)
|
public void onGameTick(GameTick event)
|
||||||
{
|
{
|
||||||
if (!config.EnableZulrah())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (phase4 && phases.size() == 11)
|
if (phase4 && phases.size() == 11)
|
||||||
{
|
{
|
||||||
jadphase = 1;
|
jadphase = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user