Previous Scene Help / Multiple Menus

Good day,

Bare with me, I'm not a programmer and while I understand how to do most things with this forsaken software, there are just some things that are extremely frustrating within the natural limitations of VNM. I'm also very bad at explaining things.

With that said, I've got custom screen setup for all of the GUI...the one that is giving me trouble is the settings screen, and I'm not even sure I can do what I want to, because I can't find (and I'm not a programmer) what causes the right mouse button to change to the settings menu as I assume it is automatically setup to just "save" the "previous scene" by default.

The issue, is I have two sub-menues setup that can be accessed from the settings menu - intead of a general "Pause screen" isk setup. A profile for all of the characters in the game and a player stat screen. When you enter the settings menu change the settings as intended then click the back button, everything is fine...you go back to previous scene exactly where you left off.

However, when you access one of the sub-menues, (whether save previous scene is on or off in the change scene paramater), then go back to the settings menu, clicking the back button does not work (it doesn't take you back to where you left off in the story scene)...if that makes any sense....and since I can't find anything that actually establishes that access to the settings menu, nor am I coder, I have no idea how to fix this without creating a custom pause screen, but i'm not sure I can even do that as right clicking would still access the settings menu and also I think i would be in the same situation.

I really hope this makes sense on what I am trying to explain...sorry for not being good at explaining things like this all that well. But any help would be appreciated.
Good day,

Bare with me, I'm not a programmer and while I understand how to do most things with this forsaken software, there are just some things that are extremely frustrating within the natural limitations of VNM. I'm also very bad at explaining things.

With that said, I've got custom screen setup for all of the GUI...the one that is giving me trouble is the settings screen, and I'm not even sure I can do what I want to, because I can't find (and I'm not a programmer) what causes the right mouse button to change to the settings menu as I assume it is automatically setup to just "save" the "previous scene" by default.

The issue, is I have two sub-menues setup that can be accessed from the settings menu - intead of a general "Pause screen" isk setup. A profile for all of the characters in the game and a player stat screen. When you enter the settings menu change the settings as intended then click the back button, everything is fine...you go back to previous scene exactly where you left off.

However, when you access one of the sub-menues, (whether save previous scene is on or off in the change scene paramater), then go back to the settings menu, clicking the back button does not work (it doesn't take you back to where you left off in the story scene)...if that makes any sense....and since I can't find anything that actually establishes that access to the settings menu, nor am I coder, I have no idea how to fix this without creating a custom pause screen, but i'm not sure I can even do that as right clicking would still access the settings menu and also I think i would be in the same situation.

I really hope this makes sense on what I am trying to explain...sorry for not being good at explaining things like this all that well. But any help would be appreciated.
Component_GameSceneBehavior is responsible for handling the right-click transition to the settings menu:

1707417637362.png
I appreciate that, but it doesn't exactly help me with my problem...in fact trying to edit that part of the code draws a slew of other problems in related .js files. Sorry, I don't know how to describe it any better than I already did. I want to save the place in a scene and then recall it when a player pushes the back button on the settings...the previous screen command only works if you don't go to one of the sub menus.

I mean I've found a solution using prepare save, save game - a variable to set whether the sub-menus are accessed if not it goes back to previous screen, if they were, it loads the save game file, which is high enough that the save menu isn't going to display it or overwrite any other save file created by the player.

This seems rather annoying...I mean there has to be some way to do this. Without having to do this, because even if I create a "menu" to access these menus, I'm going to run into the same problem.

~~~~~Update~~~~
I somewhat figured it out, I gotta play around with it more, but using common events and variables to erase and recreate the menus seems to do the trick, as you don't actually change the scene the save thing isn't necessary. Only problem i'm facing now is the hotspots are clashing with each other even if I create a setup cleaning common event to clear the pictures and the hotspots....but at least figuring out to do it this way saves me the headache of messing around with .js files. Coding gives me some serious anxiety, its the whole reason I stopped using Ren'py for this project....(well that and I'm a visual person, when it comes to art anyways.)

The biggest issue is trying to figure out how to recall the settings screens as everything I've tried does recall it, but none of the hotspots work like they should.
When you use change scene, did you erase objects? If you go from sceneA to B to C and want to go back to previous, you should make sure every change scene command with erase object setting to "no".

And, I'm not sure how you open your 2 menues? It seems you both use right mouse button and the button in your UI? You can first try to only use UI bottones to open new menue. My project has open menue->submenue, and it works fine(2 previous scene works fine).

For the right mouse button part, it triggers by common events/Beginner's Guide In-Game UI/Message Box/Open settings Menu(Right Click).You can check if there is any conflict with your requirement

Original thread: https://forums.rpgmakerweb.com/threads/previous-scene-help-multiple-menus.165585/