I have a menu of 5 selections. Lets say the user clicks #2, he will go to another menu. But if he clicks Back to Main, I want #2 to be highlighted because thats where he had come from (rather than default btn set as first button). Is this possible in DVD Lab Pro? If so, how is it accomplished?
+ Reply to Thread
Results 1 to 12 of 12
-
-
Not sure in DVD-Lab exactly. But I can say you would need to track which button was selected in a GPRM.
1. Set GPRM0, SPRM 8 - this puts the value of the button( SPRM 8 ) in GPRM 0
2. div GPRM 0, 1204 - this gives you an easy number to work with since SPRM8 works in increments of 1024
You can do this in the post command section of the PGC of the first menu if you'd like. Now GPRM 0 will hold the button value
The "Back to Main" button would have to look at another script which evaluates what the value of GPRM 0 is then highlights the appropriate button when it returns to the MAIN MENU.
There are tons of ways to do this but this is how I would do it. -
OK so I read the entire section on VM in the help of DLP. Here is what I did:
I selected each of my buttons on my menu, and right-clicked, then chose Set GPRM and Link To. For each button, I would set GPRM1 = whatever the button value was. In my case 0 - 6. Then what I did is I edited the PRE commands for that menu so that it would check to see what the value of GPRM is and to highlight the corresponding button. To do so, I typed if (GPRM1 == 0) LinkNoLink (button 0)...so on and so forth up to 6.
Its not working. What have I done wrong? -
I dunno how complex your main menu is, but a simple way is to just clone the menu with the 5 selections and set #2 as the highlight button. Then link the Back To Main to the cloned menu instead. It all depends how complex your menus are and if you have space to work within the DVD size.
-
So Pinstripes, if I understand correctly you are suggesting I use something similar to switched menus in the sense that no they wont switch whenever the user navigates but yes i will actually have 5 menus with just a different "Set as First Button". Did I understand correctly? Its a clever solution and I may take it if no one can help me out with the VM code. Id prefer to get it working using VM (personal satisfaction!)
-
The MENU Buttons are set to multiples of 1024
Button-1 = 1024
Button-2 = 2048
Button-3 = 3072
etc...
Since you have already set GPRM1 on the way out of the menu (change it so you set GPRM1 to values 1-7, instead of 0-6), add the following code to your PRE commands of the menu (but in SECTION "C")
GPRM1 *= 1024
SetHL_BTN GPRM1
Regards,
George -
George! That was fantastic! Thank you so much!
Can you tell me why though my PRE had to be in C instead of A?
BTW, I put up another post to which you probably know the answer: when building a playlist in DLP, how do I get it to go back to the menu? My playlist loops (it starts playing over again). End-link is currently set to (SELF). -
Originally Posted by Alain2007
Originally Posted by Alain2007
Regards,
George -
Yeah, I checked. There's just the movies, the self, and something called splash, which I dont think represents the page calling the playlist...the splash is always the same page and in my case, its the top most menu. (at least from what i understand in the Connections window).
I have just read about the Return to Last Menu object which will probably be very handy in my project since it is a bilingual DVD...however, I cant apply this to playlists. A bunch of red X appear over the menus and Return to Last Menu object. So I really have no idea how to get my play all button to go back to where it was called from. Do I need to use code?
If so, my only hint of a solution is : Go onto the VM editor for the specific playlist. Add something like: JumpSS VTSM (vts 1, tt 1, menu 2) in the C section of the PRE? However, even if this were to work and send to menu 2, what i really need is for it to be dynamic so that if that playlist can be called from 2 different screens, it knows where to return. (like the Return to Last Menu object)
Can you provide more assistance please? -
Originally Posted by Alain2007
Regards,
George -
Interesting...so I could basically link the ends of my playlists to this BRIDGE and then link this bridge to the Return to Last Menu object? Sounds simple! And looks like it worked!
-
Originally Posted by GeorgeW
I was wondering if this is the same principle I would use for my thumb gallery...I want the thumb for the movie that just played to be the highlighted one, when the movie finishes playing and the gallery appears again?
Similar Threads
-
Command-line command for fixing AVI?
By timur in forum ffmpegX general discussionReplies: 1Last Post: 23rd Sep 2009, 02:23 -
Menus in DLP
By ckurowsk in forum Authoring (DVD)Replies: 1Last Post: 14th Oct 2008, 22:30 -
out of memory ( DLP )
By pcb in forum Newbie / General discussionsReplies: 19Last Post: 12th May 2008, 13:33 -
Setting New Root Menu in DLP...
By GangstaRap in forum Authoring (DVD)Replies: 5Last Post: 23rd Jan 2008, 03:29 -
Assistance with setting up an outdoor photo studio
By wan2no in forum Newbie / General discussionsReplies: 2Last Post: 3rd Jan 2008, 22:33