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 / missions_demo01_demo01_intro.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  4.8 KB  |  231 lines

  1. // =====================
  2. // BATTLEZONE DEMO INTRO
  3. // =====================
  4.  
  5.  
  6. //
  7. // CREATE options GRAPHIC OPTIONS PAGE
  8. //
  9. CreateControl("Demo01Intro", "WINDOW")
  10. {
  11.     Geom("PARENTWIDTH", "PARENTHEIGHT");
  12.     Style("TRANSPARENT", "INERT");
  13.     
  14.     //
  15.     // create vehicle selection list
  16.     //
  17.     CreateControl("Intro", "WINDOW")
  18.     {
  19.         Geometry("HCENTRE", "TOP");
  20.         Style("INERT", "OUTLINE");
  21.         Position(0, 20);
  22.         Size(550, 90);
  23.         BorderSize(10);
  24.         BevelSize(5);
  25.  
  26.         CreateControl("Title", "STATIC")
  27.         {
  28.             Position(0, 0);
  29.             Size(550, 10);
  30.             Style("TRANSPARENT");
  31.             Font("MEDIUM");
  32.             Text("Welcome to the Battlezone II Playable Demo.");
  33.         }
  34.                 
  35.         CreateControl("Text", "LISTBOX")
  36.         {
  37.             Style("TRANSPARENT", "NOSELECTION", "INERT");
  38.             ItemConfig()
  39.             {
  40.                 Style("TRANSPARENT");
  41.             }
  42.             Position(0, 20);
  43.             Size(550, 70);
  44.             CellSize(500, 10);
  45.             Font("SMALL");
  46.             Cursor("Highlight");
  47.  
  48.             AddTextItem("Battlezone II is the only game that lets you:");
  49.             AddTextItem("");
  50.             AddTextItem("* BUILD... Construct a forward base to support the war effort");
  51.             AddTextItem("* DRIVE... Pilot a variety of hovering, tracked, and walking vehicles");
  52.             AddTextItem("* KILL... Eradicate the alien menace with an arsenal of powerful weapons");
  53.             AddTextItem("");
  54.             AddTextItem("And then team up with (or against) your friends.");
  55.         }
  56.     }
  57.  
  58.     //
  59.     // create the play button
  60.     //
  61.     CreateControl("Play", "BUTTON")
  62.     {
  63.         ColorGroup("MAGENTA");
  64.         Geometry("RIGHT", "BOTTOM");
  65.         Position(-20, -20);
  66.         Size(95, 0);
  67.         BorderSize(10);
  68.         BevelSize(5);
  69.         Style("ROLLOVER", "OUTLINE");
  70.         Font("MEDIUM");
  71.         Text("Play");
  72.         Cursor("Highlight");
  73.         NotifyParent("Button::Press", "Play");
  74.     }
  75.  
  76.     //
  77.     // create the Quit button
  78.     //
  79.     CreateControl("Quit", "BUTTON")
  80.     {
  81.         ColorGroup("MAGENTA");
  82.         Geometry("LEFT", "BOTTOM");
  83.         Position(20, -20);
  84.         Size(95, 0);
  85.         BorderSize(10);
  86.         BevelSize(5);
  87.         Style("ROLLOVER", "OUTLINE");
  88.         Font("MEDIUM");
  89.         Text("Quit");
  90.         Cursor("Highlight");
  91.         NotifyParent("Button::Press", "Quit");
  92.     }
  93.  
  94.     //
  95.     // create command option window
  96.     //
  97.     CreateControl("Command", "WINDOW")
  98.     {
  99.         Position(20, 150);
  100.         Size(250, 90);
  101.         BorderSize(10);
  102.         BevelSize(5);
  103.         Style("INERT", "OUTLINE");
  104.  
  105.         CreateControl("Text", "LISTBOX")
  106.         {
  107.             Style("TRANSPARENT", "NOSELECTION", "INERT");
  108.             ItemConfig()
  109.             {
  110.                 Style("TRANSPARENT");
  111.             }
  112.             Position(0, 0);
  113.             Size(250, 30);
  114.             CellSize(250, 10);
  115.             Font("SMALL");
  116.             AddTextItem("This demo can be played two ways.");
  117.             AddTextItem("You can choose to command wingmen,");
  118.             AddTextItem("or leave the computer in charge.");
  119.         }
  120.  
  121.         CreateControl("Title", "STATIC")
  122.         {
  123.             Position(0, 50);
  124.             Size(250, 10);
  125.             Style("TRANSPARENT");
  126.             Font("MEDIUM");
  127.             JustifyText("LEFT");
  128.             Text("Take Command?");
  129.         }
  130.  
  131.         CreateControl("No", "BUTTON")
  132.         {
  133.             ColorGroup("LISTBOX");
  134.             Position(5, 70);
  135.             Size(65, 5);
  136.             BorderSize(5);
  137.             BevelSize(3);
  138.             Style("ROLLOVER", "RADIO");
  139.             Font("SMALL");
  140.             Text("No");
  141.             Cursor("Highlight");
  142.             UseVar("script.mission.command");
  143.             Value(0);
  144.         }
  145.  
  146.         CreateControl("Yes", "BUTTON")
  147.         {
  148.             ColorGroup("LISTBOX");
  149.             Position(85, 70);
  150.             Size(65, 5);
  151.             BorderSize(5);
  152.             BevelSize(3);
  153.             Style("ROLLOVER", "RADIO");
  154.             Font("SMALL");
  155.             Text("Yes");
  156.             Cursor("Highlight");
  157.             UseVar("script.mission.command");
  158.             Value(1);
  159.         }
  160.     }
  161.  
  162.     //
  163.     // create the vehicle info window
  164.     //
  165.     CreateControl("Vehicle", "WINDOW")
  166.     {
  167.         Geometry("RIGHT");
  168.         Position(-20, 150);
  169.         Size(200, 250);
  170.         BorderSize(10);
  171.         BevelSize(5);
  172.         Style("INERT", "OUTLINE");
  173.  
  174.         CreateControl("View", "VIEWER")
  175.         {
  176.             ColorGroup("BACKGROUND");
  177.             Position(0, 0);
  178.             Size(200, 100);
  179.             BorderSize(5);
  180.             BevelSize(3);
  181.             //UseVar("script.demo.vehicle");
  182.             SetModelName("ivtank00.xsi");
  183.             SetAmbientColor(1.0, 1.0, 1.0);
  184.             SetDiffuseColor(1.0, 1.0, 1.0);
  185.             SetDiffuseDir(2.0, -5.0, 1.0);
  186.             SetModelDistance(50.0);
  187.             SetModelInclination(-30.0);
  188.             SetModelRotation(60.0);
  189.         }
  190.  
  191.         CreateControl("Text", "LISTBOX")
  192.         {
  193.             Position(0, 120);
  194.             Size(200, 120);
  195.             CellSize(200, 10);
  196.             Style("TRANSPARENT", "NOSELECTION", "INERT");
  197.             ItemConfig()
  198.             {
  199.                 Style("TRANSPARENT");
  200.             }
  201.             Font("SMALL");
  202.  
  203.             AddTextItem("Standard Controls");
  204.             AddTextItem(" ");
  205.             AddTextItem("W - Forward");
  206.             AddTextItem("S - Reverse");
  207.             AddTextItem("A - Strafe Left");
  208.             AddTextItem("D - Strafe Right");
  209.             AddTextItem("E - Jump");
  210.             AddTextItem("H - Hop Out");
  211.             AddTextItem("Mouse to Steer");
  212.             AddTextItem("L Mouse - Fire");
  213.             AddTextItem("R Mouse - Cycle Weapon");
  214.             AddTextItem("O - Review Orders");
  215.         }
  216.     }
  217.  
  218.  
  219.     OnEvent("Play") 
  220.     {
  221.         FadeOut();
  222.         Cmd("script.mission.state 2");
  223.         Cmd("options.play.saves");
  224.     }
  225.  
  226.     OnEvent("Quit")
  227.     {
  228.         Cmd("game.exit");
  229.     }
  230. }
  231.