(form "00268" (size 75  21)
  (heading "Lighting")
  
  (field "useSpotLight" (position 24 7) (display_length 2) (input allowed)
    (max_length 2)
    (default "Y")
    (value_in "Y" "N")
  )

  (field "illumination_cone" (position 24  8) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.1) (high_bound 180)
    (format real_8)
  )

  (field "sharpness_cone" (position 24  9) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.1) (high_bound 180)
    (format real_8)
  )

  (field "spot_colour" (position 24  10) (display_length 16) (input allowed)
    (format colour) (dependency (value "useSpotLight") == "Y") 
    (null disallowed) (max_length 128)
  )

  (field "offset_angle" (position 24  11) (display_length 8) (input allowed)
    (null disallowed) (dependency (value "useSpotLight") == "Y") 
    (max_length 16) (low_bound 0.0) (high_bound 45)
    (format real_8)
  )
 
  (field "useDirectionalLights" (position 24 12) (display_length 2) (input allowed)
    (max_length 2)
    (default "on")
    (value_in "on" "off")
  )

  (field "light_y1" (position  8  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3)
  )


  (field "light_x1" (position 18  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_z1" (position 28  14) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on")
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_colour1" (position 38  14) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on") 
    (null allowed) (max_length 32))
  
  (field "light_y2" (position  8  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_x2" (position 18  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_z2" (position 28  15) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_colour2" (position 38  15) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on")
    (null allowed) (max_length 32))
  
  (field "light_y3" (position  8  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_x3" (position 18  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_z3" (position 28  16) (display_length  8) (input allowed)
    (translate upper) (dependency (value "useDirectionalLights") == "on") 
    (format real_8) (null disallowed) (max_length 16)
    (decimals 3))
  
  (field "light_colour3" (position 38  16) (display_length 32) (input allowed)
    (format colour)
    (translate lower) (dependency (value "useDirectionalLights") == "on") 
    (null allowed) (max_length 32))

  (field "rendering" (position 24  21) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "N" "G" "P")
  )

  (field "edgesLighting" (position 24  23) (display_length 1) (input allowed)
    (translate upper) (null disallowed) (max_length 1)
    (value_in "Y" "N")
  )

  (field "brightness" (position 24  25) (display_length 10) (input allowed)
    (translate upper) (null disallowed) (max_length 20)
  )

  (default_buttons)
)
