home *** CD-ROM | disk | FTP | other *** search
- // ================
- // BATTLEZONE SHELL
- // ================
-
- Exec("bzshell_cam_move.cfg");
-
- //
- // CREATE SHELL MAIN PAGE
- //
- CreateControl("ShellMain", "WINDOW")
- {
- // inherit root window's dimensions
- Geometry("PARENTWIDTH", "PARENTHEIGHT");
-
- // set window style
- Style("TRANSPARENT");
-
- //
- // create the "logout" button
- //
- CreateControl("Logout", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("LEFT", "TOP");
- Position(20, 30);
- Size(120, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(80, 10);
- Style("ROLLOVER", "OUTLINE");
- Projector(0);
- Title("Logout");
- TitleFont("MEDIUM");
- Cursor("Highlight");
- NotifyParent("Button::Press", "Logout");
- }
-
- //
- // create the "single player" button
- //
- CreateControl("Single", "BUTTON")
- {
- Geometry("LEFT", "TOP");
- Position(20, 70);
- Size(200, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Title("Single Player");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Single");
- }
-
- //
- // create the "multi player" button
- //
- CreateControl("Multi", "BUTTON")
- {
- Geometry("LEFT", "TOP");
- Position(20, 105);
- Size(200, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Title("Multi Player");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Multi");
- }
-
- //
- // create the "instant action" button
- //
- CreateControl("Instant", "BUTTON")
- {
- Geometry("LEFT", "TOP");
- Position(20, 140);
- Size(200, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Title("Instant Action");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Instant");
- }
-
- //
- // create the "load game" button
- //
- CreateControl("Load", "BUTTON")
- {
- Geometry("LEFT", "TOP");
- Position(20, 175);
- Size(200, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Title("Load Game");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Load");
- }
-
- //
- // create the "game options" button
- //
- CreateControl("Options", "BUTTON")
- {
- Geometry("LEFT", "TOP");
- Position(20, 210);
- Size(200, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(150, 10);
- Title("Game Options");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(7);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Options");
- }
-
- //
- // handle the "single" event
- //
- OnEvent("Single")
- {
- FadeOut();
- FadeIn("|ShellSingle");
- }
-
- //
- // handle the "multi" event
- //
- OnEvent("Multi")
- {
- FadeOut();
- FadeIn("|ShellMulti");
- }
-
- //
- // handle the "instant" event
- //
- OnEvent("Instant")
- {
- Cmd("shell.instant.loadaction");
- FadeOut();
- FadeIn("|ShellInstant");
- }
-
- //
- // handle the "load" event
- //
- OnEvent("Load")
- {
- FadeOut();
- FadeIn("|ShellLoad");
- }
-
- //
- // handle the "options" event
- //
- OnEvent("Options")
- {
- FadeOut();
- FadeIn("|ShellOption");
- }
-
- //
- // handle the "Cineractive" event
- //
- OnEvent("cam_move")
- {
- FadeOut();
- FadeIn("|cam_move");
- }
-
- //
- // handle the "logout" event
- //
- OnEvent("Logout")
- {
- FadeOut();
- FadeIn("|ShellLogin");
- }
- }
-