{
  "namespace": "pause",

  "pause_icon": {
    "type": "image",
    "texture": "textures/ui/pause_icon",
    "layer": 3,
    "size": [ 16, 16 ]
  },

  "feedback_icon": {
    "type": "image",
    "texture": "textures/ui/Feedback",
    "layer": 3,
    "size": [ 16, 16 ]
  },

  "change_skin_icon": {
    "type": "image",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "texture": "textures/ui/hangar",
    "layer": 3,
    "size": [ 32, 16 ],
    "color": [ 0.3, 0.3, 0.3 ]
  },

  "take_screenshot_icon": {
    "type": "image",
    "texture": "textures/ui/camera-yo",
    "layer": 3,
    "size": [ 24, 12 ]
  },

  "settings_icon": {
    "type": "image",
    "texture": "textures/ui/settings_pause_menu_icon",
    "layer": 3,
    "size": [ 24, 12 ]
  },

  "achievements_icon": {
    "type": "image",
    "texture": "textures/ui/achievements_pause_menu_icon",
    "layer": 3,
    "size": [ 26, 14 ]
  },

  "how_to_play_icon": {
    "type": "image",
    "texture": "textures/ui/how_to_play_button_default",
    "layer": 3,
    "size": [ 14, 14 ]
  },
  
  "store_icon": {
    "type": "image",
    "texture": "textures/ui/marketplace_pause_menu_icon",
    "layer": 3,
    "size": [ 24, 14 ]
  },

  "realms_stories_icon": {
    "type": "image",
    "texture": "textures/ui/realms_stories_pause_menu_icon",
    "layer": 3,
    "size": [ 24, 14 ]
  },

  "alex_icon": {
    "type": "image",
    "texture": "textures/ui/icon_alex",
    "layer": 1,
    "size": [ 16, 16 ]
  },

  "profile_gamerpic": {
    "type": "custom",
    "renderer": "profile_image_renderer",
    "size": [ 16, 16 ],
    "layer": 2,
    "bindings": [
      {
        "binding_name": "#profile_image_options"
      },
      {
        "binding_name": "$gamerpic_visible",
        "binding_name_override": "#visible"
      }
    ]
  },

  "button_x@common.gamepad_helper_x_14": {
    "$gamepad_helper_visible_binding_type": "none",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "layer": -1,
    "bindings": [
      {
        "binding_name": "$button_x_visible",
        "binding_name_override": "#visible"
      }
    ]
  },

  //---------------------------------------------------------------------------
  // Skins Panel
  //---------------------------------------------------------------------------

  "dressing_room_controller_button_content": {
    "type": "panel",
    "size": [ "100%c", "100%cm" ],
    "controls": [
      {
        "button_x@pause.button_x": {
          "offset": [ 1, -1 ],
          "$button_x_visible": "#can_change_skin"
        }
      },
      {
        "button_label_panel": {
          "type": "panel",
          "offset": [ -1, 0 ],
          "size": [ "100%c", "100%c" ],
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",
          "controls": [
            {
              "button_label_text_left@pause.controller_button_label": {
                "size": [ "default", "default" ],
                "max_size": [ 80, 20 ]
              }
            }
          ]
        }
      }
    ]
  },

  "controller_button_label@common_buttons.new_ui_binding_button_label": {
    "size": [ "100%", "100%c" ],
    "$anchor": "left_middle",
    "$button_text": "profileScreen.header",
    "$button_text_binding_type": "none",
    "$button_binding_condition": "none",
    "$button_text_grid_collection_name": ""
  },

  "column_frame": {
    "type": "panel"
  },

  "dressing_room_button_gamepad@common_buttons.light_content_form_fitting_button": {
    "size": [ "100%c", "100%c" ],
    "$button_content_size_override": [ "100%c - 2px", "100%c - 6px" ],
    "$pressed_button_name": "button.to_profile_or_skins_screen",
    "focus_change_right": "$focus_id",
    "focus_change_down": "friendsdrawer_button",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "$button_offset": [ -3, 1 ],
    "offset": [ 0, -5 ],
    "$focus_id": "profile_button",
    "$new_ui_label_offset": [ 0, -1 ],
    "$text_alignment": "left",
    "$button_content": "pause.dressing_room_controller_button_content",
    "$pressed_alpha": 0.65,
    "$hide_description": true,
    "bindings": [
      {
        "binding_type": "global",
        "binding_name": "#dressing_room_controller_button_visible",
        "binding_name_override": "#visible"
      },
      {
        "binding_name": "#dressing_room_button_focus_change_override",
        "binding_name_override": "#focus_change_up"
      }
    ]
  },

  "dressing_room_button@common_buttons.light_text_form_fitting_button": {
    "$pressed_button_name": "button.to_profile_or_skins_screen",
    "$form_fitting_min_size": [ "100%c + 2px", 22 ],
    "focus_change_right": "$focus_id",
    "focus_change_down": "friendsdrawer_button",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "$button_text": "profileScreen.header",
    "offset": [ 0, -5 ],
    "$focus_id": "profile_button",
    "$pressed_alpha": 0.65,
    "bindings": [
      {
        "binding_name": "#dressing_room_button_visible",
        "binding_name_override": "#visible"
      },
      {
        "binding_name": "#dressing_room_button_focus_change_override",
        "binding_name_override": "#focus_change_up"
      }
    ]
  },

  "profile_button_content": {
    "type": "stack_panel",
    "size": [ "100%c", 24 ],
    "orientation": "horizontal",
    "controls": [
      {
        "button_offset_wrapper": {
          "type": "panel",
          "size": [ "100%c - 12px", "100%c" ],
          "bindings": [
            {
              "binding_name": "#profile_button_x_icon_visible",
              "binding_name_override": "#visible"
            }
          ],
          "controls": [
            {
              "button_x@pause.button_x": {
                "$button_x_visible": "#profile_button_x_icon_visible",
                "offset": [ -6, -4 ]
              }
            }
          ]
        }
      },
      {
        "gamerpic_offset_wrapper": {
          "type": "panel",
          "size": [ "100%c", "100%c" ],
          "bindings": [
            {
              "binding_name": "(not #profile_button_x_icon_visible)",
              "binding_name_override": "#visible"
            }
          ],
          "controls": [
            {
              "gamerpic_with_border": {
                "type": "panel",
                "size": [ 18, 18 ],
                "offset": [ -2, 0 ],
                "controls": [
                  {
                    "gamerpic@pause.profile_gamerpic": {
                      "$gamerpic_visible": "#is_signed_in_xbl"
                    }
                  },
                  {
                    "alex_icon@pause.alex_icon": {
                      "bindings": [
                        {
                          "binding_name": "(not #is_signed_in_xbl)",
                          "binding_name_override": "#visible"
                        }
                      ]
                    }
                  },
                  {
                    "border_black@common.focus_border_black": {
                      "layer": 3,
                      "size": [ 18, 18 ]
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "padding_middle@common.empty_panel": {
          "size": [ 2, "100%" ]
        }
      },
      {
        "vertically_central_text": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ "100%c", "100%c" ],
          "controls": [
            {
              "top_padding": {
                "type": "panel",
                "size": [ "0px", 4 ]
              }
            },
            {
              "profile_button_label@common_buttons.new_ui_binding_button_label": {
                "layer": 1,
                "$button_text": "menu.profile",
                "$button_text_size": [ "default", "default" ],
                "$button_text_max_size": [ "default", 20 ],
                "$button_text_binding_type": "none",
                "$button_binding_condition": "none",
                "$button_text_grid_collection_name": ""
              }
            }
          ]
        }
      },
      {
        "padding_right@common.empty_panel": {
          "size": [ 6, "100%" ]
        }
      }
    ]
  },

  "profile_button@common_buttons.light_content_form_fitting_button": {
    "size": [ "100%c", "100%c" ],
    "$button_content_size_override": [ "100%c", "100%c - 4px" ],
    "$button_content": "pause.profile_button_content",
    "$pressed_button_name": "button.menu_profile"
  },

  "skin_viewer_panel": {
    "type": "input_panel",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "size": [ "100%", "170px" ],
    "$skin_viewer_panel_offset|default": [ 0, 11 ],
    "offset": "$skin_viewer_panel_offset",
    "gesture_tracking_button": "button.turn_doll",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.turn_doll",
        "mapping_type": "pressed",
        "button_up_right_of_first_refusal": true
      }
    ],
    "controls": [
      {
        "paper_doll_panel": {
          "type": "panel",
          "size": [ "100%", "100% - 10px" ],
          "$paper_doll_offset|default": [ 0, -22 ],
          "offset": "$paper_doll_offset",

          "controls": [
            {
              "paper_doll": {
                "type": "custom",
                "renderer": "paper_doll_renderer",
                "camera_tilt_degrees": -10,
                "starting_rotation": 30,
                "layer": 2,
                "anchor_from": "bottom_middle",
                "anchor_to": "bottom_middle",
                "rotation": "gesture_x",
                "size": [ "100%", "100%" ],
                "use_selected_skin": false,
                "animation_reset_name": "screen_animation_reset",
                "anims": [
                  "@common.screen_exit_size_animation_push",
                  "@common.screen_exit_size_animation_pop",
                  "@common.screen_entrance_size_animation_push",
                  "@common.screen_entrance_size_animation_pop"
                ],
                "bindings": [
                  {
                    "binding_name": "#paper_doll_skin"
                  },
                  {
                    "binding_type": "view",
                    "source_control_name": "viewer_panel",
                    "source_property_name": "#gesture_delta_source",
                    "target_property_name": "#gesture_delta_source"
                  },
                  {
                    "binding_type": "view",
                    "source_control_name": "viewer_panel",
                    "source_property_name": "#gesture_mouse_delta_x",
                    "target_property_name": "#gesture_mouse_delta_x"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "paper_doll_name_tag": {
          "ignored": "($pocket_edition and $pocket_screen)",
          "type": "custom",
          "background_color": [ 0, 0, 0, 0.8 ],
          "renderer": "name_tag_renderer",
          "layer": 2,
          "anchor_from": "top_middle",
          "anchor_to": "bottom_middle",
          "size": [ 8, 8 ],
          "offset": [ 0, 20 ],
          "bindings": [
            {
              "binding_name": "#playername"
            },
            {
              "binding_name": "#playername_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
     }
    ]
  },

  "skin_panel": {
    "type": "panel",
    "size": [ "50% - 75px", "100%" ],
    "controls": [
      {
        "interior@pause.skin_panel_interior": {}
      }
    ]
  },

  "skin_panel_interior": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "orientation": "vertical",
    "controls": [
      {
        "offset_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "anchor_from": "bottom_middle",
          "anchor_to": "bottom_middle",
          "controls": [
            {
              "viewer_panel@pause.skin_viewer_panel": {
                "tts_ignore_count": true
              }
            }
          ]
        }
      },
      {
        "fill_1": {
          "type": "panel",
          "layer": 1,
          "size": [ "fill", 5 ]
        }
      },
      {
        "change_profile_panel": {
          "type": "stack_panel",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "centering_panel_1": {
                "type": "panel",
                "size": [ "100%", "100%c" ],
                "controls": [
                  { "dressing_room_button@pause.dressing_room_button": {} }
                ]
              }
            },
            {
              "centering_panel_2": {
                "type": "input_panel",
                "size": [ "100%", "100%c" ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_select",
                    "to_button_id": "button.to_profile_or_skins_screen",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ],
                "controls": [
                  { "dressing_room_button_gamepad@pause.dressing_room_button_gamepad": {} }
                ],
                "bindings": [
                  {
                    "binding_name": "#dressing_room_controller_button_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            },
            {
              "centering_panel_3": {
                "type": "input_panel",
                "size": [ "100%", "100%c" ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_select",
                    "to_button_id": "button.menu_profile",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ],
                "controls": [
                  {
                    "profile_button@pause.profile_button": {
                      "$focus_id": "profile_button"
                    }
                  }
                ],
                "bindings": [
                  {
                    "binding_name": "#profile_button_b_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ],
          "bindings": [
            {
              "binding_name": "#can_change_skin",
              "binding_name_override": "#enabled"
            }
          ]
        }
      }

    ]
  },

  "pause_button_template@common_buttons.light_text_button": {
    "size": [ "100%", 28 ],
    "focus_identifier": "$pressed_button_name",
    "focus_change_right": "$focus_override_right",
    "focus_change_left": "$pressed_button_name"
  },

  "grid_button_template@common_buttons.light_text_button": {
    "size": [ "100%", 28 ]
  },

  "return_to_game_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_continue",
    "$button_text": "menu.returnToGame",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "$button_focus_precedence": 1,
    "focus_identifier": "return_to_game",
    "$focus_override_up": "icon_panel_main_focus",
    "focus_change_right": "friendsdrawer_button",
    "focus_change_left": "FOCUS_OVERRIDE_STOP",
    "variables": [
      {
        "requires": "$is_editor_playtest_roundtrip",
        "$button_text": "pauseScreen.editor.returnToTesting"
      },
      {
        "requires": "$is_editor_mode_enabled",
        "$button_text": "pauseScreen.editor.returnToEditing"
      }
    ]
  },

  "realms_stories_button_panel": {
    "type": "panel",
    "size": [ "100%", 28 ],
    "controls": [
      { "realms_stories_button@pause.realms_stories_button": {} },
      { "unread_story_count_panel@pause.unread_story_count_panel": {} }
    ],
    "bindings": [
      {
        "binding_name": "#realms_stories_button_primary_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "realms_stories_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_feed",
    "$button_text": "pauseScreen.realmsStories",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle"
  },

  "unread_story_count_panel": {
    "type": "panel",
    "anchor_from": "top_right",
    "anchor_to": "center",
    "size": [ "100%c", "100%c" ],
    "layer": 3,
    "controls": [
      {
        "text": {
          "type": "label",
          "color": "$tab_secondary_unchecked_text_color",
          "shadow": false,
          "text": "#realms_unread_story_count",
          "layer": 9,
          "controls": [
            {
              "background": {
                "type": "image",
                "texture": "textures/ui/invite_number_background",
                "layer": -1,
                "size": [ "100%+4px", "100%" ],
                "offset": [ -0.5, 0 ]
              }
            }
          ],
          "bindings": [
            {
              "binding_name": "#realms_unread_story_count",
              "binding_type": "global"
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#realms_unread_story_count_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "store_button_panel": {
    "type": "panel",
    "size": [ "100%", 28 ],
    "ignored": "($is_secondary_client or $is_editor_mode_enabled or $is_editor_playtest_roundtrip)",
    "controls": [
      { "store_button@pause.store_button": {} },
      { "store_error_button@pause.store_error_button": {} }
    ],
    "bindings": [
      {
        "binding_name": "(not #store_button_secondary_visible)",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "store_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_store",
    "$button_text": "$store_button_text",
    "bindings": [
      {
        "binding_name": "#store_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "store_error_button@common_buttons.dynamic_tooltip_notification_panel": {
    "size": [ "100%", "100%" ],
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.menu_store_error",
        "mapping_type": "pressed"
      },
      {
        "to_button_id": "button.is_hovered",
        "mapping_type": "pressed"
      }
    ],
    "consume_hover_events": false,
    "focus_enabled": true,
    "$dynamic_tooltip_button_visibility_binding_name": "(not #store_button_visible)",
    "$tooltip_popup_visible_binding": "#store_error_tooltip_visible",
    "$override_tooltip_popup_image": true,
    "$tooltip_popup_override_image_panel": "start.store_error_image",
    "$tooltip_text_binding_name": "#store_error_text",
    "$tool_tip_text_max_size": [ "160px", "default" ],
    "$tooltip_panel_content": "pause.store_error_button_content",
    "bindings": [
      {
        "binding_name": "(not #store_button_visible)",
        "binding_name_override": "#visible"
      }
    ]
  },

  "store_error_button_content": {
    "type": "image",
    "texture": "textures/ui/disabledButton",
    "layer": 9,
    "controls": [
      {
        "marketplace_button_label": {
          "layer": 9,
          "type": "label",
          "text": "$store_button_text",
          "color": "$light_button_locked_text_color"
        }
      }
    ]
  },

  "settings_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_settings",
    "$button_text": "menu.settings",
    "focus_change_right": "friendsdrawer_button",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle"
  },

  "how_to_play_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_how_to_play",
    "$button_text": "menu.howToPlay",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "ignored": "(not $education_edition)"
  },

  "invite_players_button@pause.grid_button_template": {
    "$pressed_button_name": "button.menu_invite_players",
    "$button_text": "pauseScreen.invite",
    "focus_change_down": "FOCUS_OVERRIDE_STOP",
    "$focus_override_right": "FOCUS_OVERRIDE_STOP",
    "bindings": [
      {
        "binding_name": "#legacy_invite_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      },
      {
        "binding_name": "#legacy_invite_button_enabled",
        "binding_name_override": "#enabled"
      }
    ]
  },

  "buy_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_buy_game",
    "$button_text": "$unlock_full_game_button_text",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "ignored": "(not $trial or $is_secondary_client)",
    "bindings": [
      {
        "binding_name": "#is_trial_version",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "quit_button@pause.pause_button_template": {
    "$pressed_button_name": "button.menu_quit",
    "$button_text": "pauseScreen.quit",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "$focus_override_down": "icon_panel_main_focus",
    "variables": [
      {
        "requires": "($is_secondary_client and not $is_editor_playtest_roundtrip)",
        "$button_text": "pauseScreen.secondaryClientLeave"
      },
      {
        "requires": "$is_editor_playtest_roundtrip",
        "$button_text": "pauseScreen.editor.quit"
      }
    ]
  },

  "feedback_button_primary_panel": {
    "type": "panel",
    "size": [ "100%", 28 ],
    "controls": [
      { "feedback_button_primary@pause.feedback_button_primary": {} }
    ],
    "bindings": [
      {
        "binding_name": "#feedback_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "feedback_button_primary@pause.pause_button_template": {
    "$pressed_button_name": "button.feedback_button_pressed",
    "$button_text": "pauseScreen.betaFeedback",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle"
  },

  "icon_button_hover_text": {
    "type": "image",
    "texture": "textures/ui/purpleBorder",
    "size": [ "100%cm + 8px", "100%cm + 8px" ],
    "offset": [ 0, 2 ],
    "layer": 200,
    "anchor_from": "bottom_middle",
    "anchor_to": "top_middle",
    "controls": [
      {
        "tooltip_text": {
          "type": "label",
          "size": [ "default", "default" ],
          "text": "$tooltip_text",
          "color": "$item_hover_text_color"
        }
      }
    ]
  },

  "icon_button_tooltip_trigger@common.button": {
    "size": [ "100%", "100%" ],
    "layer": 10,
    "ignored": "$touch",
    "sound_volume": 0.0,
    "$pressed_button_name": "button.do_nothing",
    "consume_hover_events": false,
    "focus_enabled": false,
    "$tooltip_text": "",
    "button_mappings": [],
    "controls": [
      { "default@common.empty_panel": {} },
      { "pressed@common.empty_panel": {} },
      { "hover@pause.icon_button_hover_text": {} }
    ]
  },

  "feedback_button@common_buttons.light_content_button": {
    "size": [ 24, 24 ],
    "$button_pressed_offset": [ 0, 0 ],
    "$button_content": "pause.feedback_icon",
    "$pressed_button_name": "button.feedback_button_pressed"
  },

  "feedback_icon_button": {
    "type": "panel",
    "size": [ 24, 24 ],
    "$button_tts_header": "accessibility.start.feedback",
    "$pressed_button_name": "button.feedback",
    "controls": [
      {
        "feedback_button@pause.feedback_button": {
          "ignored": "$education_edition",
          "$focus_override_left": "FOCUS_OVERRIDE_STOP"
        }
      },
      {
        "tooltip_trigger@pause.icon_button_tooltip_trigger": {
          "ignored": "$education_edition",
          "$tooltip_text": "accessibility.start.feedback"
        }
      }
    ]
  },

  "take_screenshot_gamepad_button_content": {
    "type": "panel",
    "size": [ "100%c", "100%cm" ],
    "controls": [
      {
        "button_y@common.gamepad_helper_y_14": {
          "$gamepad_helper_visible_binding_type": "none",
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "layer": -1,
          "offset": [ 6, 0 ]
        }
      },
      {
        "take_screenshot_icon@pause.take_screenshot_icon": {
          "anchor_from": "right_middle",
          "anchor_to": "right_middle"
        }
      }
    ]
  },

  "take_screenshot_gamepad_button@common_buttons.light_content_form_fitting_button": {
    "size": [ "100%c", "100%c" ],
    "$button_image_size_override": [ "100%c", "100%c" ],
    "$button_content_size_override": [ "100%c - 8px", "100%c - 4px" ],
    "$pressed_button_name": "button.screenshot",
    "$focus_id": "icon_panel_main_focus",
    "$button_tts_header": "key.screenshot",
    "$button_offset": [ -4, 0 ],
    "$button_pressed_offset": [ -4, 0 ],
    "$button_content": "pause.take_screenshot_gamepad_button_content",
    "$pressed_alpha": 0.65,
    "$hide_description": true,
    "bindings": [
      {
        "binding_type": "global",
        "binding_name": "#is_using_gamepad",
        "binding_name_override": "#visible"
      }
    ]
  },

  "achievements_button_small@common_buttons.light_content_button": {
    "$pressed_button_name": "button.menu_achievements",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "menu.achievements",
    "size": [ 24, 24 ],
    "$button_content": "pause.achievements_icon",
    "$pressed_alpha": 0.65
  },

  "how_to_play_button_small@common_buttons.light_content_button": {
    "$pressed_button_name": "button.menu_how_to_play",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "menu.howToPlay",
    "size": [ 24, 24 ],
    "$button_content": "pause.how_to_play_icon",
    "$pressed_alpha": 0.65
  },

  "how_to_play_button_small_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "controls": [
      { "button@pause.how_to_play_button_small": {} },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "menu.howToPlay" } }
    ]
  },

  "achievements_button_small_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_type": "global",
        "binding_name": "#achievements_visible",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      { "button@pause.achievements_button_small": {} },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "menu.achievements" } }
    ]
  },

  "settings_button_small@common_buttons.light_content_button": {
    "$pressed_button_name": "button.menu_settings",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "menu.settings",
    "size": [ 24, 24 ],
    "$button_content": "pause.settings_icon",
    "$pressed_alpha": 0.65
  },

  "settings_button_small_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "$focus_change_left|default": "",
    "controls": [
      { "button@pause.settings_button_small": { "focus_change_left": "$focus_change_left" } },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "menu.settings" } }
    ]
  },

  "take_screenshot_button@common_buttons.light_content_button": {
    "$pressed_button_name": "button.screenshot",
    "$focus_id": "icon_panel_main_focus",
    "$button_tts_header": "key.screenshot",
    "size": [ 24, 24 ],
    "$button_content": "pause.take_screenshot_icon",
    "$pressed_alpha": 0.65,
    "bindings": [
      {
        "binding_name": "(not #is_using_gamepad)",
        "binding_name_override": "#visible"
      }
    ]
  },

  "take_screenshot_button_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_name": "(not #is_using_gamepad)",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      { "button@pause.take_screenshot_button": {} },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "key.screenshot" } }
    ]
  },

  "take_screenshot_gamepad_button_with_tooltip": {
    "type": "panel",
    "size": [ 44, 24 ],
    "bindings": [
      {
        "binding_type": "global",
        "binding_name": "#is_using_gamepad",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      { "button@pause.take_screenshot_gamepad_button": {} },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "key.screenshot" } }
    ]
  },

  "store_button_small@common_buttons.light_content_button": {
    "$pressed_button_name": "button.menu_store",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "menu.store",
    "size": [ 24, 24 ],
    "$button_content": "pause.store_icon",
    "$pressed_alpha": 0.65
  },

  "store_button_small_disabled@common_buttons.deactivated_light_content_button": {
    "$pressed_button_name": "button.menu_store",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "menu.store",
    "size": [ 24, 24 ],
    "$button_content": "pause.store_icon_disabled"
  },

  "store_icon_disabled": {
    "type": "image",
    "texture": "textures/ui/marketplace_pause_menu_icon",
    "layer": 3,
    "size": [ 24, 14 ],
    "color": [ 0.5, 0.5, 0.5 ]
  },

  "store_button_small_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_type": "global",
        "binding_name": "#store_button_secondary_visible",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      {
        "enabled_button@pause.store_button_small": {
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#store_button_secondary_enabled",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "disabled_button@pause.store_button_small_disabled": {
          "bindings": [
            {
              "binding_type": "global",
              "binding_name": "#store_button_secondary_disabled",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "menu.store" } }
    ]
  },

  "realms_stories_button_small@common_buttons.light_content_button": {
    "$pressed_button_name": "button.menu_feed",
    "$focus_id": "icon_panel_main_focus",
    "focus_change_down": "return_to_game",
    "$button_tts_header": "pauseScreen.realmsStories",
    "size": [ 24, 24 ],
    "$button_content": "pause.realms_stories_icon",
    "$pressed_alpha": 0.65,
    "bindings": [
      {
        "binding_name": "#realms_stories_button_secondary_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ]
  },

  "realms_stories_button_small_with_tooltip": {
    "type": "panel",
    "size": [ 24, 24 ],
    "bindings": [
      {
        "binding_name": "#realms_stories_button_secondary_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ],
    "controls": [
      { "button@pause.realms_stories_button_small": {} },
      { "tooltip_trigger@pause.icon_button_tooltip_trigger": { "$tooltip_text": "pauseScreen.realmsStories" } }
    ]
  },

  "pause_screen@common.base_screen": {
    "cache_screen": true,

    "$screen_animations": [
      "@common.screen_exit_animation_push_fade",
      "@common.screen_exit_animation_pop_fade",
      "@common.screen_entrance_animation_push_fade",
      "@common.screen_entrance_animation_pop_fade"
    ],

    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_continue",
        "mapping_type": "global"
      },
      {
        "from_button_id": "button.controller_start",
        "to_button_id": "button.menu_continue",
        "mapping_type": "global"
      },
      {
        "from_button_id": "button.menu_vr_realign",
        "to_button_id": "button.menu_vr_realign",
        "mapping_type": "global",
        "scope": "controller"
      },
      {
        "from_button_id": "button.menu_tab_left",
        "to_button_id": "button.menu_tab_left",
        "mapping_type": "global",
        "scope": "view"
      },
      {
        "from_button_id": "button.menu_tab_right",
        "to_button_id": "button.menu_tab_right",
        "mapping_type": "global",
        "scope": "view"
      }
    ],

    "variables": [
      {
        "requires": "$ignore_edu_pause",
        "$screen_content": "pause.pause_screen_content",
        "$screen_bg_content": "common.screen_background",
        "$screen_background_alpha": 0.1
      },
      {
        "requires": "(not $ignore_edu_pause)",
        "$screen_content": "edu_pause.pause_screen_content"
      }
    ]
  },

  "pause_screen_content": {
    "type": "panel",
    "size": [ "100%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "layer": 1,
    "variables": [
      {
        "requires": "$education_edition",
        "$achievements_ignored": true
      },
      {
        "requires": "$trial",
        "$achievements_ignored": true
      },
      {
        "requires": "(not $supports_xbl_achievements)",
        "$achievements_ignored": true
      }
    ],
    "controls": [
      { "pause_screen_main_panels@pause.pause_screen_main_panels": {} },
      {
        "skin_panel@pause.skin_panel": {
          "layer": 1,
          "anchor_from": "bottom_right",
          "anchor_to": "bottom_right"
        }
      },
      { "top_right_panel@pause.top_right_panel": {} },
      { "gamepad_helpers@pause.gamepad_helpers": {} },
      { "keyboard_helpers@pause.keyboard_helpers": {} },
      {
        "debug_drawer_button_panel@pause.debug_drawer_button_panel": {
          "$focus_id": "debug_drawer_button",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "offset": [ -50, 3 ]
        }
      }
    ]
  },

  //--------------------------------------------------------------------------
  // Top right panel (contains pause announcement and friends drawer)
  //--------------------------------------------------------------------------

  "top_right_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "offset": [ -5, 5 ],
    "size": [ "100%c", "100%c" ],
    "layer": 10,
    "controls": [
      {
        "pause_panel@pause.pause_announcement_panel_grey": {
          "ignored": "$pause_menu_icon_settings_layout"
        }
      },
      {
        "friendsdrawer_button_panel@pause.friendsdrawer_button_panel": {}
      }
    ]
  },

  //--------------------------------------------------------------------------
  // Friends drawer button panel
  //--------------------------------------------------------------------------

  "friendsdrawer_button_panel": {
    "type": "panel",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ "100%c", "100%c" ],
    "controls": [
      {
        "friendsdrawer_button@friendsbutton.button": {
          "$pressed_button_name": "button.friends_drawer",
          "focus_change_up": "profile_button",
          "focus_change_right": "FOCUS_OVERRIDE_STOP",
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "$context": "ingame",
          "bindings": [
            {
              "binding_name": "#friends_drawer_button_focus_override",
              "binding_name_override": "#focus_change_down"
            }
          ]
        }
      },
      {
        "friends_drawer_ftue_popup_wrapper": {
          "type": "panel",
          "size": [ 0, 0 ],
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "allow_clipping": false,
          "controls": [
            {
              "friends_drawer_ftue_popup@friendsbutton.friends_drawer_popup": {
                "offset": [ -100, 28 ], // Adjusted by ~half of popup width in order to position correctly
                "focus_enabled": false
              }
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#friends_drawer_button_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ],
    "$focus_id": "friendsdrawer_button"
  },

  "pause_screen_main_panels": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "113%", "113%" ],
    "$achievements_ignored|default": false,
    "controls": [
      {
        "menu@pause.left_buttons_panel": {}
      }
    ]
  },

  "left_buttons_panel@common.screen_background": {
    "$panel_size|default": [ "55%", "100%" ],
    "variables": [
      {
        "requires": "$is_big_screen",
        "$panel_size": [ "55%", "100%" ]
      }
    ],
    "size": "$panel_size",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "alpha": 0.5,
    "layer": 0,
    "controls": [
      {
        "filler@pause.filler_panel": {
          "size": [ "100%", 10 ]
        }
      },
      {
        "trialTime": {
          "type": "custom",
          "ignored": "(not $trial)",
          "renderer": "trial_time_renderer",
          "size": [ "default", 10 ],
          "offset": [ -2, -4 ],
          "layer": 3,
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "bindings": [
            {
              "binding_name": "#is_trial_version",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      { "the_rest_panel@pause.the_rest_panel": {} }
    ]
  },

  "smaller_buttons_panel": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "orientation": "vertical",
    "layer": 1,
    "controls": [
      {
        "stacked_column": {
          "type": "stack_panel",
          "size": [ "100%", 32 ],
          "orientation": "horizontal",
          "controls": [
            {
              "fill_1": {
                "type": "panel",
                "layer": 1,
                "size": [ "fill", "100%" ]
              }
            },

            {
              "side_padding": {
                "type": "panel",
                "size": [ 5, 0 ]
              }
            },

            {
              "small_settings_button": {
                "type": "input_panel",
                "size": [ "100%c + 4px", 32 ],
                "controls": [
                  {
                    "small_settings_btn@pause.settings_button_small_with_tooltip": {
                      "$focus_change_left": "FOCUS_OVERRIDE_STOP"
                    }
                  }
                ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_secondary_select",
                    "to_button_id": "button.menu_settings",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ],
                "ignored": "(not $pause_menu_icon_settings_layout)"
              }
            },
            {
              "small_settings_padding": {
                "type": "panel",
                "size": [ "2%", 0 ],
                "ignored": "(not $pause_menu_icon_settings_layout)"
              }
            },

            {
              "small_achievements_button": {
                "type": "input_panel",
                "ignored": "$achievements_ignored",
                "size": [ "100%c + 4px", 32 ],
                "controls": [
                  { "small_achievements_btn@pause.achievements_button_small_with_tooltip": {} }
                ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_secondary_select",
                    "to_button_id": "button.menu_achievements",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ]
              }
            },
            {
              "small_achievements_padding": {
                "type": "panel",
                "size": [ "2%", 0 ]
              }
            },
            {
              "small_how_to_play_button": {
                "type": "input_panel",
                "size": [ "100%c + 4px", 32 ],
                "controls": [
                  { "small_how_to_play_btn@pause.how_to_play_button_small_with_tooltip": {} }
                ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_secondary_select",
                    "to_button_id": "button.menu_how_to_play",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ]
              }
            },
            {
              "small_how_to_play_padding": {
                "type": "panel",
                "size": [ "2%", 0 ]
              }
            },
            {
              "small_realms_stories_button": {
                "type": "input_panel",
                "size": [ "100%c + 4px", 32 ],
                "controls": [
                  { "small_realms_stories_btn@pause.realms_stories_button_small_with_tooltip": {} }
                ],
                "bindings": [
                  {
                    "binding_name": "#realms_stories_button_secondary_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            {
              "small_realms_stories_padding": {
                "type": "panel",
                "size": [ "2%", 0 ],
                "bindings": [
                  {
                    "binding_name": "#realms_stories_button_secondary_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            {
              "small_store_button": {
                "type": "input_panel",
                "size": [ "100%c + 4px", 32 ],
                "ignored": "($is_secondary_client or $is_editor_mode_enabled or $is_editor_playtest_roundtrip)",
                "controls": [
                  { "small_store_btn@pause.store_button_small_with_tooltip": {} }
                ],
                "bindings": [
                  {
                    "binding_name": "#store_button_secondary_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            {
              "small_store_padding": {
                "type": "panel",
                "size": [ "2%", 0 ],
                "ignored": "($is_secondary_client or $is_editor_mode_enabled or $is_editor_playtest_roundtrip)",
                "bindings": [
                  {
                    "binding_name": "#store_button_secondary_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            {
              "take_screenshot_btn": {
                "type": "input_panel",
                "size": [ "100%c + 4px", 32 ],
                "controls": [
                  { "take_screenshot_button@pause.take_screenshot_button_with_tooltip": {} },
                  { "take_screenshot_gamepad_button@pause.take_screenshot_gamepad_button_with_tooltip": {} }
                ],
                "bindings": [
                  {
                    "binding_name": "#screenshot_button_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ],
                "button_mappings": [
                  {
                    "from_button_id": "button.controller_secondary_select",
                    "to_button_id": "button.screenshot",
                    "mapping_type": "global",
                    "scope": "controller"
                  }
                ]
              }
            },
            {
              "screenshot_padding": {
                "type": "panel",
                "size": [ "2%", 0 ],
                "bindings": [
                  {
                    "binding_name": "#screenshot_button_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            {
              "fill_3": {
                "type": "panel",
                "layer": 1,
                "size": [ "fill", "100%" ]
              }
            }
          ]
        }
      },
      {
        "padding_bottom@common.empty_panel": {
          "size": [ "100%", 1 ]
        }
      }
    ]
  },

  "social_buttons_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "friendsbutton_panel": {
          "type": "panel",
          "size": [ "100%", 40 ],
          "anchor_from": "top_right",
          "anchor_to": "top_right",
          "controls": [
            {
              "friendsdrawer_button@friendsbutton.button": {
                "$button_tts_header": "key.screenshot",
                "$context": "ingame"
              }
            },
           {
              "friends_drawer__ftue_popup@friendsbutton.friends_drawer_popup": {
                "anchor_from": "top_right",
                "anchor_to": "top_right",
                "offset": [ -35, 35 ]
              }
           }
          ],
          "bindings": [
            {
              "binding_name": "#friends_drawer_button_visible",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      {
        "invitebutton_panel": {
          "type": "stack_panel",
          "orientation": "vertical",
          "size": [ "100%", "100%c" ],
          "controls": [
            {
              "invite_button@iconbutton.button": {
                "$pressed_button_name": "button.menu_invite_players",
                "$button_text": "pauseScreen.invite",
                "$icon_texture": "textures/ui/Envelope",
                "$textbutton_binding_type": "none"
              }
            },
            {
              "vertical_padding_2@pause.vertical_padding": {
                "size": [ 0, 3 ]
              }
            }
          ],
          "bindings": [
            {
              "binding_name": "#invite_button_visible",
              "binding_name_override": "#visible",
              "binding_type": "global"
            },
            {
              "binding_name": "#invite_button_enabled",
              "binding_name_override": "#enabled"
            }
          ]
        }
      }
    ]
  },

  "the_rest_panel": {
    "type": "stack_panel",
    "size": [ "100%", "fill" ],
    "orientation": "horizontal",
    "layer": 1,
    "controls": [
      {
        "fill_1": {
          "type": "panel",
          "layer": 1,
          "size": [ "fill", "100%" ]
        }
      },
      {
        "pause_menu@pause.menu_the_rest_panel": {}
      },
      {
        "fill_3": {
          "type": "panel",
          "layer": 1,
          "size": [ "fill", "100%" ]
        }
      }
    ]
  },

  "paused_text": {
    "type": "label",
    "color": "$f_color_format",
    "text": "pauseScreen.gameIsPaused",
    "anchor_from": "center",
    "anchor_to": "center"
  },

  "green_tag": {
    "type": "image",
    "size": [ "100%", "100%" ],
    "texture": "textures/ui/white_background",
    "fill": true,
    "color": [ 0, 0.3, 0 ]
  },

  "paused_text_panel_grey@common.screen_background": {
    "size": [ "100%c + 16px", 24 ],
    "$screen_background_alpha": 0.8,
    "controls": [
      {
        "pause@paused_text": {}
      }
    ]
  },

  "paused_text_panel_green@pause.green_tag": {
    "size": [ "120%c", 16 ],
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
      {
        "horizontal_stack": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "anchor_from": "center",
          "anchor_to": "center",
          "offset": [ 0, 4 ],
          "controls": [
            {
              "pause_icon@pause.pause_icon": {
                "offset": [ 0, 3 ],
                "size": [ 8, 8 ]
              }
            },
            {
              "fill_1": {
                "type": "panel",
                "size": [ 3, 0 ]
              }
            },
            {
              "pause@paused_text": {}
            }
          ]
        }
      }
    ]
  },

  "transparent_background": {
    "type": "image",
    "texture": "textures/ui/menubackground",
    "layer": 1,
    "alpha": 0.8
  },

  "non_transparent_background": {
    "type": "image",
    "texture": "textures/ui/menubackground",
    "layer": 1,
    "alpha": 1
  },

  "menu_the_rest_panel": {
    "type": "panel",
    "$panel_size|default": [ "60%", "60%" ],
    "variables": [
      {
        "requires": "$is_big_screen",
        "$panel_size": [ "60%", "60%" ]
      }
    ],
    "size": "$panel_size",
    "focus_container": true,
    "use_last_focus": true,
    "focus_navigation_mode_left": "contained",
    "controls": [
      { "menu_button_control@pause.menu_button_control": {} }
    ]
  },

  "menu_button_control@pause.transparent_background": {
    "size": [ "100%", "100%c + 2px" ],
    "alpha": 0,
    "anchor_from": "center",
    "anchor_to": "center",
    "controls": [
      { "menu_background@pause.menu_background": {} }
    ]
  },

  "pause_announcement_panel_grey": {
    "type": "stack_panel",
    "size": [ "100%c", "100%c" ],
    "orientation": "vertical",
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#pause_annoucement_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ],
    "controls": [
      {
        "horizontal_stack": {
          "type": "stack_panel",
          "size": [ "100%c", 32 ],
          "orientation": "horizontal",
          "controls": [
            {
              "fill_1": {
                "type": "panel",
                "layer": 1,
                "size": [ 8, "100%" ]
              }
            },
            { "pause_text@pause.paused_text_panel_grey": {} },
            {
              "fill_2": {
                "type": "panel",
                "layer": 1,
                "size": [ 8, "100%" ]
              }
            }
          ]
        }
      }
    ]
  },

  "pause_announcement_panel_green": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "orientation": "vertical",
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#pause_annoucement_visible",
        "binding_name_override": "#visible",
        "binding_type": "global"
      }
    ],
    "controls": [
      {
        "horizontal_stack": {
          "type": "stack_panel",
          "size": [ "100%", 32 ],
          "orientation": "horizontal",
          "controls": [
            {
              "fill_1": {
                "type": "panel",
                "layer": 1,
                "size": [ "fill", "100%" ]
              }
            },
            { "pause_text@pause.paused_text_panel_green": {} },
            {
              "fill_2": {
                "type": "panel",
                "layer": 1,
                "size": [ "fill", "100%" ]
              }
            }
          ]
        }
      }
    ]
  },

  "menu_background@pause.transparent_background": {
    "size": [ "100% - 2px", "100%c + 8px" ],
    "alpha": 0,
    "layer": 1,
    "anchor_from": "center",
    "anchor_to": "center",
	"offset": [ "13%", "0%" ],
    "controls": [
      {
        "button_panel": {
          "type": "stack_panel",
          "size": [ "100% - 8px", "100%c" ],
          "anchor_from": "center",
          "anchor_to": "center",
          "controls": [
            {
              "title_image": {
                "type": "panel",
                "anchor_from": "top_middle",
                "anchor_to": "top_middle",
                "size": [ "100%", "20%x" ],
                "controls": [
                  {
                    "image@common_art.title_image": {
                      "size": [ "100%", "100%" ]
                    }
                  }
                ]
              }
            },
            {
              "fill_1": {
                "type": "panel",
                "layer": 1,
                "size": [ "fill", 4 ]
              }
            },
            { "return_to_game_button@pause.return_to_game_button": {} },
            { "return@pause.vertical_padding": { "size": [ 0, 3 ] } },
            { "settings_button@pause.settings_button": { "ignored": "$pause_menu_icon_settings_layout" } },
            { "settings@pause.vertical_padding": { "size": [ 0, 3 ], "ignored": "$pause_menu_icon_settings_layout" } },
            { "feedback_button_primary_panel@pause.feedback_button_primary_panel": {} },
            {
              "feedback@pause.vertical_padding": {
                "size": [ 0, 3 ],
                "bindings": [
                  {
                    "binding_name": "#feedback_button_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            { "realms_stories_button_panel@pause.realms_stories_button_panel": {} },
            {
              "realms_stories@pause.vertical_padding": {
                "size": [ 0, 3 ],
                "bindings": [
                  {
                    "binding_name": "#realms_stories_button_primary_visible",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            { "buy_button@pause.buy_button": {} },
            {
              "buy@pause.vertical_padding": {
                "size": [ 0, 3 ],
                "bindings": [
                  {
                    "binding_name": "#is_trial_version",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            { "store_button_panel@pause.store_button_panel": {} },
            {
              "store_button_panel_padding@pause.vertical_padding": {
                "ignored": "$is_secondary_client",
                "size": [0, 3],
                "bindings": [
                  {
                    "binding_name": "(not #store_button_secondary_visible)",
                    "binding_name_override": "#visible",
                    "binding_type": "global"
                  }
                ]
              }
            },
            { "quit_button@pause.quit_button": {} },
            { "smaller_buttons@pause.smaller_buttons_panel": {} },

            {
              "pause_panel@pause.pause_announcement_panel_green": {
                "ignored": "(not $pause_menu_icon_settings_layout)"
              }
            }
          ]
        }
      }
    ]
  },


  "info_panel_content_list": {
    "type": "stack_panel",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "size": [ "100% - 4px", "100%" ],
    "orientation": "vertical",
    "controls": [
      { "player_list_scrolling_panel@pause.player_list_scrolling_panel": {} },
      {
        "vertical_padding@pause.vertical_padding": {
          "size": [ 0, 8 ]
        }
      }
    ]
  },

  "info_panel_background@pause.transparent_background": {
    "size": [ "200%", "120%" ],
    "offset": [ 0, "-10%" ],
    "anchor_from": "top_right",
    "anchor_to": "top_middle"
  },

  "info_panel@pause.pause_screen_border": {
    "size": [ 150, "100%" ],
    "anchor_from": "right_middle",
    "anchor_to": "right_middle",
    "ignored": "($trial and $is_new_trial_mode_enabled)",
    "controls": [
      { "info_panel_background@pause.info_panel_background": {} },
      { "info_panel_list@pause.info_panel_content_list": {} }
    ]
  },

  "player_panel_background@pause.transparent_background": {
    "anchor_from": "center",
    "anchor_to": "center",
    "size": [ "100% - 2px", "100% - 2px" ],
    "controls": [
      { "player_list_scrolling_panel@pause.player_list_scrolling_panel": {} }
    ]
  },

  "player_list": {
    "type": "stack_panel",
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "size": [ "100%", "100%c" ],
    "focus_container": true,
    "use_last_focus": true,
    "focus_navigation_mode_right": "contained",
    "controls": [
      {
        "vertical_padding_0@pause.vertical_padding": {
          "size": [ 0, 8 ]
        }
      },
      {
        "social_buttons_panel@pause.social_buttons_panel": {}
      },
      {
        "players_label@pause.players_label": {
          "ignored": "$education_edition"
        }
      },
      {
        "vertical_padding_4@pause.vertical_padding": {
          "size": [ 0, 3 ],
          "ignored": "$education_edition"
        }
      },
      { "players_grid_panel@pause.players_grid": {} },
      {
        "vertical_padding_5@pause.vertical_padding": {
          "size": [ 0, 3 ]
        }
      },
      { "invite_players_button_panel@pause.invite_players_button_panel": {} },
      {
        "vertical_padding_6@pause.vertical_padding": {
          "size": [ 0, 3 ]
        }
      },
      { "disconnected_from_multiplayer_label_panel@pause.disconnected_from_multiplayer_label_panel": {} },
      {
        "vertical_padding_7@pause.vertical_padding": {
          "size": [ 0, 1 ]
        }
      }
    ]
  },

  "player_lists": {
    "type": "panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "normal_list@pause.player_list": {
          "bindings": [
            {
              "binding_name": "(not #list_has_display_objective)",
              "binding_name_override": "#visible"
            }
          ]
        }
      },
      {
        "scoreboard_list@scoreboard.scoreboard_player_list": {
          "bindings": [
            {
              "binding_name": "#list_has_display_objective",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  },

  "player_list_scrolling_panel@common.scrolling_panel": {
    "size": [ "100% - 4px", "100%" ],
    "offset": [ 2, 0 ],
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "$show_background": false,
    "$scroll_track_size": [ 5, "100% - 4px" ],
    "$scroll_track_offset|default": [ -4, 2 ],
    "$scrolling_content": "pause.player_lists"
  },

  "disconnected_label": {
    "type": "label",
    "size": [ "100%", "default" ],
    "color": "$main_header_text_color",
    "layer": 1
  },

  "disconnected_from_multiplayer_label_panel": {
    "type": "stack_panel",
    "size": [ "100%", "100%c" ],
    "controls": [
      {
        "disconnected_from_xbox_live_label@pause.disconnected_label": {
          "text": "pauseScreen.xboxLiveDisconnect",
          "bindings": [
            {
              "binding_name": "#disconnected_from_xbox_live_label_visible",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      {
        "disconnected_from_third_party_label@pause.disconnected_label": {
          "text": "pauseScreen.thirdPartyConsoleDisconnect",
          "bindings": [
            {
              "binding_name": "#disconnected_from_third_party_label_visible",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      {
        "disconnected_from_adhoc_label@pause.disconnected_label": {
          "text": "pauseScreen.thirdPartyConsoleAdhocDisconnect",
          "bindings": [
            {
              "binding_name": "#disconnected_from_adhoc_label_visible",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      {
        "disconnected_from_crossplatform_multiplayer@pause.disconnected_label": {
          "text": "options.crossPlatformMultiplayerDisabled",
          "bindings": [
            {
              "binding_name": "#disconnected_from_crossplatform_multiplayer",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      },
      {
        "disconnected_from_multiplayer@pause.disconnected_label": {
          "text": "options.multiplayerDisabled",
          "bindings": [
            {
              "binding_name": "#disconnected_from_multiplayer",
              "binding_name_override": "#visible",
              "binding_type": "global"
            }
          ]
        }
      }
    ]
  },

  "invite_players_button_panel": {
    "type": "panel",
    "size": [ "100% - 1px", "100%c" ],
    "controls": [
      {
        "invite_players_button@pause.invite_players_button": {}
      }
    ]
  },

  "ip_label": {
    "type": "label",
    "text": "#ip",
    "size": [ "100%", 10 ],
    "color": "$main_header_text_color",
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#ip_address_text",
        "binding_name_override": "#ip",
        "binding_condition": "visibility_changed"
      }
    ]
  },


  "players_label": {
    "type": "label",
    "text": "#players_list_title",
    "localize": false,
    "size": [ "100%", 10 ],
    "color": "$main_header_text_color",
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#players_list_title",
        "binding_type": "global"
      }
    ]
  },

  "players_grid": {
    "type": "grid",
    "size": [ "100%", "default" ],
    "grid_item_template": "pause.player_grid_item",
    "grid_dimension_binding": "#players_grid_dimension",
    "collection_name": "players_collection",
    "anchor_to": "top_left",
    "anchor_from": "top_left",
    "bindings": [
      {
        "binding_name": "#players_grid_dimension",
        // Necessary do to a bug with grid item bindings not refreshing when the grid is inside a stack panel
        "binding_condition": "always"
      }
    ]
  },

  "player_grid_item": {
    "type": "panel",
    "size": [ "100%", 27 ],
    "controls": [
      { "player_grid_item_content@pause.player_grid_item_content": {} }
    ]
  },

  "player_grid_item_content": {
    "type": "panel",

    "controls": [
      {
        "player_button_panel": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "anchor_from": "top_middle",
          "anchor_to": "top_middle",
          "size": [ "100%", "100% + 1px" ],
          "controls": [
            {
              "player_button_banner": {
                "type": "panel",
                "size": [ "fill", "100%" ],
                "controls": [
                  { "player_button@pause.player_button": {} },
                  { "player_banner@pause.player_banner": {} }
                ]
              }
            },
            {
              "player_permission_button_padding": {
                "type": "panel",
                "size": [ 27, "100%" ],
                "bindings": [
                  {
                    "binding_name": "#permissions_button_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "player_permission_button_panel": {
          "type": "panel",
          "anchor_to": "top_right",
          "anchor_from": "top_right",
          "offset": [ "-1px", 0 ],
          "size": [ "100%c", "100% + 1px" ],
          "controls": [
            { "player_permission_button@pause.player_permission_button": {} }
          ],
          "bindings": [
            {
              "binding_name": "#permissions_button_visible",
              "binding_name_override": "#visible"
            }
          ]
        }
      }
    ]
  },

  "player_permission_button@common_buttons.dark_content_button": {
    "size": [ 28, "100%" ],
    "$button_content": "pause.player_permission_button_content",
    "$button_tts_header": "accessibility.pause.permissions",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.menu_permission",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.menu_permission",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_type": "collection_details",
        "binding_collection_name": "players_collection"
      }
    ]
  },

  "player_permission_button_content": {
    "type": "panel",
    "size": [ 15, 15 ],
    "controls": [
      {
        "permission_icon_image": {
          "type": "image",
          "texture": "#player_permission_level_icon_texture",
          "size": [ 15, 15 ],
          "bindings": [
            {
              "binding_name": "#player_permission_level_icon_texture",
              "binding_name_override": "#texture",
              "binding_type": "collection",
              "binding_collection_name": "players_collection"
            }
          ]
        }
      }
    ]
  },

  "vertical_padding": {
    "type": "panel",
    "size": [ 0, 2 ]
  },

  "horizontal_padding": {
    "type": "panel",
    "size": [ 2, 0 ]
  },

  "player_button_content": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "size": [ "100% - 4px", "100% - 4px" ],
    "offset": [ 4, 0 ],
    "layer": 3,
    "controls": [
      {
        "player_pic_panel@pause.player_pic_panel": {
          "layer": 1
        }
      },
      {
        "player_gamertag@pause.gametag_wrapper": {
          "size": [ "fill", "100%" ],
          "layer": 1
        }
      },
      {
        "platform_icon@pause.platform_icon_panel": {
          "layer": 1
        }
      }
    ]
  },

  "player_button@common_buttons.dark_content_button": {
    "size": [ "100%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "$button_content": "pause.player_button_content",
    "button_mappings": [
      {
        "from_button_id": "button.menu_select",
        "to_button_id": "button.player_profile_card",
        "mapping_type": "pressed"
      },
      {
        "from_button_id": "button.menu_ok",
        "to_button_id": "button.player_profile_card",
        "mapping_type": "focused"
      }
    ],
    "bindings": [
      {
        "binding_name": "#button_enabled",
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name_override": "#visible"
      },
      {
        "binding_type": "collection_details",
        "binding_collection_name": "players_collection"
      }
    ]
  },

  "player_banner@pause.player_grid_banner": {
    "size": [ "100%", "100%" ],
    "anchor_from": "top_left",
    "anchor_to": "top_left",
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#button_disabled",
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name_override": "#visible"
      }
    ]
  },

  "player_pic_panel": {
    "type": "panel",
    "size": [ 20, "100%" ],
    "offset": [ 1, 0 ],
    "anchor_to": "left_middle",
    "anchor_from": "left_middle",
    "ignored": "$education_edition",
    "controls": [
      { "player_gamer_pic@pause.player_gamer_pic": {} },
      { "player_local_icon@pause.player_local_icon": {} }
    ]
  },

  "player_local_icon": {
    "type": "image",
    "texture": "textures/ui/lan_icon",
    "size": [ 13, 13 ],
    "layer": 1,
    "bindings": [
      {
        "binding_name": "#local_icon_visible",
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name_override": "#visible"
      }
    ]
  },

  "player_gamer_pic": {
    "type": "image",
    "texture": "#texture",
    "size": [ 18, 18 ],
    "layer": 1,
    "texture_file_system": "#texture_source",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "bindings": [
      {
        "binding_name": "#texture",
        "binding_type": "collection",
        "binding_collection_name": "players_collection"
      },
      {
        "binding_name": "#texture_source",
        "binding_name_override": "#texture_file_system",
        "binding_type": "collection",
        "binding_collection_name": "players_collection"
      },
      {
        "binding_name": "#gamerpic_visible",
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name_override": "#visible"
      }
    ],
    "controls": [
      {
        "player_panel_black_border@pause.pause_screen_border": {
          "size": [ "100% + 2px", "100% + 2px" ],
          "color": [ 0, 0, 0 ],
          "anchor_from": "center",
          "anchor_to": "center"
        }
      }
    ]
  },

  "gametag_wrapper": {
    "type": "panel",
    "size": [ "100%c", "100%" ],
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "controls": [
      {
        "gamertag@pause.player_gamertag": {}
      }
    ]
  },

  "platform_icon_panel": {
    "type": "panel",
    "$icon_panel_size|default": [ "100%c + 4px", "100%" ],
    "size": "$icon_panel_size",
    "controls": [
      {
        "platform_icon@pause.platform_icon": {
          "layer": 1,
          "anchor_from": "left_middle",
          "anchor_to": "left_middle",
          "size": [ 15, 15 ]
        }
      }
    ]
  },

  "player_gamertag": {
    "type": "label",
    "color": "$main_header_text_color",
    "text": "#gamertag",
    "anchor_from": "left_middle",
    "anchor_to": "left_middle",
    "size": [ "100%", 10 ],
    "layer": 2,
    "bindings": [
      {
        "binding_name": "#gamertag",
        "binding_type": "collection",
        "binding_collection_name": "players_collection"
      }
    ]
  },

  "platform_icon": {
    "ignored": "(not $platform_icons_visible)",
    "type": "image",
    "texture": "textures/ui/platform_icon",
    "bindings": [
      {
        "binding_name": "#is_platform_icon_visible",
        "binding_type": "collection",
        "binding_collection_name": "players_collection",
        "binding_name_override": "#visible"
      }
    ]
  },

  "player_grid_banner_no_focus": {
    "type": "image",
    "texture": "textures/ui/MainBannersHover"
  },

  "player_grid_banner": {
    "type": "panel",
    "controls": [
      {
        "player_grid_banner_no_focus@pause.player_grid_banner_no_focus": {
          "controls": [
            {
              "player_button_content@pause.player_button_content": {
                "offset": [ 7, 0 ],
                "size": [ "92%", "90%" ]
              }
            }
          ]
        }
      },
      {
        "focus_border_button@pause.focus_border_button": {
          "tts_inherit_siblings": true,
          "layer": 5
        }
      }
    ]
  },

  "focus_border_button@common.button": {
    "size": [ "100%", "100%" ],
    "sound_volume": 0.0,
    "$pressed_button_name": "button.pause_focus_filler",
    "$button_tts_name": "",
    "controls": [
      { "default@pause.filler_panel": {} },
      { "hover@pause.focus_border": {} },
      { "pressed@pause.focus_border": {} }
    ]
  },

  "focus_border": {
    "type": "image",
    "texture": "textures/ui/focus_border_white",
    "color": [ 0.7, 0.7, 0.7 ]
  },

  "pause_screen_border": {
    "type": "image",
    "layer": 2,
    "texture": "textures/ui/pause_screen_border"
  },

  "filler_panel": {
    "type": "panel",
    "layer": 1
  },

  "gamepad_helpers": {
    "type": "panel",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "offset": [ -66, "-4px" ],
    "size": [ "100%c", 10 ],
    "layer": 10,
    "visible": "($win10_edition and $is_holographic)",
    "controls": [
      { "gamepad_helper_y@common.gamepad_helper_y": {} }
    ]
  },

  "keyboard_helpers": {
    "type": "panel",
    "anchor_from": "bottom_middle",
    "anchor_to": "bottom_middle",
    "offset": [ -66, "-4px" ],
    "size": [ "100%c", 10 ],
    "layer": 10,
    "visible": "($win10_edition and $is_holographic)",
    "$keyboard_helper_visible_binding": "#edu_keyboard_helper_visible",
    "$ignore_image": true,
    "controls": [
      { "keyboard_helper_keys@common.keyboard_helper_keys": {} }
    ]
  },

  "debug_drawer_button_content": {
    "type": "panel",
    "size": [ "100%c", "100%cm" ],
    "controls": [
      {
        "button_label_panel": {
          "type": "panel",
          "offset": [ -1, 0 ],
          "size": [ "100%c", "100%c" ],
          "anchor_from": "right_middle",
          "anchor_to": "right_middle",
          "controls": [
            {
              "button_label_text_left@pause.controller_button_label": {
                "size": [ "default", "default" ],
                "max_size": [ 80, 20 ]
              }
            }
          ]
        }
      }
    ]
  },

  "debug_drawer_button_panel": {
    "type": "panel",
    "anchor_from": "top_right",
    "anchor_to": "top_right",
    "offset": [ 0, 0 ],
    "size": [ 80, 20 ],
    "layer": 3,
    "controls": [
      {
        "debug_drawer_button_input": {
          "type": "input_panel",
          "size": [ "100%", "100%" ],
          "controls": [
            {
              "debug_drawer_button@common_buttons.light_text_form_fitting_button": {
                "$pressed_button_name": "button.debug_drawer_button",
                "$form_fitting_min_size": [ "100%c + 2px", 22 ],
                "anchor_from": "bottom_middle",
                "anchor_to": "bottom_middle",
                "$button_text": "Debug Drawer",
                "offset": [ 45, 33 ],
                "$pressed_alpha": 0.65,
                "bindings": [
                  {
                    "binding_name": "#debug_drawer_button_visible",
                    "binding_name_override": "#visible"
                  }
                ]
              }
            }
          ]
        }
      }
    ],
    "bindings": [
      {
        "binding_name": "#debug_drawer_button_visible",
        "binding_name_override": "#visible"
      }
    ]
  }
}
