<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<panel
 border="true"
 follows="left|top|right|bottom"
 height="438"
 label="Graphics"
 layout="topleft"
 left="102"
 name="Display panel"
 top="1"
 width="517">

  <text
    follows="top|left|right"
    height="16"
    layout="topleft"
    left="5"
    top="5"
    width="100">
      Preset in use:
  </text>

  <text
    follows="top|left|right"
    height="16"
    layout="topleft"
    left_delta="110"
    name="preset_text"
    top="5"
    width="320">
      (None)
  </text>

  <text
    type="string"
    length="1"
    follows="left|top"
    height="12"
    layout="topleft"
    left="10"
    name="QualitySpeed"
    top_delta="35" 
    width="400">
      Quality &amp; speed:
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    halign="center"
    height="12"
    layout="topleft"
    left="118"
    name="ShadersPrefText"
    top_delta="0"
    width="80">
       Low
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    halign="center"
    height="12"
    layout="topleft"
    left_delta="87"
    name="ShadersPrefText2"
    top_delta="0"
    width="80">
       Mid
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    halign="center"
    height="12"
    layout="topleft"
    left_delta="87"
    name="ShadersPrefText3"
    top_delta="0"
    width="80">
       High
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    halign="center"
    height="12"
    layout="topleft"
    left_delta="85"
    name="ShadersPrefText4"
    top_delta="0"
    width="80">
       Ultra
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    halign="right"
    height="12"
    layout="topleft"
    left="65"
    name="FasterText"
    top_pad="4"
    width="80">
      Faster
  </text>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="12"
    layout="topleft"
    left_delta="360"
    name="BetterText"
    top_delta="0"
    width="100">
      Better
  </text>
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left="158"
    name="LowGraphicsDivet"
    top_delta="-2"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="LowMidGraphicsDivet"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="MidGraphicsDivet"
    top_delta="0"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="MidHighGraphicsDivet"
    top_delta="0"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="HighGraphicsDivet"
    top_delta="0"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="HighUltraGraphicsDivet"
    top_delta="0"
    width="2" />
  <icon
    color="DkGray"
    height="14"
    image_name="Rounded_Square"
    layout="topleft"
    left_pad="41"
    name="UltraGraphicsDivet"
    top_delta="0"
    width="2" />
  <slider
    control_name="RenderQualityPerformance"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="1"
    initial_value="0"
    layout="topleft"
    left="150"
    max_val="6"
    name="QualityPerformanceSelection"
    show_text="false"
    top_delta="-2"
    width="275">
    <slider.commit_callback
      function="Pref.QualityPerformance"/>
  </slider>

<!-- This block shows Basic Settings -->

  <slider
    control_name="RenderFarClip"
    decimal_digits="0"
    follows="left|top"
    height="16"
    increment="8"
    initial_value="160"
    label="Draw distance:"
    label_width="90"
    layout="topleft"
    left="30"
    min_val="64"
    max_val="512"
    name="DrawDistance"
    top_delta="40"
    width="330" />
  <text
    type="string"
    length="1"
    follows="left|top"
    height="12"
    layout="topleft"
    left_delta="330"
    name="DrawDistanceMeterText2"
    top_delta="0"
    width="128">
     m
  </text>

  <button
  height="23"
  label="Automatic adjustments settings"
  layout="topleft"
  left="30"
  name="AutoAdjustmentsButton"
  top_delta="30"
  width="200">
    <button.commit_callback
      function="Pref.AutoAdjustments"/>
  </button>

    <text
      type="string"
      length="1"
      follows="left|top"
      height="16"
      layout="topleft"
      left="30"
      top_delta="42"
      width="128"
      name="AvatarComplexityModeLabel"
      text_readonly_color="LabelDisabledColor">
        Avatar display:
    </text>
    <combo_box
     control_name="RenderAvatarComplexityMode"
     height="23"
     layout="topleft"
     left_delta="130"
     top_delta="-4"
     name="AvatarComplexityMode"
     width="150">
        <combo_box.item
         label="Limit by complexity"
         name="0"
         value="0"/>
        <combo_box.item
         label="Always show friends"
         name="1"
         value="1"/>
        <combo_box.item
         label="Only show friends"
         name="2"
         value="2"/>
    </combo_box>
  
  <slider
    control_name="IndirectMaxComplexity"
    tool_tip="Controls at what point a visually complex avatar is drawn as a JellyDoll"
    follows="left|top"
    height="16"
    initial_value="101"
    increment="1"
    label="Avatar maximum complexity:"
    label_width="165"
    layout="topleft"
    left="30"
    min_val="1"
    max_val="101"
    name="IndirectMaxComplexity"
    show_text="false"
    top_delta="28"
    width="300">
    <slider.commit_callback
      function="Pref.UpdateIndirectMaxComplexity"
      parameter="IndirectMaxComlexityText" />
  </slider>
  <text
    type="string"
    length="1"
    follows="left|top"
    height="16"
    layout="topleft"
    top_delta="0"
    left_delta="304"
    text_readonly_color="LabelDisabledColor"
    name="IndirectMaxComplexityText"
    width="65">
       0
  </text>

  <button
    height="23"
    label="Exceptions..."
    layout="topleft"
    left="48"
    name="RenderExceptionsButton"
    top_delta="24"
    width="100">
    <button.commit_callback
      function="Pref.RenderExceptions"/>
  </button>

  <slider
    control_name="RenderExposure"
    decimal_digits="1"
    follows="left|top"
    height="16"
    increment="0.1"
    initial_value="160"
    label="Brightness (exposure)"
    label_width="145"
    layout="topleft"
    left="30"
    min_val="0.5"
    max_val="1.5"
    name="RenderExposure"
    show_text="true"
    top_pad="14"
    width="260">
  </slider>

<!-- End of Basic Settings block -->

  <button
    follows="top|left"
    height="23"
    label="Save settings as a preset..."
    layout="topleft"
    left="10"
    name="PrefSaveButton"
    top="310"
    width="200">
    <button.commit_callback
      function="Pref.PrefSave"
      parameter="graphic" />
  </button>

  <button
    follows="top|left"
    height="23"
    label="Load preset..."
    layout="topleft"
    left_pad="10"
    name="PrefLoadButton"
    top_delta="0"
    width="115">
    <button.commit_callback
      function="Pref.PrefLoad"
	  parameter="graphic"/>
  </button>

  <button
    follows="top|left"
    height="23"
    label="Delete preset..."
    layout="topleft"
    left_pad="10"
    name="PrefDeleteButton"
    top_delta="0"
    width="115">
    <button.commit_callback
      function="Pref.PrefDelete"
	  parameter="graphic"/>
  </button>

  <button
    follows="top|left"
    height="23"
    label="Reset to recommended settings"
    layout="topleft"
    left="10"
    name="Defaults"
    top_delta="65"
    width="210">
    <button.commit_callback
      function="Pref.HardwareDefaults" />
  </button>

  <button
    follows="top|left"
    height="23"
    label="Advanced Settings..."
    layout="topleft"
    left_pad="10"
    name="AdvancedSettings"
    top_delta="0"
    width="200">
    <button.commit_callback
      function="Pref.Advanced"
      parameter="advanced" />
  </button>

</panel>