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_main.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  3.4 KB  |  198 lines

  1. // ================
  2. // BATTLEZONE SHELL
  3. // ================
  4.  
  5. Exec("bzshell_cam_move.cfg");
  6.  
  7. //
  8. // CREATE SHELL MAIN PAGE
  9. //
  10. CreateControl("ShellMain", "WINDOW")
  11. {
  12.     // inherit root window's dimensions
  13.     Geometry("PARENTWIDTH", "PARENTHEIGHT");
  14.  
  15.     // set window style
  16.     Style("TRANSPARENT");
  17.  
  18.     //
  19.     // create the "logout" button
  20.     //
  21.     CreateControl("Logout", "BUTTON")
  22.     {
  23.         ColorGroup("MAGENTA");
  24.  
  25.         Geometry("LEFT", "TOP");
  26.         Position(20, 30);
  27.         Size(120, 0);
  28.         BorderSize(10);
  29.         BevelSize(5);
  30.         TabSize(80, 10);
  31.         Style("ROLLOVER", "OUTLINE");
  32.         Projector(0);
  33.         Title("Logout");
  34.         TitleFont("MEDIUM");
  35.         Cursor("Highlight");
  36.         NotifyParent("Button::Press", "Logout");
  37.     }
  38.  
  39.     //
  40.     // create the "single player" button
  41.     //
  42.     CreateControl("Single", "BUTTON")
  43.     {
  44.         Geometry("LEFT", "TOP");
  45.         Position(20, 70);
  46.         Size(200, 0);
  47.         BorderSize(10);
  48.         BevelSize(5);
  49.         TabSize(150, 10);
  50.         Title("Single Player");
  51.         TitleFont("MEDIUM");
  52.         Style("ROLLOVER", "OUTLINE");
  53.         Projector(7);
  54.         Cursor("Highlight");
  55.         NotifyParent("Button::Press", "Single");
  56.     }
  57.  
  58.     //
  59.     // create the "multi player" button
  60.     //
  61.     CreateControl("Multi", "BUTTON")
  62.     {
  63.         Geometry("LEFT", "TOP");
  64.         Position(20, 105);
  65.         Size(200, 0);
  66.         BorderSize(10);
  67.         BevelSize(5);
  68.         TabSize(150, 10);
  69.         Title("Multi Player");
  70.         TitleFont("MEDIUM");
  71.         Style("ROLLOVER", "OUTLINE");
  72.         Projector(7);
  73.         Cursor("Highlight");
  74.         NotifyParent("Button::Press", "Multi");
  75.     }
  76.  
  77.     //
  78.     // create the "instant action" button
  79.     //
  80.     CreateControl("Instant", "BUTTON")
  81.     {
  82.         Geometry("LEFT", "TOP");
  83.         Position(20, 140);
  84.         Size(200, 0);
  85.         BorderSize(10);
  86.         BevelSize(5);
  87.         TabSize(150, 10);
  88.         Title("Instant Action");
  89.         TitleFont("MEDIUM");
  90.         Style("ROLLOVER", "OUTLINE");
  91.         Projector(7);
  92.         Cursor("Highlight");
  93.         NotifyParent("Button::Press", "Instant");
  94.     }
  95.  
  96.     //
  97.     // create the "load game" button
  98.     //
  99.     CreateControl("Load", "BUTTON")
  100.     {
  101.         Geometry("LEFT", "TOP");
  102.         Position(20, 175);
  103.         Size(200, 0);
  104.         BorderSize(10);
  105.         BevelSize(5);
  106.         TabSize(150, 10);
  107.         Title("Load Game");
  108.         TitleFont("MEDIUM");
  109.         Style("ROLLOVER", "OUTLINE");
  110.         Projector(7);
  111.         Cursor("Highlight");
  112.         NotifyParent("Button::Press", "Load");
  113.     }
  114.  
  115.     //
  116.     // create the "game options" button
  117.     //
  118.     CreateControl("Options", "BUTTON")
  119.     {
  120.         Geometry("LEFT", "TOP");
  121.         Position(20, 210);
  122.         Size(200, 0);
  123.         BorderSize(10);
  124.         BevelSize(5);
  125.         TabSize(150, 10);
  126.         Title("Game Options");
  127.         TitleFont("MEDIUM");
  128.         Style("ROLLOVER", "OUTLINE");
  129.         Projector(7);
  130.         Cursor("Highlight");
  131.         NotifyParent("Button::Press", "Options");
  132.     }
  133.  
  134.     //
  135.     // handle the "single" event
  136.     //
  137.     OnEvent("Single")
  138.     {
  139.         FadeOut();
  140.         FadeIn("|ShellSingle");
  141.     }
  142.  
  143.     //
  144.     // handle the "multi" event
  145.     //
  146.     OnEvent("Multi")
  147.     {
  148.         FadeOut();
  149.         FadeIn("|ShellMulti");
  150.     }
  151.  
  152.     //
  153.     // handle the "instant" event
  154.     //
  155.     OnEvent("Instant")
  156.     {
  157.         Cmd("shell.instant.loadaction");
  158.         FadeOut();
  159.         FadeIn("|ShellInstant");
  160.     }
  161.  
  162.     //
  163.     // handle the "load" event
  164.     //
  165.     OnEvent("Load")
  166.     {
  167.         FadeOut();
  168.         FadeIn("|ShellLoad");
  169.     }
  170.  
  171.     //
  172.     // handle the "options" event
  173.     //
  174.     OnEvent("Options")
  175.     {
  176.         FadeOut();
  177.         FadeIn("|ShellOption");
  178.     }
  179.  
  180.     //
  181.     // handle the "Cineractive" event
  182.     //
  183.     OnEvent("cam_move")
  184.     {
  185.         FadeOut();
  186.         FadeIn("|cam_move");
  187.     }
  188.  
  189.     //
  190.     // handle the "logout" event
  191.     //
  192.     OnEvent("Logout")
  193.     {
  194.         FadeOut();
  195.         FadeIn("|ShellLogin");
  196.     }
  197. }
  198.