<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<panel
 border="true"
 follows="left|top|right|bottom"
 height="408"
 label="Graphics"
 layout="topleft"
 left="102"
 name="Display panel"
 top="1"
 width="517">
    <text
     type="string"
     length="1"
     follows="left|top"
     height="12"
     layout="topleft"
     left="30"
     name="UI Size:"
     top="10"
     width="300">
        UI size:
    </text>
    <slider
     can_edit_text="true"
     control_name="UIScaleFactor"
     decimal_digits="2"
     follows="left|top"
     height="15"
     increment="0.025"
     initial_value="1"
     layout="topleft"
     left_delta="52"
     max_val="1.4"
     min_val="0.75"
     name="ui_scale_slider"
     top_pad="2"
     width="180" />
    <text
     type="string"
     length="1"
     follows="left|top"
     height="12"
     layout="topleft"
     left="30"
     name="QualitySpeed"
     top_pad="4"
     width="400">
        Quality and speed:
    </text>
    <text
     type="string"
     length="1"
     follows="left|top"
     halign="right"
     height="12"
     layout="topleft"
     left="35"
     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="0.12 0.12 0.12 1"
     height="14"
     image_name="rounded_square.tga"
     layout="topleft"
     left="128"
     name="LowGraphicsDivet"
     top_delta="-2"
     width="2" />
    <icon
     color="0.12 0.12 0.12 1"
     height="14"
     image_name="rounded_square.tga"
     layout="topleft"
     left_pad="83"
     name="MidGraphicsDivet"
     top_delta="0"
     width="2" />
    <icon
     color="0.12 0.12 0.12 1"
     height="14"
     image_name="rounded_square.tga"
     layout="topleft"
     left_pad="85"
     name="HighGraphicsDivet"
     top_delta="0"
     width="2" />
    <icon
     color="0.12 0.12 0.12 1"
     height="14"
     image_name="rounded_square.tga"
     layout="topleft"
     left_pad="83"
     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="120"
     max_val="3"
     name="QualityPerformanceSelection"
     show_text="false"
     top_delta="-2"
     width="275">
	 <slider.commit_callback
			function="Pref.QualityPerformance"/>
	</slider>		
    <text
     type="string"
     length="1"
     follows="left|top"
     halign="center"
     height="12"
     layout="topleft"
     left="88"
     name="ShadersPrefText"
     top_delta="20"
     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>
    <panel
	 visiblity_control="ShowAdvancedGraphicsSettings"
     border="false"
	 follows="top|left"
     height="260"
     label="CustomGraphics"
     layout="topleft"
     left="5"
     name="CustomGraphics Panel"
     top="124"
     width="485">
		<text
		type="string"
		length="1"
		follows="left|top"
		height="12"
		layout="topleft"
		left_delta="5"
		name="ShadersText"
		top="3"
		width="128">
			Shaders:
		</text>
		<check_box
		control_name="RenderObjectBump"
		height="16"
		initial_value="true"
		label="Bump mapping and shiny"
		layout="topleft"
		left_delta="0"
		name="BumpShiny"
		top_pad="7"
		width="256" />
		<check_box
		control_name="VertexShaderEnable"
		height="16"
		initial_value="true"
		label="Basic shaders"
		layout="topleft"
		left_delta="0"
		name="BasicShaders"
		tool_tip="Disabling this option may prevent some graphics card drivers from crashing"
		top_pad="1"
		width="315">
			<check_box.commit_callback
			function="Pref.VertexShaderEnable" />
		</check_box>
		<check_box
		control_name="WindLightUseAtmosShaders"
		height="16"
		initial_value="true"
		label="Atmospheric shaders"
		layout="topleft"
		left_delta="0"
		name="WindLightUseAtmosShaders"
		top_pad="1"
		width="256">
			<check_box.commit_callback
			function="Pref.VertexShaderEnable" />
		</check_box>
		<check_box
		control_name="RenderWaterReflections"
		height="16"
		initial_value="true"
		label="Water reflections"
		layout="topleft"
		left_delta="0"
		name="Reflections"
		top_pad="1"
		width="256">
			<check_box.commit_callback
			function="Pref.VertexShaderEnable" />
		</check_box>
		<text
		type="string"
		length="1"
		follows="left|top"
		height="12"
		layout="topleft"
		left_delta="0"
		name="ReflectionDetailText"
		top_pad="7"
		width="128">
			Reflection detail:
		</text>
		<radio_group
		control_name="RenderReflectionDetail"
		draw_border="false"
		height="70"
		layout="topleft"
		left_delta="-2"
		name="ReflectionDetailRadio"
		top_pad="3"
		width="321">
			<radio_item
			height="16"
			label="Terrain and trees"
			layout="topleft"
			left="3"
			name="0"
			top="3"
			width="315" />
			<radio_item
			height="16"
			label="All static objects"
			layout="topleft"
			left_delta="0"
			name="1"
			top_delta="16"
			width="315" />
			<radio_item
			height="16"
			label="All avatars and objects"
			layout="topleft"
			left_delta="0"
			name="2"
			top_delta="16"
			width="315" />
			<radio_item
			height="16"
			label="Everything"
			layout="topleft"
			left_delta="0"
			name="3"
			top_delta="16"
			width="315" />
		</radio_group>
		<text
		type="string"
		length="1"
		follows="left|top"
		height="12"
		layout="topleft"
		left_delta="2"
		name="AvatarRenderingText"
		top_pad="5"
		width="128">
			Avatar rendering:
		</text>
		<check_box
		control_name="RenderUseImpostors"
		height="16"
		initial_value="true"
		label="Avatar impostors"
		layout="topleft"
		left_delta="0"
		name="AvatarImpostors"
		top_pad="7"
		width="256" />
		<check_box
		control_name="RenderAvatarVP"
		height="16"
		initial_value="true"
		label="Hardware skinning"
		layout="topleft"
		left_delta="0"
		name="AvatarVertexProgram"
		top_pad="1"
		width="256">
			<check_box.commit_callback
			function="Pref.VertexShaderEnable" />
		</check_box>
		<check_box
		control_name="RenderAvatarCloth"
		height="16"
		initial_value="true"
		label="Avatar cloth"
		layout="topleft"
		left_delta="0"
		name="AvatarCloth"
		top_pad="1"
		width="256" />

		<slider
		control_name="RenderFarClip"
		decimal_digits="0"
		follows="left|top"
		height="16"
		increment="8"
		initial_value="160"
		label="Draw distance:"
		label_width="140"
		layout="topleft"
		left="216"
		max_val="512"
		min_val="64"
		name="DrawDistance"
		top="3"
		width="255">
			<slider.commit_callback
			function="Pref.UpdateMeterText" />
		</slider>
		<text
		type="string"
		length="1"
		follows="left|top"
		height="12"
		layout="topleft"
		left_delta="250"
		name="DrawDistanceMeterText2"
		top_delta="1"
		width="128">
			m
		</text>
		<slider
		control_name="RenderMaxPartCount"
		decimal_digits="0"
		follows="left|top"
		height="16"
		increment="256"
		initial_value="4096"
		label="Max. particle count:"
		label_width="140"
		layout="topleft"
		left="216"
		max_val="8192"
		name="MaxParticleCount"
		top_pad="6"
		width="262" />
		<slider
		control_name="RenderGlowResolutionPow"
		decimal_digits="0"
		follows="left|top"
		height="16"
		increment="1"
		initial_value="8"
		label="Post process quality:"
		label_width="140"
		layout="topleft"
		left_delta="0"
		max_val="9"
		min_val="8"
		name="RenderPostProcess"
		show_text="false"
		top_pad="4"
		width="223">
			<slider.commit_callback
			function="Pref.UpdateSliderText"
			parameter="PostProcessText" />
		</slider>
		<text
		type="string"
		length="1"
		follows="left|top"
		height="12"
		layout="topleft"
		left_delta="0"
		name="MeshDetailText"
		top_pad="5"
		width="128">
			Mesh detail:
		</text>
		<slider
		control_name="RenderVolumeLODFactor"
		follows="left|top"
		height="16"
		increment="0.125"
		initial_value="160"
		label="  Objects:"
		label_width="140"
		layout="topleft"
		left_delta="0"
		max_val="2"
		name="ObjectMeshDetail"
		show_text="false"
		top_pad="6"
		width="223">
			<slider.commit_callback
			function="Pref.UpdateSliderText"
			parameter="ObjectMeshDetailText" />
		</slider>
		<slider
		control_name="RenderFlexTimeFactor"
		follows="left|top"
		height="16"
		initial_value="160"
		label="  Flexiprims:"
		label_width="140"
		layout="topleft"
		left_delta="0"
		name="FlexibleMeshDetail"
		show_text="false"
		top_pad="4"
		width="223">
			<slider.commit_callback
			function="Pref.UpdateSliderText"
			parameter="FlexibleMeshDetailText" />
		</slider>
        <slider
        control_name="RenderTreeLODFactor"
        follows="left|top"
        height="16"
        increment="0.125"
        initial_value="160"
        label="  Trees:"
        label_width="140"
        layout="topleft"
        left_delta="0"
        name="TreeMeshDetail"
        show_text="false"
        top_pad="4"
        width="223">
           <slider.commit_callback
            function="Pref.UpdateSliderText"
            parameter="TreeMeshDetailText" />
        </slider>
        <slider
        control_name="RenderAvatarLODFactor"
        follows="left|top"
        height="16"
        increment="0.125"
        initial_value="160"
        label="  Avatars:"
        label_width="140"
        layout="topleft"
        left_delta="0"
        name="AvatarMeshDetail"
        show_text="false"
        top_pad="4"
        width="223">
           <slider.commit_callback
            function="Pref.UpdateSliderText"
            parameter="AvatarMeshDetailText" />
        </slider>
        <slider
        control_name="RenderTerrainLODFactor"
        follows="left|top"
        height="16"
        increment="0.125"
        initial_value="160"
        label="  Terrain:"
        label_width="140"
        layout="topleft"
        left_delta="0"
        max_val="2"
        min_val="1"
        name="TerrainMeshDetail"
        show_text="false"
        top_pad="4"
        width="223">
           <slider.commit_callback
            function="Pref.UpdateSliderText"
            parameter="TerrainMeshDetailText" />
        </slider>
        <slider
        control_name="WLSkyDetail"
		enabled_control="WindLightUseAtmosShaders"
        decimal_digits="0"
        follows="left|top"
        height="16"
        increment="8"
        initial_value="160"
        label="  Sky:"
        label_width="140"
        layout="topleft"
        left_delta="0"
        max_val="128"
        min_val="16"
        name="SkyMeshDetail"
        show_text="false"
        top_pad="4"
        width="223">
           <slider.commit_callback
            function="Pref.UpdateSliderText"
            parameter="SkyMeshDetailText" />
        </slider>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left="444"
        name="PostProcessText"
        top="305"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="ObjectMeshDetailText"
        top_pad="26"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="FlexibleMeshDetailText"
        top_pad="8"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="TreeMeshDetailText"
        top_pad="8"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="AvatarMeshDetailText"
        top_pad="8"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="TerrainMeshDetailText"
        top_pad="8"
        width="128">
           Low
        </text>
        <text
		enabled_control="WindLightUseAtmosShaders"
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="0"
        name="SkyMeshDetailText"
        top_pad="8"
        width="128">
           Low
        </text>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left_delta="-230"
        name="LightingDetailText"
        top_pad="8"
        width="128">
           Lighting detail:
        </text>
        <radio_group
        control_name="RenderLightingDetail"
        draw_border="false"
        height="38"
        layout="topleft"
        left_delta="0"
        name="LightingDetailRadio"
        top_pad="5"
        width="321">
           <radio_item
            height="16"
            label="Sun and moon only"
            layout="topleft"
            left="3"
            name="SunMoon"
            value="0"
            top="3"
            width="156" />
           <radio_item
            height="16"
            label="Nearby local lights"
            layout="topleft"
            left_delta="0"
            name="LocalLights"
            value="1"
            top_delta="16"
            width="156" />
        </radio_group>
        <text
        type="string"
        length="1"
        follows="left|top"
        height="12"
        layout="topleft"
        left="360"
        name="TerrainDetailText"
        top="465"
        width="128">
           Terrain detail:
        </text>
        <radio_group
        control_name="RenderTerrainDetail"
        draw_border="false"
        height="38"
        layout="topleft"
        left_delta="0"
        name="TerrainDetailRadio"
        top_pad="5"
        width="321">
           <radio_item
            height="16"
            label="Low"
            layout="topleft"
            left="3"
            name="0"
            top="3"
            width="315" />
           <radio_item
            height="16"
            label="High"
            layout="topleft"
            left_delta="0"
            name="2"
            top_delta="16"
            width="315" />
        </radio_group>
	</panel>	
        <button
     follows="left|bottom"
     height="23"
     label="Apply"
     label_selected="Apply"
     layout="topleft"
     left="10"
     name="Apply"
     top="383"
     width="115">
        <button.commit_callback
         function="Pref.Apply" />
    </button>
    <button
     follows="left|bottom"
     height="23"
     label="Reset"
     layout="topleft"
     left_pad="3"
     name="Defaults"
     top="383"
     width="115">
        <button.commit_callback
         function="Pref.HardwareDefaults" />
    </button>
    <button
     control_name="ShowAdvancedGraphicsSettings"
     follows="right|bottom"
     height="23"
     is_toggle="true"
     label="Advanced"
     layout="topleft"
     left_pad="35"
     name="Advanced"
     top_delta="0"
     width="115" />
    <button
     follows="right|bottom"
     height="23"
     label="Hardware"
     label_selected="Hardware"
     layout="topleft"
     left_pad="3"
     name="GraphicsHardwareButton"
     top_delta="0"
     width="115">
        <button.commit_callback
         function="Pref.HardwareSettings" />
    </button>
</panel>