api: fix naming of menuoptionclicked params

This commit is contained in:
Adam
2021-07-27 16:39:01 -04:00
parent 55e3c675f3
commit 45b85bff6a
17 changed files with 46 additions and 36 deletions

View File

@@ -42,9 +42,13 @@ import net.runelite.api.MenuAction;
public class MenuOptionClicked
{
/**
* The action parameter used in the click.
* Action parameter 0. Its value depends on the menuAction.
*/
private int actionParam;
private int param0;
/**
* Action parameter 1. Its value depends on the menuAction.
*/
private int param1;
/**
* The option text added to the menu.
*/
@@ -61,12 +65,6 @@ public class MenuOptionClicked
* The ID of the object, actor, or item that the interaction targets.
*/
private int id;
/**
* The ID of the widget where the menu was clicked.
*
* @see net.runelite.api.widgets.WidgetID
*/
private int widgetId;
/**
* The selected item index at the time of the option click.
*/
@@ -87,4 +85,16 @@ public class MenuOptionClicked
{
this.consumed = true;
}
@Deprecated
public int getActionParam()
{
return param0;
}
@Deprecated
public int getWidgetId()
{
return param1;
}
}