{
  "namespace": "video_dx",

  /*//// Disabled Buttons with hover text ////*/
  
  "hover_text_button_panel@common.button": {
    "layer": 30,
    "locked_control": "locked",
    "sound_volume": 0.0,
    "sound_pitch": 0.0,
    "$is_last_button|default": false,
    "$pressed_button_name": "unset",
    "controls": [
      { "default@": { } },
      { 
        "hover@common_dx.hover_text_panel": {
          "$hover_text_size": [ 150, "default" ]
        }
      },
      { "pressed@": { } },
      { "locked@": { } }
    ],
    "bindings": [
      {
        "binding_name": "(not #raytracing_enabled)",
        "binding_name_override": "#visible"
      }
    ]
  },

  /*//// Hover Text Panels ////*/

  "graphics_fancy_hover_text@common_dx.hover_text_label": {
    "line_padding": 1.0,
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "offset": [ 4, 2 ],
    "size": [ 165, "default" ],
    "text": "options.graphics.fancy.tooltip"
  },

  "graphics_fast_hover_text@common_dx.hover_text_label": {
    "line_padding": 1.0,
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "offset": [ 4, 2 ],
    "size": [ 197, "default" ],
    "text": "options.graphics.fast.tooltip"
  },

  /*//// Button tab ////*/
  
  "pvp_more_options_button@settings_dx.button_tab": {
    "$button_text": "createWorldScreen.advanced",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$toggle_name": "video_options",
    "$tab_view_binding_name": "advanced_toggle",
    "$toggle_group_forced_index": 1
  },

  "pvp_main_options_button@settings_dx.button_tab": {
    "$unchecked_control": "common_buttons_dx.200_default",
    "$unchecked_hover_control": "common_buttons_dx.200_hover",
    "size": [ 200, 20 ],

    "$button_text": "gui.done",
    "$is_back_button": true,
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "offset": [ 0, -7 ],
    "$toggle_name": "video_options",
    "$tab_view_binding_name": "main_toggle",
    "$toggle_group_forced_index": 0
  }, 

  /*//// Dropdown Toggles ////*/

  "vsync_option": {
    "type": "panel",
    "size": [ 150, 20 ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$option_label": "options.vsync",
    "$option_enabled_binding_name": "#vsync_dropdown_enabled",
    "controls": [
      {
        "off@settings_common_dx.dropdown_radio_150": {
          "$toggle_state_binding_name": "#vsync_off",
          "$toggle_value_text": "options.vsync.adaptive",
          "bindings": [
            {
              "binding_name": "#vsync_adaptive",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "on@settings_common_dx.dropdown_radio_150": {
          "$toggle_state_binding_name": "#vsync_on",
          "$toggle_value_text": "options.vsync.off",
          "bindings": [
            {
              "binding_name": "#vsync_off",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "adaptive@settings_common_dx.dropdown_radio_150": {
          "$toggle_state_binding_name": "#vsync_adaptive",
          "$toggle_value_text": "options.vsync.on",
          "bindings": [
            {
              "binding_name": "#vsync_on",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  },

  /*//// Advanced Panel ////*/
  
  "advanced_screen_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ 310, "100%" ],
    "controls": [
      {
        "title_panel": {
          "type": "panel",
          "size": [ 310, 28 ],
          "controls": [
            {
              "advanced_label@settings_dx.base_label": {
                "text": "createWorldScreen.advanced",
                "offset": [ 0, 14 ]
              }
            }
          ]
        }
      },
      {
        "panel_0": {
          "type": "panel",
          "size": [ 310, 21 ],
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "controls": [
            {
              "fancy_clouds_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.fancy_clouds_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "options.fancyskies",
                "$option_binding_name": "#fancy_skies",
                "$option_enabled_binding_name": "#fancy_skies_enabled",
                "$toggle_name": "fancy_skies"
              }
            },
            {
              "fancy_bubbles_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.fancy_bubbles_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "$option_label": "options.bubbleparticles",
                "$option_binding_name": "#bubble_particles",
                "$option_enabled_binding_name": "#bubble_particles_enabled",
                "$toggle_name": "bubble_particles"
              }
            }
          ]
        }
      },
      {
        "panel_1": {
          "type": "panel",
          "size": [ 310, 21 ],
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "controls": [
            {
              "texel_anti_aliasing_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.texel_anti_aliasing_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "options.texelAA",
                "$option_binding_name": "#texel_aa",
                "$option_enabled_binding_name": "#show_texel_aa",
                "$toggle_name": "texel_aa"
              }
            },
            {
              "msaa_slider@settings_common_dx.option_slider_150": {
                "$hover_content": "video_tooltips_dx.msaa_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "enabled": "(not $is_holographic or not $is_win10_arm)",
                "$option_label": "#msaa_slider_label",
                "$slider_name": "msaa",
                "$slider_value_binding_name": "#msaa",
                "$slider_tts_text_value": "#msaa_text_value",
                "$option_enabled_binding_name": "#show_msaa",
                "$slider_steps_binding_name": "#msaa_steps",
                "$label_bindings": [
                  {
                    "binding_name": "$option_label"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "panel_2": {
          "type": "panel",
          "size": [ 310, 21 ],
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "controls": [
            {
              "fancy_leaves_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.fancy_leaves_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "enabled": "(not $pocket_edition)",
                "$option_label": "item.leaves.name",
                "$toggle_off_text": "options.graphics.fast",
                "$toggle_on_text": "options.graphics.fancy",
                "$option_binding_name": "#transparent_leaves",
                "$option_enabled_binding_name": "#transparent_leaves_enabled",
                "$toggle_name": "transparent_leaves"
              }
            }
          ]
        }
      },
      {
        "fill_panel": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ 310, 128 ],
          "controls": [
            /*//// RTX sections ////*/
            {
              "rtx_title_panel": {
                "type": "panel",
                "size": [ 310, 21 ],
                "ignored":"(not $win10_edition)",
                "controls": [
                  {
                    "object_name": {
                      "type": "image",
                      "texture": "textures/uidx/global/white",
                      "layer": 5,
                      "size": [ "100%-20px", 1 ],
                      "anchor_from": "center",
                      "anchor_to": "center"
                    }
                  }
                ]
              }
            },
            {
              "rtx_panel_0": {
                "type": "panel",
                "size": [ 310, 21 ],
                "ignored":"(not $win10_edition)",
                "controls": [/* 
                  {
                    "raytracing_render_distance_disabled@video_dx.hover_text_button_panel": {
                      "size": [ 310, 20 ],
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "$hover_panel_text": "#rtx_disabled_option_upsell_tooltip_text",
                      "bindings": [
                        {
                          "binding_name": "(not #raytracing_render_distance_enabled)",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  }, */
                  {
                    "raytracing_render_distance_slider@settings_common_dx.option_slider_310": {
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "$option_label": "#raytracing_render_distance_slider_label",
                      "$slider_name": "raytracing_render_distance",
                      "$slider_value_binding_name": "#raytracing_render_distance",
                      "$slider_tts_text_value": "#raytracing_render_distance_text_value",
                      "$option_enabled_binding_name": "#raytracing_render_distance_enabled",
                      "$slider_steps_binding_name": "#raytracing_render_distance_steps",
                      "$label_bindings": [
                        {
                          "binding_name": "$option_label"
                        }
                      ]
                    }
                  }
                ]
              }
            },
            {
              "rtx_panel_1": {
                "type": "panel",
                "size": [ "100%", 21 ],
                "ignored":"(not $win10_edition)",
                "controls": [/* 
                  {
                    "raytracing_toggle_disabled@video_dx.hover_text_button_panel": {
                      "size": [ 150, 20 ],
                      "anchor_from": "top_right",
                      "anchor_to": "top_right",
                      "$hover_panel_text": "#rtx_disabled_option_upsell_tooltip_text",
                      "bindings": [
                        {
                          "binding_name": "(not #raytracing_enabled)",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  },
                  {
                    "upscaling_toggle_disabled@video_dx.hover_text_button_panel": {
                      "size": [ 150, 20 ],
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "$hover_panel_text": "#rtx_disabled_option_upsell_tooltip_text",
                      "bindings": [
                        {
                          "binding_name": "(not #graphics_upscaling_enabled)",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  }, */
                  {
                    "raytracing_toggle@settings_common_dx.option_toggle_150": {
                      "anchor_from": "top_left",
                      "anchor_to": "top_left",
                      "$option_label": "options.raytracing",
                      "$option_binding_name": "#raytracing",
                      "$option_enabled_binding_name": "#raytracing_enabled",
                      "$toggle_name": "raytracing"
                    }
                  },
                  {
                    "upscaling_toggle@settings_common_dx.option_toggle_150": {
                      "anchor_from": "top_right",
                      "anchor_to": "top_right",
                      "$option_label": "options.upscaling",
                      "$option_binding_name": "#graphics_upscaling",
                      "$option_enabled_binding_name": "#graphics_upscaling_enabled",
                      "$toggle_name": "graphics_upscaling"
                    }
                  }
                ]
              }
            }
            /*//// End of RTX sections ////*/
          ]
        }
      },
      {
        "final_panel": {
          "type": "panel",
          "size": [ 310, 20 ],
          "controls": [
            {
              "pvp_main_options_button@video_dx.pvp_main_options_button": {
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "layer": 10
              }
            }
          ]
        }
      }
    ]
  },

  /*//// Stack Panel ////*/

  "video_stack_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "anchor_from": "top_middle",
    "anchor_to": "top_middle",
    "size": [ 310, "100%c" ],
    "controls": [
      {
        "top_panel": {
          "type": "panel",
          "size": [ "100%", 28 ],
          "controls": [
            { "video_label@video_dx.video_label": { } }
          ]
        }
      },
      {
        "panel_0": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            {
              "graphics_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.graphics_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "options.renderingProfile",
                "$toggle_off_text": "options.graphics.fast",
                "$toggle_on_text": "options.graphics.fancy",
                "$option_binding_name": "#graphics_toggle",
                "$option_enabled_binding_name": "#graphics_toggle_enabled",
                "$toggle_name": "graphics_toggle"
              }
            },
            {
              "render_distance_slider@settings_common_dx.option_slider_150": {
                "$hover_content": "video_tooltips_dx.render_distance_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "$option_label": "#render_distance_slider_label",
                "$slider_name": "render_distance",
                "$slider_value_binding_name": "#render_distance",
                "$option_enabled_binding_name": "#render_distance_enabled",
                "$slider_steps_binding_name": "#render_distance_steps",
                "$label_bindings": [
                  {
                    "binding_name": "#render_distance_slider_label"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "panel_1": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            {
              "smooth_lighting_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.smooth_lighting_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "options.smooth_lighting",
                "$toggle_off_text": "options.graphics.fast",
                "$toggle_on_text": "options.graphics.fancy",
                "$option_binding_name": "#smooth_lighting",
                "$option_enabled_binding_name": "#smooth_lighting_enabled",
                "$toggle_name": "smooth_lighting"
              }
            },
            {
              "max_framerate_slider@settings_common_dx.option_slider_150": {
                "$hover_content": "video_tooltips_dx.max_framerate_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "$option_label": "#max_framerate_slider_label",
                "$slider_name": "max_framerate",
                "$slider_value_binding_name": "#max_framerate",
                "$option_enabled_binding_name": "#max_framerate_enabled",
                "$slider_steps_binding_name": "#max_framerate_steps",
                "$label_bindings": [
                  {
                    "binding_name": "#max_framerate_slider_label"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "panel_2": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            { "vsync_option@video_dx.vsync_option": { "$hover_content": "video_tooltips_dx.vsync_tooltip_text" } },
            {
              "view_bobbing_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.view_bobbing_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "ignored": "($is_holographic and $is_reality_mode and not $is_pregame)",
                "$option_label": "options.viewBobbing",
                "$option_binding_name": "#view_bobbing",
                "$option_enabled_binding_name": "#view_bobbing_enabled",
                "$toggle_name": "view_bobbing"
              }
            }
          ]
        }
      },
      {
        "panel_3": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            {
              "gui_scale_slider@settings_common_dx.option_slider_150": {
                "$hover_content": "video_tooltips_dx.gui_scale_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "ignored": "($is_holographic)",
                "$option_label": "#gui_scale_slider_label",
                "$slider_name": "gui_scale",
                "$slider_value_binding_name": "#gui_scale",
                "$option_enabled_binding_name": "#gui_scale_visible",
                "$slider_steps_binding_name": "#gui_scale_steps",
                "$label_bindings": [
                  {
                    "binding_name": "#gui_scale_slider_label"
                  }
                ]
              }
            },
            {
              "fullscreen_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.fullscreen_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "$option_label": "options.fullscreen",
                "$option_binding_name": "#full_screen",
                "$option_enabled_binding_name": "#full_screen_enabled",
                "$toggle_name": "full_screen"
              }
            }
          ]
        }
      },
      {
        "panel_4": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            {
              "brightness_slider@settings_common_dx.option_slider_150": {
                "$slider_hover_content": "video_tooltips_dx.brightness_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "#gamma_slider_label",
                "$slider_name": "gamma",
                "$slider_value_binding_name": "#gamma",
                "$option_enabled_binding_name": "#gamma_enabled",
                "$label_bindings": [
                  {
                    "binding_name": "#gamma_slider_label"
                  }
                ]
              }
            },
            {
              "option_toggle_screen_animations@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.screen_animations_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "ignored": "($is_holographic)",
                "$option_label": "options.screenAnimations",
                "$option_binding_name": "#screen_animations",
                "$option_enabled_binding_name": "#screen_animations_enabled",
                "$toggle_name": "screen_animations",
                "bindings": [
                  {
                    "binding_name": "#screen_animations_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "panel_5": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            {
              "render_clouds_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.render_clouds_tooltip_text",
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "$option_label": "options.renderclouds",
                "$option_binding_name": "#render_clouds",
                "$option_enabled_binding_name": "#render_clouds_enabled",
                "$toggle_name": "render_clouds"
              }
            },
            {
              "field_of_view_toggle@settings_common_dx.option_toggle_150": {
                "$hover_content": "video_tooltips_dx.field_of_view_tooltip_text",
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "$option_label": "options.fov.toggle",
                "$option_binding_name": "#field_of_view_toggle",
                "$option_enabled_binding_name": "#field_of_view_toggle_enabled",
                "$toggle_name": "field_of_view_toggle"
              }
            }
          ]
        }
      },
      {
        "panel_6": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
            { "pvp_more_options_button@video_dx.pvp_more_options_button": { } },
            {
              "reset_button@common_buttons_dx.main_button_150": {
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "enabled": "$is_pregame",
                "$pressed_button_name": "button.reset_settings",
                "$button_text": "options.resetSettings",
                "property_bag": {
                  "reset_group": "video"
                }
              }
            }
          ]
        }
      },
      {
        "panel_7": {
          "type": "panel",
          "size": [ 310, 21 ],
          "controls": [
          ]
        }
      },
      {
        "panel_8": {
          "type": "panel",
          "size": [ 310, 23 ],
          "controls": [
          ]
        }
      },
      {
        "end": {
          "type": "panel",
          "size": [ 310, 20 ],
          "controls": [
            {
              "null_navigation_tab@settings_dx.null_navigation_tab": {
                "$unchecked_control": "common_buttons_dx.200_default",
                "$unchecked_hover_control": "common_buttons_dx.200_hover",
      
                "size": [ 200, 20 ],
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "layer": 4
              }
            }
          ]
        }
      }
    ]
  },

  /*//// Screen ////*/
  
  "video_label@settings_dx.base_label": {
    "text": "options.videoTitle",
    "offset": [ 0, 14 ]
  },

  "video_screen_panel": {
    "type": "panel",
    "controls": [
      { 
        "text_panel@settings_dx.text_panel": {
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "advanced_toggle",
              "source_property_name": "(not #toggle_state)",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      {
        "main@video_dx.video_stack_panel": {
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "advanced_toggle",
              "source_property_name": "(not #toggle_state)",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      {
        "advanced_screen_panel@video_dx.advanced_screen_panel": {
          "bindings": [
            {
              "binding_type": "view",
              "source_control_name": "advanced_toggle",
              "source_property_name": "#toggle_state",
              "target_property_name": "#visible"
            }
          ]
        }
      },
      { "main_bg_panel@settings_dx.bg_panel": { "bindings": [ ] } }
    ]
  }
}