Request for help with inventories paged-gui click handler #42
|
I would greatly appreciate some assistance with using PagedGui.inventories() to create a paged GUI, which would allow me to browse Inventories with pagination. However, I'm hoping to kindly inquire if it would be possible to prevent players from taking items from the GUI. I seem to be facing some difficulty in locating where to override the onClick(clickHandler?) method. Any help or guidance you could provide would be sincerely valued. |
Answered by
NichtStudioCode
Jul 20, 2023
Replies: 1 comment 5 replies
|
Inventories are generally intended to be modified by players. If you want to display items that cannot be modified, you should use InvUI's UI |
5 replies
Answer selected by
NichtStudioCode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inventories are generally intended to be modified by players. If you want to display items that cannot be modified, you should use InvUI's UI
Iteminstead. Nevertheless, you can also cancel inventory events, as explained in the documentation: https://docs.xenondevs.xyz/invui/inventory/#inventory-events