home *** CD-ROM | disk | FTP | other *** search
- // =====================
- // BATTLEZONE DEMO INTRO
- // =====================
-
-
- //
- // CREATE options GRAPHIC OPTIONS PAGE
- //
- CreateControl("Demo01Intro", "WINDOW")
- {
- Geom("PARENTWIDTH", "PARENTHEIGHT");
- Style("TRANSPARENT", "INERT");
-
- //
- // create vehicle selection list
- //
- CreateControl("Intro", "WINDOW")
- {
- Geometry("HCENTRE", "TOP");
- Style("INERT", "OUTLINE");
- Position(0, 20);
- Size(550, 90);
- BorderSize(10);
- BevelSize(5);
-
- CreateControl("Title", "STATIC")
- {
- Position(0, 0);
- Size(550, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- Text("Welcome to the Battlezone II Playable Demo.");
- }
-
- CreateControl("Text", "LISTBOX")
- {
- Style("TRANSPARENT", "NOSELECTION", "INERT");
- ItemConfig()
- {
- Style("TRANSPARENT");
- }
- Position(0, 20);
- Size(550, 70);
- CellSize(500, 10);
- Font("SMALL");
- Cursor("Highlight");
-
- AddTextItem("Battlezone II is the only game that lets you:");
- AddTextItem("");
- AddTextItem("* BUILD... Construct a forward base to support the war effort");
- AddTextItem("* DRIVE... Pilot a variety of hovering, tracked, and walking vehicles");
- AddTextItem("* KILL... Eradicate the alien menace with an arsenal of powerful weapons");
- AddTextItem("");
- AddTextItem("And then team up with (or against) your friends.");
- }
- }
-
- //
- // create the play button
- //
- CreateControl("Play", "BUTTON")
- {
- ColorGroup("MAGENTA");
- Geometry("RIGHT", "BOTTOM");
- Position(-20, -20);
- Size(95, 0);
- BorderSize(10);
- BevelSize(5);
- Style("ROLLOVER", "OUTLINE");
- Font("MEDIUM");
- Text("Play");
- Cursor("Highlight");
- NotifyParent("Button::Press", "Play");
- }
-
- //
- // create the Quit button
- //
- CreateControl("Quit", "BUTTON")
- {
- ColorGroup("MAGENTA");
- Geometry("LEFT", "BOTTOM");
- Position(20, -20);
- Size(95, 0);
- BorderSize(10);
- BevelSize(5);
- Style("ROLLOVER", "OUTLINE");
- Font("MEDIUM");
- Text("Quit");
- Cursor("Highlight");
- NotifyParent("Button::Press", "Quit");
- }
-
- //
- // create command option window
- //
- CreateControl("Command", "WINDOW")
- {
- Position(20, 150);
- Size(250, 90);
- BorderSize(10);
- BevelSize(5);
- Style("INERT", "OUTLINE");
-
- CreateControl("Text", "LISTBOX")
- {
- Style("TRANSPARENT", "NOSELECTION", "INERT");
- ItemConfig()
- {
- Style("TRANSPARENT");
- }
- Position(0, 0);
- Size(250, 30);
- CellSize(250, 10);
- Font("SMALL");
- AddTextItem("This demo can be played two ways.");
- AddTextItem("You can choose to command wingmen,");
- AddTextItem("or leave the computer in charge.");
- }
-
- CreateControl("Title", "STATIC")
- {
- Position(0, 50);
- Size(250, 10);
- Style("TRANSPARENT");
- Font("MEDIUM");
- JustifyText("LEFT");
- Text("Take Command?");
- }
-
- CreateControl("No", "BUTTON")
- {
- ColorGroup("LISTBOX");
- Position(5, 70);
- Size(65, 5);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("No");
- Cursor("Highlight");
- UseVar("script.mission.command");
- Value(0);
- }
-
- CreateControl("Yes", "BUTTON")
- {
- ColorGroup("LISTBOX");
- Position(85, 70);
- Size(65, 5);
- BorderSize(5);
- BevelSize(3);
- Style("ROLLOVER", "RADIO");
- Font("SMALL");
- Text("Yes");
- Cursor("Highlight");
- UseVar("script.mission.command");
- Value(1);
- }
- }
-
- //
- // create the vehicle info window
- //
- CreateControl("Vehicle", "WINDOW")
- {
- Geometry("RIGHT");
- Position(-20, 150);
- Size(200, 250);
- BorderSize(10);
- BevelSize(5);
- Style("INERT", "OUTLINE");
-
- CreateControl("View", "VIEWER")
- {
- ColorGroup("BACKGROUND");
- Position(0, 0);
- Size(200, 100);
- BorderSize(5);
- BevelSize(3);
- //UseVar("script.demo.vehicle");
- SetModelName("ivtank00.xsi");
- SetAmbientColor(1.0, 1.0, 1.0);
- SetDiffuseColor(1.0, 1.0, 1.0);
- SetDiffuseDir(2.0, -5.0, 1.0);
- SetModelDistance(50.0);
- SetModelInclination(-30.0);
- SetModelRotation(60.0);
- }
-
- CreateControl("Text", "LISTBOX")
- {
- Position(0, 120);
- Size(200, 120);
- CellSize(200, 10);
- Style("TRANSPARENT", "NOSELECTION", "INERT");
- ItemConfig()
- {
- Style("TRANSPARENT");
- }
- Font("SMALL");
-
- AddTextItem("Standard Controls");
- AddTextItem(" ");
- AddTextItem("W - Forward");
- AddTextItem("S - Reverse");
- AddTextItem("A - Strafe Left");
- AddTextItem("D - Strafe Right");
- AddTextItem("E - Jump");
- AddTextItem("H - Hop Out");
- AddTextItem("Mouse to Steer");
- AddTextItem("L Mouse - Fire");
- AddTextItem("R Mouse - Cycle Weapon");
- AddTextItem("O - Review Orders");
- }
- }
-
-
- OnEvent("Play")
- {
- FadeOut();
- Cmd("script.mission.state 2");
- Cmd("options.play.saves");
- }
-
- OnEvent("Quit")
- {
- Cmd("game.exit");
- }
- }
-