Right click to exit Save menu?

Currently, in my project I already have it set so that right click opens the Save menu (instead of the settings by default).
Is it possible to make it so that pressing right click again while in the Save menu will act as a 'back' button to return to the game?

Thank you.
Currently, in my project I already have it set so that right click opens the Save menu (instead of the settings by default).
Is it possible to make it so that pressing right click again while in the Save menu will act as a 'back' button to return to the game?

Thank you.

Hi,

If you use default Save Menu, it has the "Right Click to return" by default. However, if you use a custom Save Menu Layout (script), you need to add this following line of code into the UI element that fill the whole screen (often background):
Code:
"action": { "event": "onCancel", "name": "previousLayout", "params": {}}

It should looks like this:
Code:
{
            "type": "ui.Image",
            "image": "backgroundImage",
            "frame": [0, 0, Graphics.width, Graphics.height],
            "action": { "event": "onCancel", "name": "previousLayout", "params": {}}
}

If you use Action-based UI, you can use "Wait for Input" or "Input Data" to check when the Right Button is clicked, it sets a Switch X to true, then in Update Menu common event, you put Condition Switch X is true, it will go to previous scene.

Cheer~
Hi,

If you use default Save Menu, it has the "Right Click to return" by default. However, if you use a custom Save Menu Layout (script), you need to add this following line of code into the UI element that fill the whole screen (often background):
Code:
"action": { "event": "onCancel", "name": "previousLayout", "params": {}}

It should looks like this:
Code:
{
            "type": "ui.Image",
            "image": "backgroundImage",
            "frame": [0, 0, Graphics.width, Graphics.height],
            "action": { "event": "onCancel", "name": "previousLayout", "params": {}}
}

If you use Action-based UI, you can use "Wait for Input" or "Input Data" to check when the Right Button is clicked, it sets a Switch X to true, then in Update Menu common event, you put Condition Switch X is true, it will go to previous scene.

Cheer~
I didn't realize I forgot to mention that I was using action-based UI, sorry about that.
I was trying to follow your instructions for action-based UI, but I got confused. I'm an absolute beginner.
Do you think you could show some screenshots of how it should look? I appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/right-click-to-exit-save-menu.90855/