home *** CD-ROM | disk | FTP | other *** search
- // =================
- // BATTLEZONE EDITOR
- // =================
-
- Exec("bzeditor_camera.cfg");
-
- //
- // CREATE EDITOR MENU BAR
- //
- CreateControl("EditMenu", "WINDOW")
- {
- Pos(105, 0);
- Size(535, 30);
-
- ColorGroup("BACKGROUND");
-
- //
- // create the height editor button
- //
- CreateControl("Height", "BUTTON")
- {
- Pos(10, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Height");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(0);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Height");
- }
-
- //
- // create the color editor button
- //
- CreateControl("Color", "BUTTON")
- {
- Pos(80, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Color");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(1);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Color");
- }
-
- //
- // create the texture editor button
- //
- CreateControl("Texture", "BUTTON")
- {
- Pos(150, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Texture");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(2);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Texture");
- }
-
- //
- // create the water editor button
- //
- CreateControl("Water", "BUTTON")
- {
- Pos(220, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Water");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(3);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Water");
- }
-
- //
- // create the environment editor button
- //
- CreateControl("Environ", "BUTTON")
- {
- Pos(290, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Environ");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(4);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Environ");
- }
-
- //
- // create the object editor button
- //
- CreateControl("Object", "BUTTON")
- {
- Pos(360, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Object");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(5);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Object");
- }
-
- //
- // create the path editor button
- //
- CreateControl("Path", "BUTTON")
- {
- Pos(430, 10);
- Size(55, 10);
- BorderSize(5);
- BevelSize(5);
- Font("TINY");
- Text("Path");
- Style("ROLLOVER", "RADIO", "OUTLINE");
- Value(6);
- UseVar("editor.page");
-
- NotifyParent("Button::Select", "Path");
- }
-
- // handle activation event
- OnEvent("Control::Activate")
- {
- Cmd("editor.page 0");
- Activate("|EditHeight");
- Activate("|EditCamera");
- }
-
- // handle deactivation event
- OnEvent("Control::Deactivate")
- {
- Deactivate("|EditCamera");
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
- }
-
- // handle the "height" event
- OnEvent("Height")
- {
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
-
- Activate("|EditHeight");
- }
-
- // handle the "color" event
- OnEvent("Color")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
-
- Activate("|EditColor");
- }
-
- // handle the "texture" event
- OnEvent("Texture")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
-
- Activate("|EditTexture");
- }
-
- // handle the "water" event
- OnEvent("Water")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
-
- Activate("|EditWater");
- }
-
- // handle the "environ" event
- OnEvent("Environ")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditObject");
- Deactivate("|EditPath");
- Deactivate("|ObjectListBox");
-
- Activate("|EditEnviron");
- }
-
- // handle the "object" event
- OnEvent("Object")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditPath");
-
- Activate("|EditObject");
- Deactivate("|ObjectListBox.VehicleList");
- Deactivate("|ObjectListBox.BuildingList");
- Deactivate("|ObjectListBox.EnvironmentList");
- Deactivate("|ObjectListBox.PowerUpList");
-
- }
-
- // handle the "path" event
- OnEvent("Path")
- {
- Deactivate("|EditHeight");
- Deactivate("|EditColor");
- Deactivate("|EditTexture");
- Deactivate("|EditWater");
- Deactivate("|EditEnviron");
- Deactivate("|EditObject");
- Deactivate("|ObjectListBox");
-
-
- Activate("|EditPath");
- }
- }
-