<?xml version="1.0" ?>
<!DOCTYPE adsui SYSTEM "../../ui.dtd">
<adsui version="2.0">
 <PageInfo>
  <Title>
   Gradient map
  </Title>
 </PageInfo>
 <Fields>
  <StackPanel id="gradient_Appearance" label="Appearance" expanded="true">
    <ChooseList id="gradient_type"
                label="Gradient Type"
                isValueEnabled="true"
                tooltip="Specifies shape of the gradient, except for the Light and Camera types where the gradient shape is defined as a function of the camera or scene lighting. ">
      <Choice id="gradient_type_4corner" label="Linear asymmetrical" value="0"/>
      <Choice id="gradient_type_box" label="Box" value="1"/>
      <Choice id="gradient_type_diagonal" label="Diagonal" value="2"/>
      <Choice id="gradient_type_lighting" label="Light normal" value="3"/>
      <Choice id="gradient_type_linear" label="Linear" value="4"/>
      <Choice id="gradient_type_normal" label="Camera normal" value="6"/>
      <Choice id="gradient_type_pong" label="Pong" value="7"/>
      <Choice id="gradient_type_radial" label="Radial" value="8"/>
      <Choice id="gradient_type_spiral" label="Spiral" value="9"/>
      <Choice id="gradient_type_sweep" label="Sweep" value="10"/>
      <Choice id="gradient_type_tartan" label="Tartan" value="11"/>
    </ChooseList>
    <GradientControl id="gradient_gradientControl"
                     tooltip="Adds nodes by clicking in the gradient bar, and  deletes nodes by dragging them off the bar, or selecting them and hitting the delete key."/>
    <!--color1 here-->
    <!--color1 tooltip="Click the color box to display the Select Color dialog box for the currently selected gradient node or nodes." -->
    <!--<ChooseList id="gradient_interpolation"
                    label="Interpolation"
                    tooltip="Specifies the type of calculation for the intermediate values.  These affect all nodes on  the entire gradient.">
       <Choice id="gradient_inter_custom" label="Custom"/>
       <Choice id="gradient_inter_easein" label="Ease in"/>
       <Choice id="gradient_inter_easeinout" label="Ease in out"/>
       <Choice id="gradient_inter_easeout" label="Ease out"/>
       <Choice id="gradient_inter_linear" label="Linear"/>
       <Choice id="gradient_inter_solid" label="Solid"/>
     </ChooseList>-->
    <!--position here-->
    <!--position tooltip="Lets you enter a precise percentage  value for the gradient slider. " here-->
    <!--invert gradient here-->
    <!--invert gradient here tooltip="Inverts the nodes on the gradient, so that the first node becomes the last and the last one becomes the first. "-->
  </StackPanel>
  <StackPanel id="gradient_noise_amount"
              label="Noise"
              labelid="gradient_noise_panel_label" 
              orientation="Vertical"
              checkbox="true"
              checkonvalue="0.5"
              checkoffvalue="0">
   <ChooseList id="gradient_noise"
               label="Noise Type"
               labelid="gradient_noise_list_label" 
               tooltip="Displays the different methods to create the noise patterns: Regular, Fractal or Turbulence.">
    <Choice id="gradient_noise_regular" label="Regular"/>
    <Choice id="gradient_noise_fractal" label="Fractal"/>
    <Choice id="gradient_noise_turbulence" label="Turbulence"/>
   </ChooseList>
   <Float id="gradient_noise_amount"
          label="Amount"
          labelid="gradient_noise_slider_label" 
          min="0" max="1"
          precision="2"
          tooltip="When nonzero, a random noise effect is applied to the gradient, based on the interaction of the gradient ramp colors (and maps, if present). The higher this value, the greater the effect. Range= 0 to 1."/>
   <Float id="gradient_noise_size"
          label="Size"
          min="0" max="1000000000" forcenumeric="spinbox"
          tooltip="Sets the scale of the noise function. Smaller values give smaller chunks of noise."/>
   <Float id="gradient_noise_phase"
          label="Phase"
          min="0" max="1000000000"
          forcenumeric="spinbox"
          tooltip="Controls the speed of the animation of the noise function. A 3D noise function is used for the noise; the first two parameters are U and V and the third is phase."/>
   <Float id="gradient_noise_levels"
          label="Levels"
          min="1" max="10" forcenumeric="spinbox"
          tooltip="Sets the number of fractal iterations or turbulence (as a continuous function).">
    <Dependency id="gradient_noise_dependency"
	        on="gradient_noise"
                not="true"
	        requires="gradient_noise_regular"
		else="disable"/>
  </Float>
  </StackPanel>
  <StackPanel id="gradient_noise_threshold"
              label="Noise Threshold"
              orientation="Vertical"
              tooltip="Specify the Noise Threshold of the area represented by the image above.">
   <Float id="gradient_noise_low"
          label="Low"
          min="0" max="1"
          tooltip="Adjusts the low noise threshold. When the noise value is above the Low threshold and below the High threshold, the dynamic range is stretched to fill 0 to 1. This causes a smaller discontinuity at the threshold transition and produces less potential aliasing."
          forcenumeric="spinbox"/>
   <Float id="gradient_noise_high"
          tooltip="Adjusts the high threshold. Range = 0 to 1."
          label="High"
          min="0" max="1" forcenumeric="spinbox"/>
   <Float id="gradient_noise_smooth"
          label="Smooth"
          tooltip="Adjusts the noise smoothness. Range = 0 to 1."
          min="0" max="1" forcenumeric="spinbox"/>
  </StackPanel>
  <!--position here-->
  <StackPanel id="gradient_transforms_group"
              label="Transforms" orientation="Vertical" expanded="true">
   <!--hook the correct transform property ids up when Protein code is ready-->
   <Boolean id="texture_LinkTextureTransforms"
            label="Link texture transforms"
            tooltip="When this setting is enabled, all changes made to the Position, Scale, and Repeat settings of this attribute will be propagated to all other attributes within the material that use a texture."/>
   <StackPanel id="gradient_position"
               label="Position"
               orientation="Vertical"
               expanded="true">
     <SampleSize id="texture_RealWorldOffsetX"
                 label="Offset"
                 rightlabel="X"
                 type="offset"
                 tooltip="Moves the starting point of the map along the X axis."/>
     <SampleSize id="texture_RealWorldOffsetY"
                 label=""
                 rightlabel="Y"
                 type="offset"
                 tooltip="Moves the starting point of the map along the Y axis."/>
     <ParamLock id="texture_OffsetLock"
                tooltip="Constrains the offset. When the X offset is changed, the Y offset is changed by the same amount."
                topParamLock="texture_RealWorldOffsetX"
                bottomParamLock="texture_RealWorldOffsetY" />
    <Angle id="texture_WAngle"
           label="Rotation"
           min="0.0" max="360.0"
           tooltip="Rotates the map from 0 degrees to 360 degrees. "/>
   </StackPanel>
   <StackPanel id="gradient_scale_group"
               label="Scale" orientation="Vertical" expanded="true">
        <SampleSize id="texture_RealWorldScaleX"
                    label="Sample Size"
                    rightlabel="Width"
                    notifyImageOnChange="true"      
                    min="0.01"
                    type="scale"
                    tooltip="Specifies the horizontal scaling for procedural maps on materials. This functionality is only available on  Checker, Gradient, and Tiles."/>

        <SampleSize id="texture_RealWorldScaleY"
                    label=""
                    rightlabel="Height"
                    notifyImageOnChange="true"      
                    min="0.01"
                    type="scale"
                    tooltip="Specifies the vertical scaling for procedural maps on materials. This functionality is only available on  Checker, Gradient, and Tiles."/>
        <ParamLock id="texture_ScaleLock"
                   tooltip="Locks the aspect ratio of the map. When the height or width value is changed, the other value changes as needed to maintain the aspect ratio."
                   topParamLock="texture_RealWorldScaleX"
                   bottomParamLock="texture_RealWorldScaleY" />
   </StackPanel>
   <StackPanel id="gradient_Repeat"
               label="Repeat"
               orientation="Vertical"
               expanded="true">
     <Boolean id="texture_URepeat"
              label="Horizontal"
              tooltip="Adjusts the tiling of the map along the X axis. None controls the map to not be tiled within the material. Tile causes the map to be tiled within the material."
              usedropdown="true"
              onlabel="Tile"
              offlabel="None"/>
     <Boolean id="texture_VRepeat"
              label="Vertical"
              tooltip="Adjusts the tiling of the map along the Y axis. None controls the map to not be tiled within the material. Tile causes the map to be tiled within the material."
              usedropdown="true"
              onlabel="Tile"
              offlabel="None"/>
   </StackPanel>
  </StackPanel>
 </Fields>
</adsui>
