Merge pull request #769 from Lucwousin/baaaaaaaaaaaaaaaaaa

menumanager: fix menu swaps not working when left clicking items
This commit is contained in:
Ganom
2019-06-27 15:18:11 -04:00
committed by GitHub
10 changed files with 477 additions and 416 deletions

View File

@@ -70,4 +70,17 @@ public class MenuEntry
* This is used for shift click
*/
private boolean forceLeftClick;
public static MenuEntry copy(MenuEntry src)
{
return new MenuEntry(
src.getOption(),
src.getTarget(),
src.getIdentifier(),
src.getType(),
src.getParam0(),
src.getParam1(),
src.isForceLeftClick()
);
}
}

View File

@@ -42,10 +42,15 @@ import net.runelite.api.MenuEntry;
@Data
public class MenuOptionClicked
{
public MenuOptionClicked(MenuEntry entry)
{
menuEntry = entry;
}
/**
* The actual MenuEntry object representing what was clicked
*/
private final MenuEntry menuEntry;
private MenuEntry menuEntry;
/**
* The option text added to the menu.