Enabling "cancel" with right click


Following this guide, I made a picture menu. On top of that, I made it possible to navigate with mouse clicks with ButtonPicture plugin.

Now having Change Menu Access: Disable, (I think) right click to "cancel/go back" no longer works when on I'm my picture menu.

Is it possible to just re-enable right click to cancel while keeping default menu disabled?
Since I have no experience eventing a picture-based menu I may be completely off, but couldn't you capture the right-click with Input.isPressed('cancel') and process closure of the menu?
In the Picture-Based menu tutorial, you'll see the way you are supposed to close the menu is when the cancel button is pressed. While the right click button acts as a "cancel" button in the context of closing the classic menu, it's actually accessed differently in the code.

If you want to only use the mouse, you can replace the part in the tutorial with

"If: Button [Cancel] is being triggered"

by this: (TouchInput.isCancelled())


Screenshot 2023-12-22 at 03.51.05.png




If you want to keep both behaviours working, you can simply copy paste the whole condition block and edit one of them to replace the condition.

Original thread: https://forums.rpgmakerweb.com/threads/enabling-cancel-with-right-click.164015/