Hello all,
I've been browsing this forum for a while now and am posting for the first time. I appologize if this has already been answered in some way, but I have been unable to find an answer.
I have a 'main menu' that has a series of menu drawer popouts that links to a number of titles. when I return to my menu title from another title, I want the state of the menu drawers to be the same as when I left the menu, and the focused button to be the last button activated. Essentially I am trying to write a 'pre-command' (from the good ol' SD days) that performs a check of which title I have just left when I enter the menu, or checks a global variable (a la GPRM), and then sets the approprate XPaths so that my menu and button focus can then be set correctly.
I am using the 'title_begin' event, but have been unable to figure out where to set and retrieve my menu state information.
Can anyone offer any advice or best practice on how to 'remember' menu states across titles and applications
Thanks!

Pre-command?
lalremsiama
I should be able to get it to work using one of these methods!
-Dave
Andrius Bolsaitis
If my menu was a PlaylistApplication, then global script variables would work... but is there a way to set a variable as global across titles with different TitleApplications
Or because I have the menu resources loaded in the PlaylistApp, is there a way I can access a global variable from there
Dan-Teklynx
You could create a custom event with the parameters you want to save, and dispatch it to the playlist application, which saves the information.
Then you create another event which is a "query" event, which you dispatch, and it tells the playlist application to create a custom event with all your saved data in it and dispatch it back to you.
Then when your title app starts up, it sends the query event, and doesn't do anything else until the playlist app responds with the data (Or a "No data" event - which would mean first start up)
d2army