home *** CD-ROM | disk | FTP | other *** search
- public short PHOTO_NH = 0;
- public short PHOTO_ESB = 1;
- public short PHOTO_RJ = 2;
-
- static short photo_frames[3] = {
- 25,8,23
- };
-
- //-----------------------
- //
- // start_up()
- //
- //-----------------------
-
- short start_up()
- {
- short i,k,error;
-
- //
- // Set forward, back, and control icons
- //
-
- icon_reset();
-
-
- icon_add( ICON_CONTROL, 0 );
- icon_add( ICON_UP, 0 );
-
-
- if (current_submenu > 0) {
- icon_add( ICON_BACK, 0 );
- button_set( "back", 0,0 );
- }
- else {
- button_set( "back", 1,0 );
- }
-
-
- if (current_submenu < photo_frames[current_menu]-1) {
- icon_add( ICON_FORWARD, 0 );
- button_set( "forward", 0,0 );
- }
- else {
- button_set( "forward", 1,0 );
- }
-
- //
- // If not returning from control panel...
- //
-
- if (!pan_quit_flag) {
-
- //
- // Restart background animation
- //
-
- if (current_menu==PHOTO_NH ) error = photo_show_nh ( current_submenu );
- else if (current_menu==PHOTO_ESB) error = photo_show_esb( current_submenu );
- else if (current_menu==PHOTO_RJ ) error = photo_show_rj ( current_submenu );
- }
- pan_quit_flag = FALSE;
- }
-
- //---------------------------
- //
- // photo_show_nh()
- //
- // Show Appropriate
- // photos for new hope
- //
- //---------------------------
-
- static short photo_show_nh( short submenu )
- {
- if (submenu == 0) anim_start("data\photos\nh\ps_01_1a.nut",ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\photos\nh\ps_02_07.nut",ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\photos\nh\ps_03_19.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\photos\nh\ps_04_32.nut",ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\photos\nh\ps_05_14.nut",ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\photos\nh\ps_05_22.nut",ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\photos\nh\ps_06_11.nut",ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\photos\nh\ps_07_20.nut",ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\photos\nh\ps_08_21.nut",ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\photos\nh\ps_09_12.nut",ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\photos\nh\ps_11_9a.nut",ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\photos\nh\ps_12_23.nut",ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\photos\nh\ps_12_36.nut",ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\photos\nh\ps_13_35.nut",ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\photos\nh\ps_17_31.nut",ONCE,NEWPAL);
- else if (submenu ==15) anim_start("data\photos\nh\ps_17_35.nut",ONCE,NEWPAL);
- else if (submenu ==16) anim_start("data\photos\nh\ps_21_04.nut",ONCE,NEWPAL);
- else if (submenu ==17) anim_start("data\photos\nh\ps_23_27.nut",ONCE,NEWPAL);
- else if (submenu ==18) anim_start("data\photos\nh\ps_24_1a.nut",ONCE,NEWPAL);
- else if (submenu ==19) anim_start("data\photos\nh\ps_24_28.nut",ONCE,NEWPAL);
- else if (submenu ==20) anim_start("data\photos\nh\ps_28_27.nut",ONCE,NEWPAL);
- else if (submenu ==21) anim_start("data\photos\nh\ps_34_12.nut",ONCE,NEWPAL);
- else if (submenu ==22) anim_start("data\photos\nh\ps_43_36.nut",ONCE,NEWPAL);
- else if (submenu ==23) anim_start("data\photos\nh\ps_45_11.nut",ONCE,NEWPAL);
- else if (submenu ==24) anim_start("data\photos\nh\r_01_6.nut" ,ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-
- //---------------------------
- //
- // photo_show_esb()
- //
- // Show Appropriate
- // photos for empire
- //
- //---------------------------
-
- static short photo_show_esb( short submenu )
- {
- if (submenu == 0) anim_start("data\photos\esb\ps_00_22.nut",ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\photos\esb\ps_06_35.nut",ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\photos\esb\ps_35_31.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\photos\esb\ps_07_31.nut",ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\photos\esb\ps_27_E.nut",ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\photos\esb\ps_19_29.nut",ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\photos\esb\ps_20_15.nut",ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\photos\esb\ps_25_20.nut",ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-
- //---------------------------
- //
- // photo_show_rj()
- //
- // Show Appropriate
- // photos for jedi
- //
- //---------------------------
-
- static short photo_show_rj( short submenu )
- {
- if (submenu == 0) anim_start("data\photos\rj\ps_01_11.nut",ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\photos\rj\ps_03_3a.nut",ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\photos\rj\ps_05_29.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\photos\rj\ps_07_20.nut",ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\photos\rj\ps_08_32.nut",ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\photos\rj\ps_08_25.nut",ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\photos\rj\ps_10_06.nut",ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\photos\rj\ps_09_2a.nut",ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\photos\rj\ps_12_24.nut",ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\photos\rj\ps_11_03.nut",ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\photos\rj\ps_13_22.nut",ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\photos\rj\ps_14_22.nut",ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\photos\rj\ps_16_19.nut",ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\photos\rj\ps_20_18.nut",ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\photos\rj\ps_25_15.nut",ONCE,NEWPAL);
- else if (submenu ==15) anim_start("data\photos\rj\ps_25_2a.nut",ONCE,NEWPAL);
- else if (submenu ==16) anim_start("data\photos\rj\ps_27_08.nut",ONCE,NEWPAL);
- else if (submenu ==17) anim_start("data\photos\rj\ps_28_9a.nut",ONCE,NEWPAL);
- else if (submenu ==18) anim_start("data\photos\rj\ps_31_16.nut",ONCE,NEWPAL);
- else if (submenu ==19) anim_start("data\photos\rj\ps_38_30.nut",ONCE,NEWPAL);
- else if (submenu ==20) anim_start("data\photos\rj\ps_51_35.nut",ONCE,NEWPAL);
- else if (submenu ==21) anim_start("data\photos\rj\ps_64_03.nut",ONCE,NEWPAL);
- else if (submenu ==22) anim_start("data\photos\rj\ps_65_08.nut",ONCE,NEWPAL);
- return 0;
- }
-