View Full Version : Menu Button to jump to cell 2
Fisticuffs
24th May 2009, 02:58
The movie im working on the menu which also have the intro in the same PGC, when i hit menu on the remote it play the long intro instead of just going to the actual menu which is in cell 2, the intro is in cell 1, what do i need to change so that when i hit menu it goes to cell 2 of that PGC?
blutach
24th May 2009, 06:44
If you never want to play the intro, delete cell 1 and renumber all references to cells/programs in the commands so they are correct.
If you want the intro to play the first time round, this is a little more complex (but not much). You need to program an unused gprm that the first time round is set and you test it on pressing menu, and if set, plays cell 2.
Something like this should do it (assuming gprm(9) is unsed and not set before entering the menu the first time and not used otherwise):
[20 B7 00 09 00 00 00 02] 1 if ( gprm(9) != 0 ) then { LinkCN Cell 2 }
[71 07 00 09 00 01 00 01] 2 Set gprm(9) =(mov) 1 ; LinkCN Cell 1 As you can see, the first time in, gprm(9) is 0 (it is unsed so far). Line 1 is false so line 2 executes, setting gprm(9) to 1 and playing cell 1. Now, assuming you go somewhere else and return to this PGC, gprm(9) is non-zero and line 1 is true, playing cell 2.
Regards
Fisticuffs
24th May 2009, 18:41
And this goes on the pre-command menu PGC and not the main movie PGC right?
blutach
24th May 2009, 23:21
Of course - what the main movie got to do with the buttons?
Regards
Fisticuffs
25th May 2009, 00:09
koo koo, it worked, gprm9 are used so i use gprm12, thanks bro, just for learning sake, let mess with it further, after the movie ended and let say i want it to play the intro again, how can that be done?
blutach
25th May 2009, 00:31
Set gprm(12)=0 and call the root menu
[71 00 00 0C 00 00 00 00] 1 Set gprm(12) =(mov) 0
[30 08 00 00 01 83 00 00] 2 (CallSS) Call the VTSM Root menu of the current VTS, resume cell 1 This assumes that the root menu either contains or will go to the menu with the buttons.
Regards
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.