jamewoong
23rd July 2007, 13:00
I'm editing a menu by adding an extra button for the extra audio added. After few hours of testing/error, I can't manage to make the highlighted button as the original one.
The PGC 10 (2 cells) is a transition menu, it will jump to PGC 11 (same contents as 2nd cell of PGC 10) when it will ended.
ORIGINAL COMMANDS - PGC 10 (2 CELLS) - 7 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 128
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 4
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
17 Set gprm(4) &=(and) 32768
18 if ( gprm(4) == 32768 ) then { LinkCN Cell 2 }
********** post commands:
1 Set gprm(4) =(mov) 1
2 LinkPGCN PGC 11
********** cell commands:
ORIGINAL COMMANDS - PGC 11 - 7 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 160
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 5
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
********** post commands:
1 Set gprm(3) =(mov) 0
2 Set gprm(0) =(mov) sprm(8:Highlighted button number)
3 Set gprm(0) /=(div) 1024
4 if ( gprm(0) != 1 ) then { Goto line 8 }
5 (SetSTN) Set Audio stream = 0
6 Set gprm(4) =(mov) 3
7 LinkPGCN PGC 11
8 if ( gprm(0) != 2 ) then { Goto line 12 }
9 (SetSTN) Set Audio stream = 1
10 Set gprm(4) =(mov) 3
11 LinkPGCN PGC 11
12 if ( gprm(0) != 3 ) then { Goto line 16 }
13 (SetSTN) Set Sub-picture stream = 0, on
14 Set gprm(4) =(mov) 6
15 LinkPGCN PGC 11
16 if ( gprm(0) != 4 ) then { Goto line 20 }
17 (SetSTN) Set Sub-picture stream = 1, on
18 Set gprm(4) =(mov) 6
19 LinkPGCN PGC 11
20 if ( gprm(0) != 5 ) then { Goto line 24 }
21 (SetSTN) Set Sub-picture stream = 0, off
22 Set gprm(4) =(mov) 6
23 LinkPGCN PGC 11
24 if ( gprm(0) != 6 ) then { Goto line 28 }
25 Set gprm(3) =(mov) 257
26 (JumpSS) Jump to VMGM PGC 2
27 NOP
28 if ( gprm(0) != 7 ) then { Goto line 32 }
29 Set gprm(4) =(mov) 3
30 LinkPGCN PGC 8
31 NOP
32 NOP
********** cell commands:
1 LinkTopCell
INFO:
BUTTON 1: 1st audio -->BUTTON 3 if pressed.
BUTTON 2: 2nd audio -->BUTTON 3 if pressed.
BUTTON 3: 1st subtitles -->BUTTON 6 if pressed.
BUTTON 4: 2nd subtitles -->BUTTON 6 if pressed.
BUTTON 5: Subtitles off -->BUTTON 6 if pressed.
BUTTON 6: Resume movie
BUTTON 7: Main menu
When started (just after the cell 1), the BUTTON 1 (1st audio) is highlighted, When clicking on it or BUTTON 2, it will jump to the BUTTON 3 (1st subtitles) and when clicking on it, it will jump to the BUTTON 6 (resume movie).
When started (just after the cell 1), if we select the BUTTON 3, 4, 5, it will jump to BUTTON 6 (resume movie).
EDITED COMMANDS FOR EXTRA BUTTON - PGC 10 (2 CELLS) - 8 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 128
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 4
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
17 Set gprm(4) &=(and) 32768
18 if ( gprm(4) == 32768 ) then { LinkCN Cell 2 }
********** post commands:
1 Set gprm(4) =(mov) 1
2 LinkPGCN PGC 11
********** cell commands:
EDITED COMMANDS FOR EXTRA BUTTON - PGC 11 - 8 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 160
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 5
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
********** post commands:
1 Set gprm(3) =(mov) 0
2 Set gprm(0) =(mov) sprm(8:Highlighted button number)
3 Set gprm(0) /=(div) 1024
4 if ( gprm(0) != 1 ) then { Goto line 8 }
5 (SetSTN) Set Audio stream = 0
6 Set gprm(4) =(mov) 4
7 LinkPGCN PGC 11
8 if ( gprm(0) != 2 ) then { Goto line 12 }
9 (SetSTN) Set Audio stream = 1
10 Set gprm(4) =(mov) 4
11 LinkPGCN PGC 11
12 if ( gprm(0) != 3 ) then { Goto line 16 }
13 (SetSTN) Set Audio stream = 2
14 Set gprm(4) =(mov) 4
15 LinkPGCN PGC 11
16 if ( gprm(0) != 4 ) then { Goto line 20 }
17 (SetSTN) Set Sub-picture stream = 0, on
18 Set gprm(4) =(mov) 7
19 LinkPGCN PGC 11
20 if ( gprm(0) != 5 ) then { Goto line 24 }
21 (SetSTN) Set Sub-picture stream = 1, on
22 Set gprm(4) =(mov) 7
23 LinkPGCN PGC 11
24 if ( gprm(0) != 6 ) then { Goto line 28 }
25 (SetSTN) Set Sub-picture stream = 0, off
26 Set gprm(4) =(mov) 7
27 LinkPGCN PGC 11
28 if ( gprm(0) != 7 ) then { Goto line 32 }
29 Set gprm(3) =(mov) 257
30 (JumpSS) Jump to VMGM PGC 2
31 NOP
32 if ( gprm(0) != 8 ) then { Goto line 36 }
33 Set gprm(4) =(mov) 4
34 LinkPGCN PGC 8
35 NOP
36 NOP
********** cell commands:
1 LinkTopCell
INFO:
BUTTON 1: 1st audio -->BUTTON 4 if pressed.
BUTTON 2: 2nd audio -->BUTTON 4 if pressed.
BUTTON 3: 3rd audio -->BUTTON 4 if pressed.
BUTTON 4: 1st subtitles -->BUTTON 7 if pressed.
BUTTON 5: 2nd subtitles -->BUTTON 7 if pressed.
BUTTON 6: Subtitles off -->BUTTON 7 if pressed.
BUTTON 7: Resume movie
BUTTON 8: Main menu
The same as above, except when I click on the BUTTON 1, 2 or 3, the highlight will be ON on the 1st button. --> IT SHOULD HIGHLIGHT THE BUTTON 4 (1st subtitles)!
The same goes for BUTTON 3,4,5. If I click on one of them, it will highlight the BUTTON 1 --> IT SHOULD HIGHLIGHT THE BUTTON 7!
The problem only occurs in the transition menu (PGC 10). When the PGC 10 ended, it will goes to PGC 11 - everything is working on this PGC.
Brief:
What I want to do is to have the same commands executed (with the extra button added) in my modified menu as in the original one.
Can anyone help me to solve this puzzle?
Thanks.
The PGC 10 (2 cells) is a transition menu, it will jump to PGC 11 (same contents as 2nd cell of PGC 10) when it will ended.
ORIGINAL COMMANDS - PGC 10 (2 CELLS) - 7 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 128
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 4
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
17 Set gprm(4) &=(and) 32768
18 if ( gprm(4) == 32768 ) then { LinkCN Cell 2 }
********** post commands:
1 Set gprm(4) =(mov) 1
2 LinkPGCN PGC 11
********** cell commands:
ORIGINAL COMMANDS - PGC 11 - 7 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 160
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 5
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
********** post commands:
1 Set gprm(3) =(mov) 0
2 Set gprm(0) =(mov) sprm(8:Highlighted button number)
3 Set gprm(0) /=(div) 1024
4 if ( gprm(0) != 1 ) then { Goto line 8 }
5 (SetSTN) Set Audio stream = 0
6 Set gprm(4) =(mov) 3
7 LinkPGCN PGC 11
8 if ( gprm(0) != 2 ) then { Goto line 12 }
9 (SetSTN) Set Audio stream = 1
10 Set gprm(4) =(mov) 3
11 LinkPGCN PGC 11
12 if ( gprm(0) != 3 ) then { Goto line 16 }
13 (SetSTN) Set Sub-picture stream = 0, on
14 Set gprm(4) =(mov) 6
15 LinkPGCN PGC 11
16 if ( gprm(0) != 4 ) then { Goto line 20 }
17 (SetSTN) Set Sub-picture stream = 1, on
18 Set gprm(4) =(mov) 6
19 LinkPGCN PGC 11
20 if ( gprm(0) != 5 ) then { Goto line 24 }
21 (SetSTN) Set Sub-picture stream = 0, off
22 Set gprm(4) =(mov) 6
23 LinkPGCN PGC 11
24 if ( gprm(0) != 6 ) then { Goto line 28 }
25 Set gprm(3) =(mov) 257
26 (JumpSS) Jump to VMGM PGC 2
27 NOP
28 if ( gprm(0) != 7 ) then { Goto line 32 }
29 Set gprm(4) =(mov) 3
30 LinkPGCN PGC 8
31 NOP
32 NOP
********** cell commands:
1 LinkTopCell
INFO:
BUTTON 1: 1st audio -->BUTTON 3 if pressed.
BUTTON 2: 2nd audio -->BUTTON 3 if pressed.
BUTTON 3: 1st subtitles -->BUTTON 6 if pressed.
BUTTON 4: 2nd subtitles -->BUTTON 6 if pressed.
BUTTON 5: Subtitles off -->BUTTON 6 if pressed.
BUTTON 6: Resume movie
BUTTON 7: Main menu
When started (just after the cell 1), the BUTTON 1 (1st audio) is highlighted, When clicking on it or BUTTON 2, it will jump to the BUTTON 3 (1st subtitles) and when clicking on it, it will jump to the BUTTON 6 (resume movie).
When started (just after the cell 1), if we select the BUTTON 3, 4, 5, it will jump to BUTTON 6 (resume movie).
EDITED COMMANDS FOR EXTRA BUTTON - PGC 10 (2 CELLS) - 8 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 128
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 4
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
17 Set gprm(4) &=(and) 32768
18 if ( gprm(4) == 32768 ) then { LinkCN Cell 2 }
********** post commands:
1 Set gprm(4) =(mov) 1
2 LinkPGCN PGC 11
********** cell commands:
EDITED COMMANDS FOR EXTRA BUTTON - PGC 11 - 8 BUTTONS
********** pre commands:
1 NOP
2 NOP
3 NOP
4 NOP
5 NOP
6 Set gprm(6) =(mov) 160
7 Set gprm(0) =(mov) gprm(4)
8 Set gprm(0) &=(and) 63
9 if ( gprm(0) != 0 ) then { Goto line 11 }
10 Set gprm(0) =(mov) 1
11 Set gprm(0) &=(and) 63
12 Set gprm(0) *=(mul) 1024
13 NOP
14 Set gprm(3) =(mov) 5
15 (SetHL_BTN) Set Highlighted Button =(mov) gprm(0)
16 Set gprm(1) =(mov) 0
********** post commands:
1 Set gprm(3) =(mov) 0
2 Set gprm(0) =(mov) sprm(8:Highlighted button number)
3 Set gprm(0) /=(div) 1024
4 if ( gprm(0) != 1 ) then { Goto line 8 }
5 (SetSTN) Set Audio stream = 0
6 Set gprm(4) =(mov) 4
7 LinkPGCN PGC 11
8 if ( gprm(0) != 2 ) then { Goto line 12 }
9 (SetSTN) Set Audio stream = 1
10 Set gprm(4) =(mov) 4
11 LinkPGCN PGC 11
12 if ( gprm(0) != 3 ) then { Goto line 16 }
13 (SetSTN) Set Audio stream = 2
14 Set gprm(4) =(mov) 4
15 LinkPGCN PGC 11
16 if ( gprm(0) != 4 ) then { Goto line 20 }
17 (SetSTN) Set Sub-picture stream = 0, on
18 Set gprm(4) =(mov) 7
19 LinkPGCN PGC 11
20 if ( gprm(0) != 5 ) then { Goto line 24 }
21 (SetSTN) Set Sub-picture stream = 1, on
22 Set gprm(4) =(mov) 7
23 LinkPGCN PGC 11
24 if ( gprm(0) != 6 ) then { Goto line 28 }
25 (SetSTN) Set Sub-picture stream = 0, off
26 Set gprm(4) =(mov) 7
27 LinkPGCN PGC 11
28 if ( gprm(0) != 7 ) then { Goto line 32 }
29 Set gprm(3) =(mov) 257
30 (JumpSS) Jump to VMGM PGC 2
31 NOP
32 if ( gprm(0) != 8 ) then { Goto line 36 }
33 Set gprm(4) =(mov) 4
34 LinkPGCN PGC 8
35 NOP
36 NOP
********** cell commands:
1 LinkTopCell
INFO:
BUTTON 1: 1st audio -->BUTTON 4 if pressed.
BUTTON 2: 2nd audio -->BUTTON 4 if pressed.
BUTTON 3: 3rd audio -->BUTTON 4 if pressed.
BUTTON 4: 1st subtitles -->BUTTON 7 if pressed.
BUTTON 5: 2nd subtitles -->BUTTON 7 if pressed.
BUTTON 6: Subtitles off -->BUTTON 7 if pressed.
BUTTON 7: Resume movie
BUTTON 8: Main menu
The same as above, except when I click on the BUTTON 1, 2 or 3, the highlight will be ON on the 1st button. --> IT SHOULD HIGHLIGHT THE BUTTON 4 (1st subtitles)!
The same goes for BUTTON 3,4,5. If I click on one of them, it will highlight the BUTTON 1 --> IT SHOULD HIGHLIGHT THE BUTTON 7!
The problem only occurs in the transition menu (PGC 10). When the PGC 10 ended, it will goes to PGC 11 - everything is working on this PGC.
Brief:
What I want to do is to have the same commands executed (with the extra button added) in my modified menu as in the original one.
Can anyone help me to solve this puzzle?
Thanks.