home *** CD-ROM | disk | FTP | other *** search
- //
- // Finals Code!
- //
-
- static short fin_frames[4] = {
- 9,24,15,6
- };
-
- //-----------------------
- //
- // 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 < fin_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==MENU_TATOOINE) error = fin_show_ta( current_submenu );
- else if (current_menu==MENU_MOSEISLY) error = fin_show_me( current_submenu );
- else if (current_menu==MENU_JABBAHAN) error = fin_show_jb( current_submenu );
- else if (current_menu==MENU_FINALBAT) error = fin_show_fb( current_submenu );
- }
- pan_quit_flag = FALSE;
- }
-
- //---------------------------
- //
- // fin_show_ta()
- //
- // Show Appropriate
- // storyboards for tatooine
- //
- //---------------------------
-
- static short fin_show_ta( short submenu )
- {
- if (submenu == 0) anim_start("data\tatooine\final\desfina.nut",ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\tatooine\final\desfinb.nut",ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\tatooine\final\desfinc.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\tatooine\final\desfind.nut",ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\tatooine\final\desfine.nut",ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\tatooine\final\desfinf.nut",ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\tatooine\final\desfing.nut",ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\tatooine\final\desfinh.nut",ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\tatooine\final\desfini.nut",ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-
- //---------------------------
- //
- // fin_show_me()
- //
- // Show Appropriate
- // finals for moseisly
- //
- //---------------------------
-
- static short fin_show_me( short submenu )
- {
- if (submenu == 0) anim_start("data\moseisly\final\mosfina.nut" ,ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\moseisly\final\mosfinb.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\moseisly\final\mosfinc.nut" ,ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\moseisly\final\mosfind.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\moseisly\final\mosfine.nut" ,ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\moseisly\final\mosfinf.nut" ,ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\moseisly\final\mosfing.nut" ,ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\moseisly\final\mosfinh.nut" ,ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\moseisly\final\mosfini.nut" ,ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\moseisly\final\mosfinj.nut" ,ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\moseisly\final\mosfink.nut" ,ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\moseisly\final\mosfinl.nut" ,ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\moseisly\final\mosfinm.nut" ,ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\moseisly\final\mosfinn.nut" ,ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\moseisly\final\mosfino.nut" ,ONCE,NEWPAL);
- else if (submenu ==15) anim_start("data\moseisly\final\mosfinp.nut" ,ONCE,NEWPAL);
- else if (submenu ==16) anim_start("data\moseisly\final\mosfinq.nut" ,ONCE,NEWPAL);
- else if (submenu ==17) anim_start("data\moseisly\final\mosfinr.nut" ,ONCE,NEWPAL);
- else if (submenu ==18) anim_start("data\moseisly\final\mosfins.nut" ,ONCE,NEWPAL);
- else if (submenu ==19) anim_start("data\moseisly\final\mosfint.nut" ,ONCE,NEWPAL);
- else if (submenu ==20) anim_start("data\moseisly\final\mosfinu.nut" ,ONCE,NEWPAL);
- else if (submenu ==21) anim_start("data\moseisly\final\mosfinv.nut" ,ONCE,NEWPAL);
- else if (submenu ==22) anim_start("data\moseisly\final\mosfinw.nut" ,ONCE,NEWPAL);
- else if (submenu ==23) anim_start("data\moseisly\final\mosfinx.nut" ,ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-
- //---------------------------
- //
- // fin_show_jb()
- //
- // Show Appropriate
- // finals for jabba/han
- //
- //---------------------------
-
- static short fin_show_jb( short submenu )
- {
- if (submenu == 0) anim_start("data\jabbahan\final\jabfina.nut" ,ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\jabbahan\final\jabfinb.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\jabbahan\final\jabfinc.nut" ,ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\jabbahan\final\jabfind.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\jabbahan\final\jabfine.nut" ,ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\jabbahan\final\jabfinf.nut" ,ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\jabbahan\final\jabfing.nut" ,ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\jabbahan\final\jabfinh.nut" ,ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\jabbahan\final\jabfini.nut" ,ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\jabbahan\final\jabfinj.nut" ,ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\jabbahan\final\jabfink.nut" ,ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\jabbahan\final\jabfinl.nut" ,ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\jabbahan\final\jabfinm.nut" ,ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\jabbahan\final\jabfinn.nut" ,ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\jabbahan\final\jabfino.nut" ,ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-
- //---------------------------
- //
- // fin_show_fb()
- //
- // Show Appropriate
- // finals for finalbat
- //
- //---------------------------
-
- static short fin_show_fb( short submenu )
- {
- if (submenu == 0) anim_start("data\finalbat\final\fbfina.nut" ,ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\finalbat\final\fbfinb.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\finalbat\final\fbfinc.nut" ,ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\finalbat\final\fbfind.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\finalbat\final\fbfine.nut" ,ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\finalbat\final\fbfinf.nut" ,ONCE,NEWPAL);
- else return 1;
- return 0;
- }
-