menuentryswapper: various changes and fixes. (#1368)
* menuentryswapper: various changes and fixes. * menuentryswapper: fix "rub" and "teleport" on inventory items. * menuentryswapper: fix "reset" on box traps * menuentryswapper: fix use bones.
This commit is contained in:
@@ -50,10 +50,11 @@ public class MenuOptionClicked implements Event
|
||||
authentic = true;
|
||||
}
|
||||
|
||||
public MenuOptionClicked(MenuEntry entry, boolean authentic)
|
||||
public MenuOptionClicked(MenuEntry entry, boolean authentic, int mouseButton)
|
||||
{
|
||||
menuEntry = entry;
|
||||
this.authentic = authentic;
|
||||
this.mouseButton = mouseButton;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -127,6 +128,11 @@ public class MenuOptionClicked implements Event
|
||||
*/
|
||||
private boolean consumed;
|
||||
|
||||
/**
|
||||
* The mouse button will be 1 if a non draggable widget was clicked,
|
||||
*/
|
||||
private int mouseButton;
|
||||
|
||||
/**
|
||||
* Marks the event as having been consumed.
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user