<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<panel
 border="true"
 follows="all"
 height="408"
 label="Advanced"
 layout="topleft"
 left="102"
 name="advanced"
 top="1"
 width="517">
	<panel.string
     name="aspect_ratio_text">
        [NUM]:[DEN]
    </panel.string>
  <text
   type="string"
   length="1"
   follows="left|top"
   height="12"
   layout="topleft"
   left="33"
   name="Cache:"
   top_pad="10"
   width="100">
    Cache:
  </text>
  <spinner
   control_name="CacheSize"
   decimal_digits="0"
   follows="left|top"
   height="23"
   increment="64"
   initial_value="1024"
   label="Cache size (256 - 9984MB)"
   label_width="150"
   layout="topleft"
   left="80"
   max_val="9984"
   min_val="256"
   top_pad="10"
   name="cachesizespinner"
   width="200" />
  <text
   type="string"
   length="1"
   follows="left|top"
   height="23"
   layout="topleft"
   left_pad="5"
   mouse_opaque="false"
   name="text_box5"
   width="20">
    MB
  </text>
  <button
   follows="left|top"
   height="23"
   label="Clear Cache"
   label_selected="Clear Cache"
   layout="topleft"
   left_pad="30"
   name="clear_cache"
   top_delta="0"
   width="100">
  <button.commit_callback
   function="Pref.ClearCache" />
  </button>
  <text
   type="string"
   length="1"
   follows="left|top"
   height="10"
   layout="topleft"
   left="80"
   name="Cache location"
   top_pad="5"
   width="300">
    Cache location:
  </text>
  <line_editor
   control_name="CacheLocationTopFolder"
   border_style="line"
   border_thickness="1"
   follows="left|top"
   font="SansSerif"
   height="23"
   layout="topleft"
   left="80"
   max_length_bytes="4096"
   name="cache_location"
   top_pad="5"
   width="205" />
  <button
   follows="left|top"
   height="23"
   label="Browse"
   label_selected="Browse"
   layout="topleft"
   left_pad="5"
   name="set_cache"
   top_delta="0"
   width="100">
  <button.commit_callback
   function="Pref.SetCache" />
  </button>
  <button
    follows="left|top"
    height="23"
    label="Default Location"
    label_selected="Default Location"
    layout="topleft"
    left_pad="3"
    name="default_cache_location"
    top_delta="0"
    width="100">
    <button.commit_callback
     function="Pref.ResetCache" />
  </button>
   <text
   type="string"
   length="1"
   follows="left|top"
   height="12"
   layout="topleft"
   left="33"
   name="UI Size:"
   top_pad="20"
   width="100">
    UI size:
  </text>
  <slider
   control_name="UIScaleFactor"
   decimal_digits="2"
   follows="left|top"
   height="17"
   increment="0.025"
   initial_value="1"
   layout="topleft"
   left_pad="0"
   max_val="4.0"
   min_val="0.75"
   name="ui_scale_slider"
   top_pad="-14"
   width="250" />
  <text
  type="string"
  length="1"
  follows="left|top"
  height="12"
  layout="topleft"
  left="33"
  name="HUD Size:"
  top_pad="20"
  width="100">
    HUD Scale:
  </text>
  <slider
   control_name="HUDScaleFactor"
   decimal_digits="2"
   follows="left|top"
   height="17"
   increment="0.1"
   initial_value="1"
   layout="topleft"
   left_pad="0"
   max_val="2.0"
   min_val="1.0"
   name="hud_scale_slider"
   top_pad="-14"
   width="250" />
    <check_box
     control_name="ShowScriptErrors"
     follows="left|top"
     height="20"
     label="Show script errors in:"
     layout="topleft"
     left="30"
     top_pad="10" 
     name="show_script_errors"
     width="256" />
    <radio_group
     enabled_control="ShowScriptErrors"
     control_name="ShowScriptErrorsLocation"
     follows="top|left"
     height="16"
     layout="topleft"
     left_delta="50"
     name="show_location"
     top_pad="5"
     width="364">
        <radio_item
         height="16"
         label="Nearby chat"
         layout="topleft"
         left="3"
         name="0"
         top="0"
         width="315" />
        <radio_item
         height="16"
         label="Separate window"
         layout="topleft"
         left_delta="175"
         name="1"
         top_delta="0"
         width="315" />
    </radio_group>

    <check_box
     control_name="AllowMultipleViewers"
     follows="top|left"
     height="15"
     label="Allow Multiple Viewers"
     layout="topleft"
     left="30"
     name="allow_multiple_viewer_check"
     top_pad="20"
     width="237"/>
    <check_box
     control_name="ForceShowGrid"
     follows="top|left"
     height="15"
     label="Show Grid Selection at login"
     layout="topleft"
     left="30"
     name="show_grid_selection_check"
     top_pad="5"
     width="237"/>
    <check_box
     control_name="UseDebugMenus"
     follows="top|left"
     height="15"
     label="Show Advanced Menu"
     layout="topleft"
     left="30"
     name="show_advanced_menu_check"
     top_pad="5"
     width="237"/>
    <check_box
     control_name="QAMode"
     follows="top|left"
     height="15"
     label="Show Develop Menu"
     layout="topleft"
     left="30"
     name="show_develop_menu_check"
     top_pad="5"
     width="237"/>
    <button
     follows="top|left"
     layout="topleft"
     label="Remembered Usernames"
     name="remembered_usernames"
     height="20"
     left="30"
     top_pad="16"
     width="200">
    <button.commit_callback
     function="Pref.RememberedUsernames" />
  </button>
  <button
     follows="top|left"
     layout="topleft"
     label="Default Creation Permissions"
     name="default_creation_permissions"
     height="20"
     left="30"
     top_pad="16"
     width="200">
    <button.commit_callback
     function="Pref.PermsDefault" />
  </button>
</panel>
