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:
Ganom
2019-08-16 20:35:31 -04:00
committed by Kyleeld
parent 8a89aabee6
commit 7880679574
9 changed files with 188 additions and 217 deletions

View File

@@ -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>