home *** CD-ROM | disk | FTP | other *** search
- public short CRW_NEWHOPE = 0;
- public short CRW_STARWARS = 1;
- public short CRW_EMPIRE = 2;
- public short CRW_JEDI = 3;
-
- static short crw_frames[4] = {
- 24,5,13,17
- };
-
- //-----------------------
- //
- // do_loop()
- //
- //-----------------------
-
- short do_loop()
- {
- short base;
-
- while (anim_query()) sleep();
-
- if (current_submenu < 100) {
- if (current_menu==CRW_STARWARS) base = 100;
- else if (current_menu==CRW_EMPIRE ) base = 110;
- else if (current_menu==CRW_JEDI ) base = 130;
- else if (current_menu==CRW_NEWHOPE ) base = 150;
-
- print_tres( base + current_submenu, 378,10, 1,0, 0 );
- }
- }
-
- //-----------------------
- //
- // 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 && current_submenu < 100) {
- icon_add( ICON_BACK, 0 );
- button_set( "back", 0,0 );
- }
- else {
- button_set( "back", 1,0 );
- }
-
-
- if (current_submenu < crw_frames[current_menu]-1 && current_submenu < 100) {
- 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==CRW_STARWARS) error = crw_show_sw( current_submenu );
- else if (current_menu==CRW_EMPIRE ) error = crw_show_em( current_submenu );
- else if (current_menu==CRW_JEDI ) error = crw_show_jd( current_submenu );
- else if (current_menu==CRW_NEWHOPE ) error = crw_show_nh( current_submenu );
-
- if (error==0) {
- button_set( "Old Photo", SHOW,0 );
- } else {
- button_set( "Old Photo", HIDE,0 );
- }
- }
-
- pan_quit_flag = FALSE;
-
- }
-
- //---------------------------
- //
- // crw_show_nh()
- //
- //---------------------------
-
- static short crw_show_nh( short submenu )
- {
- if (submenu == 8) anim_start("data\crew\new_hope\Paul_H.nut" ,ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\crew\new_hope\Tom_K.nut" ,ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\crew\new_hope\John_K.nut" ,ONCE,NEWPAL);
- else if (submenu ==23) anim_start("data\crew\new_hope\Steve_W.nut" ,ONCE,NEWPAL);
-
- else {
-
- if (submenu == 0) anim_start("data\crew\new_hope\CharlieB.nut" ,ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\crew\new_hope\John_B.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\crew\new_hope\David_D.nut" ,ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\crew\new_hope\Pat_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\crew\new_hope\Jon_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\crew\new_hope\Joe_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\crew\new_hope\Howard_G.nut" ,ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\crew\new_hope\Ed_H.nut" ,ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\crew\new_hope\Joe_L.nut" ,ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\crew\new_hope\Stu_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\crew\new_hope\Rich_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\crew\new_hope\Mark_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==15) anim_start("data\crew\new_hope\Dennis_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==16) anim_start("data\crew\new_hope\MichaelO.nut" ,ONCE,NEWPAL);
- else if (submenu ==17) anim_start("data\crew\new_hope\Lorne_P.nut" ,ONCE,NEWPAL);
- else if (submenu ==18) anim_start("data\crew\new_hope\Josh_P.nut" ,ONCE,NEWPAL);
- else if (submenu ==19) anim_start("data\crew\new_hope\Alex_S.nut" ,ONCE,NEWPAL);
- else if (submenu ==20) anim_start("data\crew\new_hope\Yusei_U.nut" ,ONCE,NEWPAL);
- else if (submenu ==21) anim_start("data\crew\new_hope\Bruce_V.nut" ,ONCE,NEWPAL);
- else if (submenu ==22) anim_start("data\crew\new_hope\Tim_W.nut" ,ONCE,NEWPAL);
-
- else if (submenu ==108) anim_start("data\crew\new_hope\Paul_H2.nut" ,ONCE,NEWPAL);
- else if (submenu ==109) anim_start("data\crew\new_hope\Tom_K2.nut" ,ONCE,NEWPAL);
- else if (submenu ==110) anim_start("data\crew\new_hope\John_K2.nut" ,ONCE,NEWPAL);
- else if (submenu ==123) anim_start("data\crew\new_hope\Steve_W2.nut" ,ONCE,NEWPAL);
- else return -1;
-
- return 1;
- }
- return 0;
- }
-
- //---------------------------
- //
- // crw_show_sw()
- //
- //---------------------------
-
- static short crw_show_sw( short submenu )
- {
- if (submenu == 0) anim_start("data\crew\starwars\Steve_G.nut" ,ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\crew\starwars\Paul_H.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\crew\empire\Dennis_M.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\crew\starwars\Bruce_N.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\crew\starwars\Lorne_P.nut" ,ONCE,NEWPAL);
-
- else {
- if (submenu ==100) anim_start("data\crew\starwars\Steve_G2.nut" ,ONCE,NEWPAL);
- else if (submenu ==101) anim_start("data\crew\starwars\Paul_H2.nut" ,ONCE,NEWPAL);
- else if (submenu ==102) anim_start("data\crew\empire\DennisM2.nut",ONCE,NEWPAL);
- else if (submenu ==103) anim_start("data\crew\starwars\Bruce_N2.nut" ,ONCE,NEWPAL);
- else if (submenu ==104) anim_start("data\crew\starwars\Lorne_P2.nut" ,ONCE,NEWPAL);
- // else if (submenu == 8) anim_start("data\crew\starwars\Steve_G3.nut" ,ONCE,NEWPAL);
- else return -1;
-
- return 1;
- }
-
- return 0;
- }
-
- //---------------------------
- //
- // crw_show_em()
- //
- //---------------------------
-
- static short crw_show_em( short submenu )
- {
- if (submenu == 0) anim_start("data\crew\empire\CharlieB.nut",ONCE,NEWPAL);
- else if (submenu == 1) anim_start("data\crew\empire\Patty_B.nut" ,ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\crew\empire\MichaelB.nut",ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\crew\empire\Dave_C.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\crew\empire\Dick_D.nut" ,ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\crew\empire\Ed_H.nut" ,ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\crew\empire\James_L.nut" ,ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\crew\empire\Dennis_M.nut",ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\crew\empire\Mike_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\crew\empire\Udo_P.nut" ,ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\crew\empire\Tom_R.nut" ,ONCE,NEWPAL);
-
- else {
- if (submenu == 5) anim_start("data\crew\empire\Bob_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\crew\empire\Ken_S.nut" ,ONCE,NEWPAL);
-
- else if (submenu ==100) anim_start("data\crew\empire\CharliB2.nut",ONCE,NEWPAL);
- else if (submenu ==101) anim_start("data\crew\empire\Patty_B2.nut",ONCE,NEWPAL);
- else if (submenu ==102) anim_start("data\crew\empire\Mike_B2.nut" ,ONCE,NEWPAL);
- else if (submenu ==103) anim_start("data\crew\empire\Dave_C2.nut" ,ONCE,NEWPAL);
- else if (submenu ==104) anim_start("data\crew\empire\Dick_D2.nut" ,ONCE,NEWPAL);
- else if (submenu ==106) anim_start("data\crew\empire\Ed_H2.nut" ,ONCE,NEWPAL);
- else if (submenu ==107) anim_start("data\crew\empire\James_L2.nut",ONCE,NEWPAL);
- else if (submenu ==108) anim_start("data\crew\empire\DennisM2.nut",ONCE,NEWPAL);
- else if (submenu ==110) anim_start("data\crew\empire\Mike_M2.nut" ,ONCE,NEWPAL);
- else if (submenu ==111) anim_start("data\crew\empire\Udo_P2.nut" ,ONCE,NEWPAL);
- else if (submenu ==112) anim_start("data\crew\empire\Tom_R2.nut" ,ONCE,NEWPAL);
-
- else return -1;
-
- return 1;
- }
-
- return 0;
- }
-
- //---------------------------
- //
- // crw_show_jd()
- //
- //---------------------------
-
- static short crw_show_jd( short submenu )
- {
- if (submenu == 0) anim_start("data\crew\jedi\BarbaraA.nut",ONCE,NEWPAL);
- else if (submenu == 2) anim_start("data\crew\jedi\Marty_B.nut" ,ONCE,NEWPAL);
- else if (submenu == 3) anim_start("data\crew\jedi\Chris_E.nut" ,ONCE,NEWPAL);
- else if (submenu == 4) anim_start("data\crew\jedi\Scott_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 5) anim_start("data\crew\jedi\Bob_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 6) anim_start("data\crew\jedi\Pat_F.nut" ,ONCE,NEWPAL);
- else if (submenu == 8) anim_start("data\crew\jedi\Bill_G.nut" ,ONCE,NEWPAL);
- else if (submenu == 9) anim_start("data\crew\jedi\Mike_G.nut" ,ONCE,NEWPAL);
- else if (submenu ==10) anim_start("data\crew\jedi\Bob_H.nut" ,ONCE,NEWPAL);
- else if (submenu ==12) anim_start("data\crew\jedi\Bill_K.nut" ,ONCE,NEWPAL);
- else if (submenu ==13) anim_start("data\crew\jedi\Kim_M.nut" ,ONCE,NEWPAL);
- else if (submenu ==14) anim_start("data\crew\jedi\Randy_O.nut" ,ONCE,NEWPAL);
- else if (submenu ==15) anim_start("data\crew\jedi\Mike_O.nut" ,ONCE,NEWPAL);
- else if (submenu ==16) anim_start("data\crew\jedi\Pat_S.nut" ,ONCE,NEWPAL);
-
- else {
-
- if (submenu == 1) anim_start("data\crew\jedi\Lance_B.nut" ,ONCE,NEWPAL);
- else if (submenu == 7) anim_start("data\crew\jedi\Joe_F.nut" ,ONCE,NEWPAL);
- else if (submenu ==11) anim_start("data\crew\jedi\Paula_K.nut" ,ONCE,NEWPAL);
-
- else if (submenu ==100) anim_start("data\crew\jedi\BarbA2.nut" ,ONCE,NEWPAL);
- else if (submenu ==102) anim_start("data\crew\jedi\Marty_B2.nut",ONCE,NEWPAL);
- else if (submenu ==103) anim_start("data\crew\jedi\Chris_E2.nut",ONCE,NEWPAL);
- else if (submenu ==104) anim_start("data\crew\jedi\Scott_F2.nut",ONCE,NEWPAL);
- else if (submenu ==105) anim_start("data\crew\jedi\Bob_F2.nut" ,ONCE,NEWPAL);
- else if (submenu ==106) anim_start("data\crew\jedi\Pat_F2.nut" ,ONCE,NEWPAL);
- else if (submenu ==108) anim_start("data\crew\jedi\Bill_G2.nut" ,ONCE,NEWPAL);
- else if (submenu ==109) anim_start("data\crew\jedi\Mike_G2.nut" ,ONCE,NEWPAL);
- else if (submenu ==110) anim_start("data\crew\jedi\Bob_H2.nut" ,ONCE,NEWPAL);
- else if (submenu ==112) anim_start("data\crew\jedi\Bill_K2.nut" ,ONCE,NEWPAL);
- else if (submenu ==113) anim_start("data\crew\jedi\Kim_M2.nut" ,ONCE,NEWPAL);
- else if (submenu ==114) anim_start("data\crew\jedi\Randy_O2.nut",ONCE,NEWPAL);
- else if (submenu ==115) anim_start("data\crew\jedi\Mike_O2.nut" ,ONCE,NEWPAL);
- else if (submenu ==116) anim_start("data\crew\jedi\Pat_S2.nut" ,ONCE,NEWPAL);
-
- else return -1;
-
- return 1;
- }
-
- return 0;
- }
-