Removes the hotkey & attack option hiding

Removes the hotkey and makes attack option hiding much more certain
This commit is contained in:
Kyleeld
2019-04-25 21:50:59 +01:00
committed by GitHub
parent 071ccdbe24
commit 7671e61cf3
2 changed files with 803 additions and 840 deletions

View File

@@ -1,147 +1,135 @@
/* /*
* Copyright (c) 2019. PKLite - All Rights Reserved * Copyright (c) 2019. PKLite - All Rights Reserved
* Unauthorized modification, distribution, or possession of this source file, via any medium is strictly prohibited. * Unauthorized modification, distribution, or possession of this source file, via any medium is strictly prohibited.
* Proprietary and confidential. Refer to PKLite License file for more information on * Proprietary and confidential. Refer to PKLite License file for more information on
* full terms of this copyright and to determine what constitutes authorized use. * full terms of this copyright and to determine what constitutes authorized use.
* Written by PKLite(ST0NEWALL, others) <stonewall@thots.cc.usa>, 2019 * Written by PKLite(ST0NEWALL, others) <stonewall@thots.cc.usa>, 2019
* *
*/ */
package net.runelite.client.plugins.pvptools; package net.runelite.client.plugins.pvptools;
import java.awt.Color; import java.awt.Color;
import java.security.Key; import java.security.Key;
import net.runelite.client.config.Config; 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;
import net.runelite.client.config.Keybind; import net.runelite.client.config.Keybind;
@ConfigGroup("pvptools") @ConfigGroup("pvptools")
public interface PvpToolsConfig extends Config public interface PvpToolsConfig extends Config
{ {
@ConfigItem( @ConfigItem(
keyName = "countPlayers", keyName = "countPlayers",
name = "Count Players", name = "Count Players",
description = "When in PvP zones, counts the attackable players in and not in player's CC", description = "When in PvP zones, counts the attackable players in and not in player's CC",
position = 3 position = 3
) )
default boolean countPlayers() default boolean countPlayers()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "countOverHeads", keyName = "countOverHeads",
name = "Count Enemy Overheads", name = "Count Enemy Overheads",
description = "Counts the number of each protection prayer attackable targets not in your CC are currently" + description = "Counts the number of each protection prayer attackable targets not in your CC are currently" +
" using", " using",
position = 4 position = 4
) )
default boolean countOverHeads() default boolean countOverHeads()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "fallInHelper", keyName = "fallInHelper",
name = "Fall In Helper", name = "Fall In Helper",
description = "Hides all non-friendly player entities other than the one that is attacking you.", description = "Hides all non-friendly player entities other than the one that is attacking you.",
position = 5 position = 5
) )
default boolean fallInHelper() default boolean fallInHelper()
{ {
return true; return true;
} }
@ConfigItem( @ConfigItem(
keyName = "hotkey", keyName = "hotkey",
name = "Fall In Hotkey", name = "Fall In Hotkey",
description = "Turns the fall in helper on or off when you press this hotkey", description = "Turns the fall in helper on or off when you press this hotkey",
position = 6 position = 6
) )
default Keybind hotkey() default Keybind hotkey()
{ {
return Keybind.NOT_SET; return Keybind.NOT_SET;
} }
@ConfigItem( @ConfigItem(
keyName = "attackOptionsClan", keyName = "attackOptionsClan",
name = "Move CC Attack Option", name = "Move CC Attack Option",
description = "Moves the attack option for people in the same CC", description = "Moves the attack option for people in the same CC",
position = 7, position = 7,
group = "Right-Click Attack Options" group = "Right-Click Attack Options"
) )
default boolean attackOptionsClan() default boolean attackOptionsClan()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "attackOptionsFriend", keyName = "attackOptionsFriend",
name = "Move Friend Attack Options", name = "Move Friend Attack Options",
description = "Moves the attack option for people on your friends list", description = "Moves the attack option for people on your friends list",
position = 8, position = 8,
group = "Right-Click Attack Options" group = "Right-Click Attack Options"
) )
default boolean attackOptionsFriend() default boolean attackOptionsFriend()
{ {
return false; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "attackOptionsHotkey", keyName = "levelRangeAttackOptions",
name = "Attack Option Hotkey", name = "Moves Other Attack Options",
description = "Enables a hotkey for attack options to disable or enable hiding quickly", description = "Moves the attack option for people that are outside your level range",
position = 10, position = 9,
group = "Right-Click Attack Options" group = "Right-Click Attack Options"
) )
default Keybind attackOptionsHotkey() default boolean levelRangeAttackOptions()
{ {
return Keybind.CTRL; return false;
} }
@ConfigItem( @ConfigItem(
keyName = "levelRangeAttackOptions", keyName = "riskCalculator",
name = "Moves Other Attack Options", name = "Risk Calculator",
description = "Moves the attack option for people that are outside your level range", description = "Enables a panel in the PvP Tools Panel that shows the players current risk",
position = 9, position = 13
group = "Right-Click Attack Options" )
) default boolean riskCalculatorEnabled()
default boolean levelRangeAttackOptions() {
{ return true;
return false; }
}
@ConfigItem(
@ConfigItem( keyName = "missingPlayers",
keyName = "riskCalculator", name = "Missing CC Players",
name = "Risk Calculator", description = "Adds a button to the PvP Tools panel that opens a window showing which CC members are not at" +
description = "Enables a panel in the PvP Tools Panel that shows the players current risk", " the current players location",
position = 13 position = 14
) )
default boolean riskCalculatorEnabled() default boolean missingPlayersEnabled() { return true; }
{
return true; @ConfigItem(
} keyName = "currentPlayers",
name = "Current CC Players",
@ConfigItem( description = "Adds a button to the PvP Tools panel that opens a window showing which CC members currently at" +
keyName = "missingPlayers", " the players location",
name = "Missing CC Players", position = 15
description = "Adds a button to the PvP Tools panel that opens a window showing which CC members are not at" + )
" the current players location", default boolean currentPlayersEnabled()
position = 14 {
) return true;
default boolean missingPlayersEnabled() { return true; } }
@ConfigItem( }
keyName = "currentPlayers",
name = "Current CC Players",
description = "Adds a button to the PvP Tools panel that opens a window showing which CC members currently at" +
" the players location",
position = 15
)
default boolean currentPlayersEnabled()
{
return true;
}
}