ImAhNoBoDy
22nd February 2013, 02:55
I added 2 buttons to a DVD and would like to know how to have a button highlighted automatically depending on which button was selected. What I want is when you enter the Language/Audio menu, button 1 should be highlighted. If you select either button 1 or 2, button 6 is hightlighted. If you select any buttons from 3 - 6, then button 7 should be highlighted.
The original commands look like this for the menu in PGCEdit:
VTSM 3 , LU 1 (en) , 7 (0:00) 6b. - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(0) =(mov) 99
3 if ( gprm(0) == gprm(5) ) then { Goto line 12 }
4 Set gprm(0) =(mov) 100
5 if ( gprm(0) == gprm(5) ) then { Goto line 27 }
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 NOP
12 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
13 Set gprm(0) &=(and) 63
14 Set gprm(1) =(mov) 0
15 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) }
16 Set gprm(1) =(mov) 1
17 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) }
18 Set gprm(1) =(mov) 2
19 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 3072 (button 3) }
20 NOP
21 NOP
22 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
23 Set gprm(0) &=(and) 64
24 Set gprm(1) =(mov) 0
25 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 4096 (button 4) }
26 Goto line 28
27 (SetHL_BTN) Set Highlighted Button =(mov) 5120 (button 5)
28 NOP
********** post commands:
********** cell commands:
********** menu buttons commands:
VOB ID 4, Cell ID 1 (First NAV pack LBA=25606)
2 Groups, Select button=0, Action button=0, 6 numerically selectable buttons.
1: Set gprm(2) =(mov) 1 ; LinkPGCN PGC 8
2: Set gprm(2) =(mov) 2 ; LinkPGCN PGC 8
3: Set gprm(2) =(mov) 3 ; LinkPGCN PGC 8
4: Set gprm(2) =(mov) 5 ; LinkPGCN PGC 8
5: LinkPGCN PGC 6
6: Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
VTSM 3 , LU 1 (en) , 8 (dummy) - Chapters: n/a, Programs: 0, Cells: 0
********** pre commands:
1 Set gprm(5) =(mov) 100
2 Set gprm(0) =(mov) 5
3 if ( gprm(2) != gprm(0) ) then { Goto line 16 }
4 NOP
5 NOP
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
12 Set gprm(0) &=(and) 63
13 (SetSTN) Set Sub-picture stream = gprm(0)
14 Goto line 22
15 NOP
16 Set gprm(0) =(mov) 1
17 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 0, on }
18 Set gprm(0) =(mov) 2
19 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 1, on }
20 Set gprm(0) =(mov) 3
21 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 2, on }
22 Set gprm(2) =(mov) 0
23 Set gprm(12) =(mov) sprm(1:Audio stream number)
24 Set gprm(13) =(mov) sprm(2:Sub-picture stream number)
25 LinkPGCN PGC 7
********** post commands:
********** cell commands:
I edited the 2 PGC to look like this in PGCEdit:
VTSM 3 , LU 1 (en) , 7 (0:00) 8b. - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(0) =(mov) 99
3 if ( gprm(0) == gprm(5) ) then { Goto line 12 }
4 Set gprm(0) =(mov) 100
5 if ( gprm(0) == gprm(5) ) then { Goto line 31 }
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 NOP
12 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
13 Set gprm(0) &=(and) 63
14 Set gprm(1) =(mov) 0
15 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) }
16 Set gprm(1) =(mov) 1
17 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) }
18 Set gprm(1) =(mov) 2
19 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 3072 (button 3) }
20 Set gprm(1) =(mov) 3
21 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 4096 (button 4) }
22 Set gprm(1) =(mov) 4
23 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 5120 (button 5) }
24 NOP
25 NOP
26 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
27 Set gprm(0) &=(and) 64
28 Set gprm(1) =(mov) 0
29 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 6144 (button 6) }
30 Goto line 32
31 (SetHL_BTN) Set Highlighted Button =(mov) 7168 (button 7)
32 NOP
********** post commands:
********** cell commands:
********** menu buttons commands:
VOB ID 4, Cell ID 1 (First NAV pack LBA=25606)
2 Groups, Select button=0, Action button=0, 8 numerically selectable buttons.
1: Set gprm(2) =(mov) 12 ; LinkPGCN PGC 8
2: Set gprm(2) =(mov) 11 ; LinkPGCN PGC 8
3: Set gprm(2) =(mov) 1 ; LinkPGCN PGC 8
4: Set gprm(2) =(mov) 2 ; LinkPGCN PGC 8
5: Set gprm(2) =(mov) 3 ; LinkPGCN PGC 8
6: Set gprm(2) =(mov) 5 ; LinkPGCN PGC 8
7: LinkPGCN PGC 6
8: Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
VTSM 3 , LU 1 (en) , 8 (dummy) - Chapters: n/a, Programs: 0, Cells: 0
********** pre commands:
1 Set gprm(5) =(mov) 100
2 Set gprm(0) =(mov) 5
3 if ( gprm(2) != gprm(0) ) then { Goto line 16 }
4 NOP
5 NOP
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
12 Set gprm(0) &=(and) 63
13 (SetSTN) Set Sub-picture stream = gprm(0)
14 Goto line 26
15 NOP
16 Set gprm(0) =(mov) 1
17 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 0, on }
18 Set gprm(0) =(mov) 2
19 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 1, on }
20 Set gprm(0) =(mov) 3
21 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 2, on }
22 Set gprm(0) =(mov) 11
23 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Audio stream = 1 }
24 Set gprm(0) =(mov) 12
25 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Audio stream = 0 }
26 Set gprm(2) =(mov) 0
27 Set gprm(12) =(mov) sprm(1:Audio stream number)
28 Set gprm(13) =(mov) sprm(2:Sub-picture stream number)
29 LinkPGCN PGC 7
********** post commands:
********** cell commands:
I did check other topics on this issue for several days, but couldn't mimic other people's commands. I did try to add "(SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1)" at the beginning of "VTSM 3 , LU 1 (en) , 7", but that didn't work. Right now when you enter the menu, button 6 is highlight and if you select any buttons from 1 - 6 it will highlight button 7. Can anyone help me out? I'm using PGCEdit to edit the commands. Thanks.
The original commands look like this for the menu in PGCEdit:
VTSM 3 , LU 1 (en) , 7 (0:00) 6b. - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(0) =(mov) 99
3 if ( gprm(0) == gprm(5) ) then { Goto line 12 }
4 Set gprm(0) =(mov) 100
5 if ( gprm(0) == gprm(5) ) then { Goto line 27 }
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 NOP
12 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
13 Set gprm(0) &=(and) 63
14 Set gprm(1) =(mov) 0
15 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) }
16 Set gprm(1) =(mov) 1
17 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) }
18 Set gprm(1) =(mov) 2
19 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 3072 (button 3) }
20 NOP
21 NOP
22 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
23 Set gprm(0) &=(and) 64
24 Set gprm(1) =(mov) 0
25 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 4096 (button 4) }
26 Goto line 28
27 (SetHL_BTN) Set Highlighted Button =(mov) 5120 (button 5)
28 NOP
********** post commands:
********** cell commands:
********** menu buttons commands:
VOB ID 4, Cell ID 1 (First NAV pack LBA=25606)
2 Groups, Select button=0, Action button=0, 6 numerically selectable buttons.
1: Set gprm(2) =(mov) 1 ; LinkPGCN PGC 8
2: Set gprm(2) =(mov) 2 ; LinkPGCN PGC 8
3: Set gprm(2) =(mov) 3 ; LinkPGCN PGC 8
4: Set gprm(2) =(mov) 5 ; LinkPGCN PGC 8
5: LinkPGCN PGC 6
6: Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
VTSM 3 , LU 1 (en) , 8 (dummy) - Chapters: n/a, Programs: 0, Cells: 0
********** pre commands:
1 Set gprm(5) =(mov) 100
2 Set gprm(0) =(mov) 5
3 if ( gprm(2) != gprm(0) ) then { Goto line 16 }
4 NOP
5 NOP
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
12 Set gprm(0) &=(and) 63
13 (SetSTN) Set Sub-picture stream = gprm(0)
14 Goto line 22
15 NOP
16 Set gprm(0) =(mov) 1
17 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 0, on }
18 Set gprm(0) =(mov) 2
19 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 1, on }
20 Set gprm(0) =(mov) 3
21 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 2, on }
22 Set gprm(2) =(mov) 0
23 Set gprm(12) =(mov) sprm(1:Audio stream number)
24 Set gprm(13) =(mov) sprm(2:Sub-picture stream number)
25 LinkPGCN PGC 7
********** post commands:
********** cell commands:
I edited the 2 PGC to look like this in PGCEdit:
VTSM 3 , LU 1 (en) , 7 (0:00) 8b. - Chapters: n/a, Programs: 1, Cells: 1
********** pre commands:
1 Set gprm(6) =(mov) 0
2 Set gprm(0) =(mov) 99
3 if ( gprm(0) == gprm(5) ) then { Goto line 12 }
4 Set gprm(0) =(mov) 100
5 if ( gprm(0) == gprm(5) ) then { Goto line 31 }
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 NOP
12 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
13 Set gprm(0) &=(and) 63
14 Set gprm(1) =(mov) 0
15 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1) }
16 Set gprm(1) =(mov) 1
17 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 2048 (button 2) }
18 Set gprm(1) =(mov) 2
19 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 3072 (button 3) }
20 Set gprm(1) =(mov) 3
21 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 4096 (button 4) }
22 Set gprm(1) =(mov) 4
23 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 5120 (button 5) }
24 NOP
25 NOP
26 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
27 Set gprm(0) &=(and) 64
28 Set gprm(1) =(mov) 0
29 if ( gprm(1) == gprm(0) ) then { (SetHL_BTN) Set Highlighted Button =(mov) 6144 (button 6) }
30 Goto line 32
31 (SetHL_BTN) Set Highlighted Button =(mov) 7168 (button 7)
32 NOP
********** post commands:
********** cell commands:
********** menu buttons commands:
VOB ID 4, Cell ID 1 (First NAV pack LBA=25606)
2 Groups, Select button=0, Action button=0, 8 numerically selectable buttons.
1: Set gprm(2) =(mov) 12 ; LinkPGCN PGC 8
2: Set gprm(2) =(mov) 11 ; LinkPGCN PGC 8
3: Set gprm(2) =(mov) 1 ; LinkPGCN PGC 8
4: Set gprm(2) =(mov) 2 ; LinkPGCN PGC 8
5: Set gprm(2) =(mov) 3 ; LinkPGCN PGC 8
6: Set gprm(2) =(mov) 5 ; LinkPGCN PGC 8
7: LinkPGCN PGC 6
8: Set gprm(0) =(mov) 0 ; LinkPGCN PGC 1
VTSM 3 , LU 1 (en) , 8 (dummy) - Chapters: n/a, Programs: 0, Cells: 0
********** pre commands:
1 Set gprm(5) =(mov) 100
2 Set gprm(0) =(mov) 5
3 if ( gprm(2) != gprm(0) ) then { Goto line 16 }
4 NOP
5 NOP
6 NOP
7 NOP
8 NOP
9 NOP
10 NOP
11 Set gprm(0) =(mov) sprm(2:Sub-picture stream number)
12 Set gprm(0) &=(and) 63
13 (SetSTN) Set Sub-picture stream = gprm(0)
14 Goto line 26
15 NOP
16 Set gprm(0) =(mov) 1
17 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 0, on }
18 Set gprm(0) =(mov) 2
19 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 1, on }
20 Set gprm(0) =(mov) 3
21 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Sub-picture stream = 2, on }
22 Set gprm(0) =(mov) 11
23 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Audio stream = 1 }
24 Set gprm(0) =(mov) 12
25 if ( gprm(2) == gprm(0) ) then { (SetSTN) Set Audio stream = 0 }
26 Set gprm(2) =(mov) 0
27 Set gprm(12) =(mov) sprm(1:Audio stream number)
28 Set gprm(13) =(mov) sprm(2:Sub-picture stream number)
29 LinkPGCN PGC 7
********** post commands:
********** cell commands:
I did check other topics on this issue for several days, but couldn't mimic other people's commands. I did try to add "(SetHL_BTN) Set Highlighted Button =(mov) 1024 (button 1)" at the beginning of "VTSM 3 , LU 1 (en) , 7", but that didn't work. Right now when you enter the menu, button 6 is highlight and if you select any buttons from 1 - 6 it will highlight button 7. Can anyone help me out? I'm using PGCEdit to edit the commands. Thanks.