Removes the hotkey & attack option hiding
Removes the hotkey and makes attack option hiding much more certain
This commit is contained in:
@@ -88,18 +88,6 @@ public interface PvpToolsConfig extends Config
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "attackOptionsHotkey",
|
||||
name = "Attack Option Hotkey",
|
||||
description = "Enables a hotkey for attack options to disable or enable hiding quickly",
|
||||
position = 10,
|
||||
group = "Right-Click Attack Options"
|
||||
)
|
||||
default Keybind attackOptionsHotkey()
|
||||
{
|
||||
return Keybind.CTRL;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "levelRangeAttackOptions",
|
||||
name = "Moves Other Attack Options",
|
||||
|
||||
@@ -166,25 +166,6 @@ public class PvpToolsPlugin extends Plugin
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
private final HotkeyListener attackOptionsHotKeyListener = new HotkeyListener(() -> config.attackOptionsHotkey())
|
||||
{
|
||||
long lastPress = 0;
|
||||
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e)
|
||||
{
|
||||
attackHotKeyPressed = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void keyReleased(KeyEvent e)
|
||||
{
|
||||
attackHotKeyPressed = (System.currentTimeMillis() - lastPress) < 800;
|
||||
lastPress = System.currentTimeMillis();
|
||||
}
|
||||
};
|
||||
|
||||
private int[] overheadCount = new int[]{0, 0, 0};
|
||||
|
||||
private Comparator<Item> itemPriceComparator = new Comparator<Item>()
|
||||
@@ -196,6 +177,7 @@ public class PvpToolsPlugin extends Plugin
|
||||
- itemManager.getItemPrice(itemManager.getItemComposition(o2.getId()).getPrice()));
|
||||
}
|
||||
};
|
||||
|
||||
private String mtarget;
|
||||
|
||||
public List getMissingMembers()
|
||||
@@ -280,8 +262,6 @@ public class PvpToolsPlugin extends Plugin
|
||||
clientToolbar.addNavigation(navButton);
|
||||
|
||||
|
||||
keyManager.registerKeyListener(attackOptionsHotKeyListener);
|
||||
|
||||
if (config.missingPlayersEnabled())
|
||||
{
|
||||
panel.missingPlayers.setVisible(true);
|
||||
@@ -298,7 +278,6 @@ public class PvpToolsPlugin extends Plugin
|
||||
{
|
||||
overlayManager.remove(pvpToolsOverlay);
|
||||
keyManager.unregisterKeyListener(hotkeyListener);
|
||||
keyManager.unregisterKeyListener(attackOptionsHotKeyListener);
|
||||
clientToolbar.removeNavigation(navButton);
|
||||
}
|
||||
|
||||
@@ -411,8 +390,6 @@ public class PvpToolsPlugin extends Plugin
|
||||
|
||||
@Subscribe
|
||||
public void onMenuEntryAdded(MenuEntryAdded menuEntryAdded)
|
||||
{
|
||||
if (!attackHotKeyPressed)
|
||||
{
|
||||
if (config.attackOptionsFriend() || config.attackOptionsClan() || config.levelRangeAttackOptions())
|
||||
{
|
||||
@@ -451,8 +428,6 @@ public class PvpToolsPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void moveEntry(String mtarget)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user