From 40bf03584bcd5abd6eda7597a6a4c3733b3a9fff Mon Sep 17 00:00:00 2001 From: ThatGamerBlue Date: Sat, 8 Feb 2020 21:57:57 +0000 Subject: [PATCH] add sotd timer --- .../effecttimers/EffectTimersConfig.java | 19 ++++++++++++++---- .../effecttimers/PlayerSpellEffect.java | 3 ++- .../plugins/effecttimers/TimerType.java | 3 ++- .../client/plugins/effecttimers/sotd.png | Bin 0 -> 15130 bytes 4 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 runelite-client/src/main/resources/net/runelite/client/plugins/effecttimers/sotd.png diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/EffectTimersConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/EffectTimersConfig.java index 7e5c7201e4..77dc5b8d36 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/EffectTimersConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/EffectTimersConfig.java @@ -121,11 +121,22 @@ public interface EffectTimersConfig extends Config return true; } + @ConfigItem( + name = "SOTD Timers", + keyName = "sotdTimers", + description = "Should we render staff of the dead timers?", + position = 9 + ) + default boolean sotdTimers() + { + return true; + } + @ConfigItem( name = "Show Icons", keyName = "showIcons", description = "Should we render the icons? Note disabling this will override all colors", - position = 9 + position = 10 ) default boolean showIcons() { @@ -136,7 +147,7 @@ public interface EffectTimersConfig extends Config name = "Debug Keybind", keyName = "debugKeybind", description = "Don't press this unless you know what it does :)", - position = 10, + position = 11, hidden = true ) default Keybind debugKeybind() @@ -148,7 +159,7 @@ public interface EffectTimersConfig extends Config name = "Debug Integer", keyName = "debugInteger", description = "Related to the keybind in some way :)", - position = 11, + position = 12, hidden = true ) default int debugInteger() @@ -160,7 +171,7 @@ public interface EffectTimersConfig extends Config name = "X Offset", keyName = "xOffset", description = "X Offset for overlay rendering", - position = 12 + position = 13 ) default int xOffset() { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/PlayerSpellEffect.java b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/PlayerSpellEffect.java index c59743a4ba..8d1aa7d2f9 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/PlayerSpellEffect.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/PlayerSpellEffect.java @@ -40,7 +40,8 @@ public enum PlayerSpellEffect BARRAGE("Ice Barrage", 369, 32, false, TimerType.FREEZE), TELEBLOCK("Teleblock", 345, 500, true, TimerType.TELEBLOCK), VENG("Vengeance", 726, 50, false, TimerType.VENG), - VENG_OTHER("Vengeance Other", 725, 50, false, TimerType.VENG); + VENG_OTHER("Vengeance Other", 725, 50, false, TimerType.VENG), + STAFF_OF_THE_DEAD("Staff of the Dead", 1288, 100, false, TimerType.SOTD); @Getter(AccessLevel.PACKAGE) private final String name; diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/TimerType.java b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/TimerType.java index 508e65bcf4..81a1cd44b4 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/TimerType.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/effecttimers/TimerType.java @@ -37,7 +37,8 @@ public enum TimerType { FREEZE(5, loadImage("freeze"), loadImage("freezeimmune"), "freezeTimers", Color.CYAN), // 3 seconds TELEBLOCK(100, loadImage("teleblock"), loadImage("teleblockimmune"), "teleblockTimers", new Color(0x5254ae)), // this is 60 seconds, might be wrong - VENG(0, loadImage("veng"), null, "vengTimers", Color.RED.brighter()); + VENG(0, loadImage("veng"), null, "vengTimers", Color.RED.brighter()), + SOTD(0, loadImage("sotd"), null, "sotdTimers", Color.YELLOW); private final int immunityLength; private final BufferedImage icon; diff --git a/runelite-client/src/main/resources/net/runelite/client/plugins/effecttimers/sotd.png b/runelite-client/src/main/resources/net/runelite/client/plugins/effecttimers/sotd.png new file mode 100644 index 0000000000000000000000000000000000000000..1f4453cbe058cb13c288c51f39eee5743d6268ce GIT binary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