home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Battlezone II / Disk1 / data1.cab / Program_Executable_Files / data.pak / config_SHELL_bzshell_multi.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  3.8 KB  |  199 lines

  1. // ================
  2. // BATTLEZONE SHELL
  3. // ================
  4.  
  5.  
  6. Exec("bzshell_multi_select.cfg");
  7. Exec("bzshell_multi_option.cfg");
  8. Exec("bzshell_multi_clientoption.cfg");
  9. Exec("bzshell_multi_pilot.cfg");
  10. Exec("bzshell_multi_vehicle.cfg");
  11. Exec("bzshell_multi_chat.cfg");
  12. Exec("bzshell_multi_join.cfg");
  13. Exec("bzshell_multi_name.cfg");
  14. Exec("bzshell_multi_team.cfg");
  15.  
  16. //
  17. // CREATE SHELL MULTIPLAYER CONNECTION PAGE
  18. //
  19. CreateControl("ShellMulti", "WINDOW")
  20. {
  21.     // inherit root window's dimensions
  22.     Geometry("PARENTWIDTH", "PARENTHEIGHT");
  23.  
  24.     // set window style
  25.     Style("TRANSPARENT", "INERT");
  26.     //
  27.     // CREATE THE BUTTON WINDOW
  28.     //
  29.     CreateControl("BUTTONS", "WINDOW")
  30.     {
  31.         Geometry("TOP", "LEFT");
  32.         Style("LEFTTAB", "INERT");
  33.         ColorGroup("MAGENTA");
  34.         Position(20, 30);
  35.         Size(135, 120);
  36.         BorderSize(10);
  37.         BevelSize(5);
  38.         TabSize(100, 10);
  39.         Projector(6);
  40.         Title("Buttons");
  41.         TitleFont("MEDIUM");
  42.  
  43.         //
  44.         // create the "back" button
  45.         //
  46.         CreateControl("Back", "BUTTON")
  47.         {
  48.             //ColorGroup("MAGENTA");
  49.  
  50.             Geometry("LEFT", "TOP");
  51.             Position(10, 10);
  52.             Size(100, 0);
  53.             BorderSize(10);
  54.             BevelSize(5);
  55.             Font("SMALL");
  56.             JustifyText("CENTER");
  57.             Text("Main Menu");
  58.             Style("ROLLOVER", "OUTLINE");
  59.             //Projector(0);
  60.             Cursor("Highlight");
  61.             NotifyParent("Button::Press", "Back");
  62.         }
  63.  
  64.         //
  65.         // create the connection setup button
  66.         //
  67.         CreateControl("GameOptions", "BUTTON")
  68.         {
  69.             //ColorGroup("MAGENTA");
  70.             Geometry("LEFT", "TOP");
  71.             Position(10, 40);
  72.             Size(100, 0);
  73.             BorderSize(10);
  74.             BevelSize(5);
  75.             Font("SMALL");
  76.             JustifyText("CENTER");
  77.             Text("Play Settings");
  78.             Style("ROLLOVER", "RADIO", "OUTLINE");
  79.             //Projector(7);
  80.             Cursor("Highlight");
  81.             NotifyParent("Button::Select", "Options");
  82.         }
  83.  
  84.         //
  85.         // handle the "back" event
  86.         //
  87.         OnEvent("Back")
  88.         {
  89.             //            FadeOut();
  90.             FadeOut("|Communications");
  91.             FadeOut("|ShellMultiPilot");
  92.             FadeOut("|ShellMultiVehicle");
  93.             FadeOut("|ShellMultiJoin");
  94.             FadeOut("|ShellMulti");
  95.             FadeIn("|ShellMain");
  96.         }
  97.  
  98.         //
  99.         // handle the "options" event
  100.         //
  101.         OnEvent("Options")
  102.         {
  103.             FadeOut("|ShellMultiPilot");
  104.             FadeOut("|ShellMultiVehicle");
  105.             FadeOut("|ShellMultiJoin");
  106.             FadeOut("|Communications");
  107.     
  108.             FadeIn("|ShellOption");
  109.         }
  110.     }
  111.  
  112.     OnEvent("Control::Activate")
  113.     {
  114.         FadeIn("|ShellMultiJoin");
  115.         FadeIn("|ShellMulti");
  116.         Cmd("network.seton");
  117.     }
  118.  
  119.     OnEvent("Control::Deactivate")
  120.     {
  121.         Cmd("network.setoff");
  122.     }
  123.  
  124.     OnEvent("Control::StartFadeIn")
  125.     {
  126.         FadeIn("|ShellMultiJoin");
  127.     }
  128.  
  129.     OnEvent("Control::StartFadeOut")
  130.     {
  131.         FadeOut("|ShellMultiOption");
  132.         FadeOut("|ShellMultiClientOption");
  133.         FadeOut("|ShellMultiPilot");
  134.         FadeOut("|ShellMultiVehicle");
  135.         FadeOut("|ShellMultiJoin");
  136.         FadeOut("|ShellMultiTeam");
  137.     }
  138.  
  139.  
  140.     //
  141.     // handle the "signup" event
  142.     //
  143.     OnEvent("ChatEnter")
  144.     {
  145.         Cmd("network.chatline.entered");
  146.     }
  147.  
  148.     //
  149.     // handle the "connect" event
  150.     //
  151.     OnEvent("Connect")
  152.     {
  153.         FadeOut("|ShellMultiOption");
  154.         FadeOut("|ShellMultiClientOption");
  155.         FadeOut("|ShellMultiPilot");
  156.         FadeOut("|ShellMultiVehicle");
  157.         FadeOut("|ShellMultiJoin");
  158.     }
  159.  
  160.     //
  161.     // handle the join event
  162.     //
  163.     OnEvent("Join")
  164.     {
  165.         FadeOut("|ShellMultiOption");
  166.         FadeOut("|ShellMultiClientOption");
  167.         FadeOut("|ShellMultiPilot");
  168.         FadeIn("|ShellMultiJoin");
  169.         FadeIn("|ShellMultiVehicle");
  170.     }
  171.  
  172.     
  173.  
  174.     //
  175.     // handle the "pilot" event
  176.     //
  177.     OnEvent("Pilot")
  178.     {
  179.         FadeOut("|ShellMultiOption");
  180.         FadeOut("|ShellMultiClientOption");
  181.         FadeOut("|ShellMultiVehicle");
  182.         FadeOut("|ShellMultiJoin");
  183.         FadeIn("|ShellMultiPilot");
  184.     }
  185.  
  186.     //
  187.     // handle the "vehicle" event
  188.     //
  189.     OnEvent("Vehicle")
  190.     {
  191.         FadeOut("|ShellMultiOption");
  192.         FadeOut("|ShellMultiClientOption");
  193.         FadeOut("|ShellMultiPilot");
  194.         FadeOut("|ShellMultiJoin");
  195.         FadeIn("|ShellMultiVehicle");
  196.     }
  197. }
  198.  
  199.