menu swapper: add shift click abort ge offer
Co-authored-by: Adelaidian <Adelaidian@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user