Updated freezers config / FIXED?
This commit is contained in:
@@ -5,38 +5,75 @@ import net.runelite.client.config.Config;
|
|||||||
import net.runelite.client.config.ConfigGroup;
|
import net.runelite.client.config.ConfigGroup;
|
||||||
import net.runelite.client.config.ConfigItem;
|
import net.runelite.client.config.ConfigItem;
|
||||||
|
|
||||||
@ConfigGroup(value="freezetimers")
|
@ConfigGroup("freezetimers")
|
||||||
public interface FreezeTimersConfig
|
public interface FreezeTimersConfig extends Config
|
||||||
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() {
|
@ConfigItem(
|
||||||
|
position = 0,
|
||||||
|
keyName = "freezeenable",
|
||||||
|
name = "Enable PvP freeze timers",
|
||||||
|
description = "Configures whether or not to show freeze timers."
|
||||||
|
)
|
||||||
|
default boolean EnableFreezeTimers()
|
||||||
|
{
|
||||||
return false;
|
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.")
|
@ConfigItem(
|
||||||
default public boolean drawTiles() {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position=2, keyName="timercolor", name="Freeze Timer Color", description="Color of freeze timer")
|
@ConfigItem(
|
||||||
default public Color FreezeTimerColor() {
|
position = 2,
|
||||||
|
keyName = "timercolor",
|
||||||
|
name = "Freeze Timer Color",
|
||||||
|
description = "Color of freeze timer"
|
||||||
|
)
|
||||||
|
default Color FreezeTimerColor()
|
||||||
|
{
|
||||||
return new Color(0, 184, 212);
|
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")
|
@ConfigItem(
|
||||||
default public boolean spellIcon() {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position=4, keyName="refreezeTimer", name="Refreeze Timer", description="Show a timer that counts up until the target can be refrozen")
|
@ConfigItem(
|
||||||
default public boolean refreezeTimer() {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position=5, keyName="refreezeTimerColor", name="Refreeze color", description="The color for the timer that counts until the target can be refrozen")
|
@ConfigItem(
|
||||||
default public Color RefreezeTimerColor() {
|
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;
|
return Color.red;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position = 6, keyName = "tbtimer", name = "Tele Block Timer", description = "Enables tele block timer")
|
@ConfigItem(position = 6, keyName = "tbtimer", name = "Tele Block Timer", description = "Enables tele block timer")
|
||||||
default boolean TBTimer() {
|
default boolean TBTimer() {
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public class FreezeTimersOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
// if the freezetimer is still active. . .
|
// if the freezetimer is still active. . .
|
||||||
textLocation = actor.getCanvasTextLocation(graphics, String.valueOf((timer)), offset);
|
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
|
else
|
||||||
{
|
{
|
||||||
@@ -118,7 +118,7 @@ public class FreezeTimersOverlay extends Overlay
|
|||||||
if (config.refreezeTimer())
|
if (config.refreezeTimer())
|
||||||
{
|
{
|
||||||
textLocation = actor.getCanvasTextLocation(graphics, String.valueOf((timer)), offset);
|
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());
|
graphics.setFont(FontManager.getRunescapeBoldFont());
|
||||||
if (headIcon != null)
|
if (headIcon != null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ public class FreezeTimersPlugin extends Plugin
|
|||||||
SpriteID.SPELL_TELE_BLOCK
|
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 static final Color FREEZE_ICON_OUTLINE_COLOR = new Color(33, 33, 33);
|
||||||
private final BufferedImage[] FreezeIcons = new BufferedImage[FREEZE_ICONS.length];
|
private final BufferedImage[] FreezeIcons = new BufferedImage[FREEZE_ICONS.length];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user