if something is broken its probably this commit

This commit is contained in:
ThatGamerBlue
2021-02-13 21:33:06 +00:00
parent 93df4c9652
commit 3550d70e92
4 changed files with 50 additions and 19 deletions

View File

@@ -26,6 +26,7 @@ package net.runelite.api.events;
import lombok.Data;
import net.runelite.api.MenuAction;
import net.runelite.api.MenuEntry;
/**
* An event where a menu option has been clicked.
@@ -87,4 +88,14 @@ public class MenuOptionClicked
{
this.consumed = true;
}
public void setMenuEntry(MenuEntry entry)
{
this.setMenuOption(entry.getOption());
this.setMenuTarget(entry.getTarget());
this.setId(entry.getId());
this.setMenuAction(MenuAction.of(entry.getOpcode()));
this.setActionParam(entry.getActionParam());
this.setWidgetId(entry.getActionParam1());
}
}