Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InventoryClickEvent click types #33

Open
xap3y opened this issue May 12, 2024 · 2 comments
Open

InventoryClickEvent click types #33

xap3y opened this issue May 12, 2024 · 2 comments

Comments

@xap3y
Copy link

xap3y commented May 12, 2024

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
Copy link
Owner

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
Copy link
Author

xap3y commented May 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants