SamJakob / SpiGUI

A comprehensive GUI API for Spigot with pages support.
MIT License
109 stars 22 forks source link

InventoryClickEvent click types #33

Open xap3y opened 6 months ago

xap3y commented 6 months ago

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

SamJakob commented 6 months ago

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.

xap3y commented 6 months ago

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