diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersConfig.java b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersConfig.java index 512905759d..8d484f11cc 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersConfig.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersConfig.java @@ -5,38 +5,75 @@ import net.runelite.client.config.Config; import net.runelite.client.config.ConfigGroup; import net.runelite.client.config.ConfigItem; -@ConfigGroup(value="freezetimers") -public interface FreezeTimersConfig -extends Config { - @ConfigItem(position=0, keyName="freezeenable", name="Enable PvP freeze timers", description="Configures whether or not to show freeze timers.") - default public boolean EnableFreezeTimers() { +@ConfigGroup("freezetimers") +public interface FreezeTimersConfig extends Config +{ + + @ConfigItem( + position = 0, + keyName = "freezeenable", + name = "Enable PvP freeze timers", + description = "Configures whether or not to show freeze timers." + ) + default boolean EnableFreezeTimers() + { return false; } - @ConfigItem(position=1, keyName="tilehighlight", name="Frozen opponent tile highlighting", description="Configures whether or not to highlight tiles frozen opponents are standing on.") - default public boolean drawTiles() { + @ConfigItem( + position = 1, + keyName = "tilehighlight", + name = "Frozen opponent tile highlighting", + description = "Configures whether or not to highlight tiles frozen opponents are standing on." + ) + default boolean drawTiles() + { return false; } - @ConfigItem(position=2, keyName="timercolor", name="Freeze Timer Color", description="Color of freeze timer") - default public Color FreezeTimerColor() { + @ConfigItem( + position = 2, + keyName = "timercolor", + name = "Freeze Timer Color", + description = "Color of freeze timer" + ) + default Color FreezeTimerColor() + { return new Color(0, 184, 212); } - @ConfigItem(position=3, keyName="spellIcon", name="Show spell icon", description="Shows the spell icon for the freeze spell affecting the target") - default public boolean spellIcon() { + @ConfigItem( + position = 3, + keyName = "spellIcon", + name = "Show spell icon", + description = "Shows the spell icon for the freeze spell affecting the target" + ) + default boolean spellIcon() + { return true; } - @ConfigItem(position=4, keyName="refreezeTimer", name="Refreeze Timer", description="Show a timer that counts up until the target can be refrozen") - default public boolean refreezeTimer() { + @ConfigItem( + position = 4, + keyName = "refreezeTimer", + name = "Refreeze Timer", + description = "Show a timer that counts up until the target can be refrozen" + ) + default boolean refreezeTimer() + { return true; } - @ConfigItem(position=5, keyName="refreezeTimerColor", name="Refreeze color", description="The color for the timer that counts until the target can be refrozen") - default public Color RefreezeTimerColor() { + @ConfigItem( + position = 5, + keyName = "refreezeTimerColor", + name = "Refreeze color", + description = "The color for the timer that counts until the target can be refrozen" + ) + default Color RefreezeTimerColor() + { return Color.red; - } + } @ConfigItem(position = 6, keyName = "tbtimer", name = "Tele Block Timer", description = "Enables tele block timer") default boolean TBTimer() { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersOverlay.java b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersOverlay.java index d0211a5ca1..a4816dcbad 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersOverlay.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersOverlay.java @@ -107,7 +107,7 @@ public class FreezeTimersOverlay extends Overlay { // if the freezetimer is still active. . . textLocation = actor.getCanvasTextLocation(graphics, String.valueOf((timer)), offset); - textLocation = new Point(textLocation.getX() + 10, textLocation.getY() + 5); + textLocation = new Point(textLocation.getX(), textLocation.getY() - config.FreezeTimerPos()); } else { @@ -118,7 +118,7 @@ public class FreezeTimersOverlay extends Overlay if (config.refreezeTimer()) { textLocation = actor.getCanvasTextLocation(graphics, String.valueOf((timer)), offset); - textLocation = new Point(textLocation.getX() + 10, textLocation.getY() + 5); + textLocation = new Point(textLocation.getX(), textLocation.getY() - config.FreezeTimerPos()); graphics.setFont(FontManager.getRunescapeBoldFont()); if (headIcon != null) { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersPlugin.java index a8009d4ae8..bdb5e3a7ff 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/freezetimers/FreezeTimersPlugin.java @@ -77,7 +77,7 @@ public class FreezeTimersPlugin extends Plugin SpriteID.SPELL_TELE_BLOCK }; - private static final Dimension FREEZE_ICON_DIMENSION = new Dimension(17, 17); + private static final Dimension FREEZE_ICON_DIMENSION = new Dimension(25, 25); private static final Color FREEZE_ICON_OUTLINE_COLOR = new Color(33, 33, 33); private final BufferedImage[] FreezeIcons = new BufferedImage[FREEZE_ICONS.length];