menu swapper: add shift click abort ge offer

Co-authored-by: Adelaidian <Adelaidian@users.noreply.github.com>
This commit is contained in:
Adam
2019-12-29 14:36:56 -05:00
parent 9ae897667f
commit 61a72d5a54
2 changed files with 14 additions and 0 deletions

View File

@@ -371,4 +371,14 @@ public interface MenuEntrySwapperConfig extends Config
{
return GEItemCollectMode.DEFAULT;
}
@ConfigItem(
keyName = "swapGEAbort",
name = "GE Abort",
description = "Swap abort offer on Grand Exchange offers when shift-clicking"
)
default boolean swapGEAbort()
{
return false;
}
}

View File

@@ -622,6 +622,10 @@ public class MenuEntrySwapperPlugin extends Plugin
{
swap("pick-lots", option, target, index);
}
else if (shiftModifier && option.equals("view offer") && config.swapGEAbort())
{
swap("abort offer", option, target, index);
}
else if (config.shiftClickCustomization() && shiftModifier && !option.equals("use"))
{
Integer customOption = getSwapConfig(eventId);