api: fix naming of menuoptionclicked params
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user