Revert "coxhelper: Remove usused fields and methods"

This reverts commit 4db59fa984.
This commit is contained in:
sdburns1998
2019-07-07 05:34:25 +02:00
parent 48ea51f82b
commit 8a968c4603
2 changed files with 25 additions and 24 deletions

View File

@@ -105,6 +105,7 @@ public class CoxOverlay extends Overlay
if (plugin.isTektonTickCounter()) if (plugin.isTektonTickCounter())
{ {
ticksLeft = npcs.getTicksUntilAttack(); ticksLeft = npcs.getTicksUntilAttack();
int attackTicksleft = plugin.getTektonAttackTicks();
if (ticksLeft > 0) if (ticksLeft > 0)
{ {
if (ticksLeft == 1) if (ticksLeft == 1)
@@ -362,26 +363,26 @@ public class CoxOverlay extends Overlay
graphics.fill(poly); graphics.fill(poly);
} }
// private void renderNpcOverlay(Graphics2D graphics, NPC actor, Color color, int outlineWidth, int outlineAlpha, int fillAlpha) private void renderNpcOverlay(Graphics2D graphics, NPC actor, Color color, int outlineWidth, int outlineAlpha, int fillAlpha)
// { {
// int size = 1; int size = 1;
// NPCDefinition composition = actor.getTransformedDefinition(); NPCDefinition composition = actor.getTransformedDefinition();
// if (composition != null) if (composition != null)
// { {
// size = composition.getSize(); size = composition.getSize();
// } }
// LocalPoint lp = actor.getLocalLocation(); LocalPoint lp = actor.getLocalLocation();
// Polygon tilePoly = Perspective.getCanvasTileAreaPoly(client, lp, size); Polygon tilePoly = Perspective.getCanvasTileAreaPoly(client, lp, size);
//
// if (tilePoly != null) if (tilePoly != null)
// { {
// graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), outlineAlpha)); graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), outlineAlpha));
// graphics.setStroke(new BasicStroke(outlineWidth)); graphics.setStroke(new BasicStroke(outlineWidth));
// graphics.draw(tilePoly); graphics.draw(tilePoly);
// graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha)); graphics.setColor(new Color(color.getRed(), color.getGreen(), color.getBlue(), fillAlpha));
// graphics.fill(tilePoly); graphics.fill(tilePoly);
// } }
// } }
private void renderActorOverlay(Graphics2D graphics, Actor actor, Color color, int outlineWidth, int outlineAlpha, int fillAlpha) private void renderActorOverlay(Graphics2D graphics, Actor actor, Color color, int outlineWidth, int outlineAlpha, int fillAlpha)
{ {

View File

@@ -83,7 +83,7 @@ import net.runelite.client.util.Text;
public class CoxPlugin extends Plugin public class CoxPlugin extends Plugin
{ {
private static final int ANIMATION_ID_G1 = 430; private static final int ANIMATION_ID_G1 = 430;
// private static final String OLM_HAND_CRIPPLE = "The Great Olm\'s left claw clenches to protect itself temporarily."; private static final String OLM_HAND_CRIPPLE = "The Great Olm\'s left claw clenches to protect itself temporarily.";
private static final Pattern TP_REGEX = Pattern.compile("You have been paired with <col=ff0000>(.*)</col>! The magical power will enact soon..."); private static final Pattern TP_REGEX = Pattern.compile("You have been paired with <col=ff0000>(.*)</col>! The magical power will enact soon...");
@Setter @Setter
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
@@ -92,11 +92,11 @@ public class CoxPlugin extends Plugin
protected long lastPrayTime; protected long lastPrayTime;
private int sleepcount = 0; private int sleepcount = 0;
private boolean needOlm = false; private boolean needOlm = false;
// private GraphicsObject teleportObject; private GraphicsObject teleportObject;
@Inject @Inject
private Client client; private Client client;
// @Inject @Inject
// private ChatMessageManager chatMessageManager; private ChatMessageManager chatMessageManager;
@Inject @Inject
private CoxOverlay coxOverlay; private CoxOverlay coxOverlay;
@Inject @Inject