SpiGUI icon indicating copy to clipboard operation
SpiGUI copied to clipboard

InventoryClickEvent click types

Open xap3y opened this issue 1 year ago • 2 comments

Is there a way to handle all inventory click event click types inside the SGButton withListener? The event will allow only LEFT and RIGHT click types here but i want to also handle SHIFT_LEFT or SHIFT_RIGHT. I tried to override the SGMenuListener onInventoryClick but it was firing both events

xap3y avatar May 12 '24 16:05 xap3y

How did you do the override?

I had a look at the linked class and it seems a bit difficult to configure so I may update it to provide more customization options.

SamJakob avatar May 12 '24 16:05 SamJakob

I pasted the whole class here: https://gist.github.com/xap3y/1249939421c0ff89bb12f237907cbfc8 It is Kotlin not Java but it should be understandable

xap3y avatar May 12 '24 16:05 xap3y