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_EDITOR_bzeditor.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  5.2 KB  |  268 lines

  1. // =================
  2. // BATTLEZONE EDITOR
  3. // =================
  4.  
  5. Exec("bzeditor_camera.cfg");
  6.  
  7. //
  8. // CREATE EDITOR MENU BAR
  9. //
  10. CreateControl("EditMenu", "WINDOW")
  11. {
  12.     Pos(105, 0);
  13.     Size(535, 30);
  14.  
  15.     ColorGroup("BACKGROUND");
  16.  
  17.     //
  18.     // create the height editor button
  19.     //
  20.     CreateControl("Height", "BUTTON")
  21.     {
  22.         Pos(10, 10);
  23.         Size(55, 10);
  24.         BorderSize(5);
  25.         BevelSize(5);
  26.         Font("TINY");
  27.         Text("Height");
  28.         Style("ROLLOVER", "RADIO", "OUTLINE");
  29.         Value(0);
  30.         UseVar("editor.page");
  31.  
  32.         NotifyParent("Button::Select", "Height");
  33.     }
  34.  
  35.     //
  36.     // create the color editor button
  37.     //
  38.     CreateControl("Color", "BUTTON")
  39.     {
  40.         Pos(80, 10);
  41.         Size(55, 10);
  42.         BorderSize(5);
  43.         BevelSize(5);
  44.         Font("TINY");
  45.         Text("Color");
  46.         Style("ROLLOVER", "RADIO", "OUTLINE");
  47.         Value(1);
  48.         UseVar("editor.page");
  49.  
  50.         NotifyParent("Button::Select", "Color");
  51.     }
  52.  
  53.     //
  54.     // create the texture editor button
  55.     //
  56.     CreateControl("Texture", "BUTTON")
  57.     {
  58.         Pos(150, 10);
  59.         Size(55, 10);
  60.         BorderSize(5);
  61.         BevelSize(5);
  62.         Font("TINY");
  63.         Text("Texture");
  64.         Style("ROLLOVER", "RADIO", "OUTLINE");
  65.         Value(2);
  66.         UseVar("editor.page");
  67.  
  68.         NotifyParent("Button::Select", "Texture");
  69.     }
  70.  
  71.     //
  72.     // create the water editor button
  73.     //
  74.     CreateControl("Water", "BUTTON")
  75.     {
  76.         Pos(220, 10);
  77.         Size(55, 10);
  78.         BorderSize(5);
  79.         BevelSize(5);
  80.         Font("TINY");
  81.         Text("Water");
  82.         Style("ROLLOVER", "RADIO", "OUTLINE");
  83.         Value(3);
  84.         UseVar("editor.page");
  85.  
  86.         NotifyParent("Button::Select", "Water");
  87.     }
  88.  
  89.     //
  90.     // create the environment editor button
  91.     //
  92.     CreateControl("Environ", "BUTTON")
  93.     {
  94.         Pos(290, 10);
  95.         Size(55, 10);
  96.         BorderSize(5);
  97.         BevelSize(5);
  98.         Font("TINY");
  99.         Text("Environ");
  100.         Style("ROLLOVER", "RADIO", "OUTLINE");
  101.         Value(4);
  102.         UseVar("editor.page");
  103.  
  104.         NotifyParent("Button::Select", "Environ");
  105.     }
  106.  
  107.     //
  108.     // create the object editor button
  109.     //
  110.     CreateControl("Object", "BUTTON")
  111.     {
  112.         Pos(360, 10);
  113.         Size(55, 10);
  114.         BorderSize(5);
  115.         BevelSize(5);
  116.         Font("TINY");
  117.         Text("Object");
  118.         Style("ROLLOVER", "RADIO", "OUTLINE");
  119.         Value(5);
  120.         UseVar("editor.page");
  121.  
  122.         NotifyParent("Button::Select", "Object");
  123.     }
  124.  
  125.     //
  126.     // create the path editor button
  127.     //
  128.     CreateControl("Path", "BUTTON")
  129.     {
  130.         Pos(430, 10);
  131.         Size(55, 10);
  132.         BorderSize(5);
  133.         BevelSize(5);
  134.         Font("TINY");
  135.         Text("Path");
  136.         Style("ROLLOVER", "RADIO", "OUTLINE");
  137.         Value(6);
  138.         UseVar("editor.page");
  139.  
  140.         NotifyParent("Button::Select", "Path");
  141.     }
  142.  
  143.     // handle activation event
  144.     OnEvent("Control::Activate")
  145.     {
  146.         Cmd("editor.page 0");
  147.         Activate("|EditHeight");
  148.         Activate("|EditCamera");
  149.     }
  150.  
  151.     // handle deactivation event
  152.     OnEvent("Control::Deactivate")
  153.     {
  154.         Deactivate("|EditCamera");
  155.         Deactivate("|EditHeight");
  156.         Deactivate("|EditColor");
  157.         Deactivate("|EditTexture");
  158.         Deactivate("|EditWater");
  159.         Deactivate("|EditEnviron");
  160.         Deactivate("|EditObject");
  161.         Deactivate("|EditPath");
  162.         Deactivate("|ObjectListBox");
  163.     }
  164.  
  165.     // handle the "height" event
  166.     OnEvent("Height")
  167.     {
  168.         Deactivate("|EditColor");
  169.         Deactivate("|EditTexture");
  170.         Deactivate("|EditWater");
  171.         Deactivate("|EditEnviron");
  172.         Deactivate("|EditObject");
  173.         Deactivate("|EditPath");
  174.         Deactivate("|ObjectListBox");
  175.  
  176.         Activate("|EditHeight");
  177.     }
  178.  
  179.     // handle the "color" event
  180.     OnEvent("Color")
  181.     {
  182.         Deactivate("|EditHeight");
  183.         Deactivate("|EditTexture");
  184.         Deactivate("|EditWater");
  185.         Deactivate("|EditEnviron");
  186.         Deactivate("|EditObject");
  187.         Deactivate("|EditPath");
  188.         Deactivate("|ObjectListBox");
  189.  
  190.         Activate("|EditColor");
  191.     }
  192.  
  193.     // handle the "texture" event
  194.     OnEvent("Texture")
  195.     {
  196.         Deactivate("|EditHeight");
  197.         Deactivate("|EditColor");
  198.         Deactivate("|EditWater");
  199.         Deactivate("|EditEnviron");
  200.         Deactivate("|EditObject");
  201.         Deactivate("|EditPath");
  202.         Deactivate("|ObjectListBox");
  203.  
  204.         Activate("|EditTexture");
  205.     }
  206.  
  207.     // handle the "water" event
  208.     OnEvent("Water")
  209.     {
  210.         Deactivate("|EditHeight");
  211.         Deactivate("|EditColor");
  212.         Deactivate("|EditTexture");
  213.         Deactivate("|EditEnviron");
  214.         Deactivate("|EditObject");
  215.         Deactivate("|EditPath");
  216.         Deactivate("|ObjectListBox");
  217.  
  218.         Activate("|EditWater");
  219.     }
  220.  
  221.     // handle the "environ" event
  222.     OnEvent("Environ")
  223.     {
  224.         Deactivate("|EditHeight");
  225.         Deactivate("|EditColor");
  226.         Deactivate("|EditTexture");
  227.         Deactivate("|EditWater");
  228.         Deactivate("|EditObject");
  229.         Deactivate("|EditPath");
  230.         Deactivate("|ObjectListBox");
  231.  
  232.         Activate("|EditEnviron");
  233.     }
  234.  
  235.     // handle the "object" event
  236.     OnEvent("Object")
  237.     {
  238.         Deactivate("|EditHeight");
  239.         Deactivate("|EditColor");
  240.         Deactivate("|EditTexture");
  241.         Deactivate("|EditWater");
  242.         Deactivate("|EditEnviron");
  243.         Deactivate("|EditPath");
  244.  
  245.         Activate("|EditObject");
  246.         Deactivate("|ObjectListBox.VehicleList");
  247.         Deactivate("|ObjectListBox.BuildingList");
  248.         Deactivate("|ObjectListBox.EnvironmentList");
  249.         Deactivate("|ObjectListBox.PowerUpList");
  250.  
  251.     }
  252.  
  253.     // handle the "path" event
  254.     OnEvent("Path")
  255.     {
  256.         Deactivate("|EditHeight");
  257.         Deactivate("|EditColor");
  258.         Deactivate("|EditTexture");
  259.         Deactivate("|EditWater");
  260.         Deactivate("|EditEnviron");
  261.         Deactivate("|EditObject");
  262.         Deactivate("|ObjectListBox");
  263.  
  264.  
  265.         Activate("|EditPath");
  266.     }
  267. }
  268.