type = fancymenu_layout

layout-meta {
  identifier = pause_screen
  render_custom_elements_behind_vanilla = true
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  element_type = shape
  anchor_point = top-left
  width = 238
  stretch_y = true
  stay_on_screen = false
  color = #00000050
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = mid-left
  width = 152
  height = 37
  x = 50
  y = -88
  source = [source:location]minecraft:textures/gui/title/minecraft.png
}

vanilla_button {
  instance_identifier = pause_return_to_game_button
  anchor_point = element
  anchor_point_element = 0
  width = 152
  height = 25
  y = 32
}

vanilla_button {
  instance_identifier = pause_options_button
  anchor_point = element
  anchor_point_element = pause_return_to_game_button
  width = 152
  height = 25
  y = 29
}

element {
  instance_identifier = 1
  element_type = custom_button
  anchor_point = element
  anchor_point_element = pause_options_button
  width = 152
  height = 25
  y = 29
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_shop"}}
  [executable_action_instance:0][action_type:mimicbutton] = pack_selection_screen:69510
  [executable_block:1][type:generic] = [executables:0;]
}

vanilla_button {
  instance_identifier = pause_disconnect_button
  anchor_point = element
  anchor_point_element = 1
  width = 152
  height = 25
  y = 29
}

element {
  instance_identifier = 2
  element_type = custom_button
  anchor_point = element
  anchor_point_element = pause_disconnect_button
  width = 24
  height = 24
  x = 36
  y = 29
  description = {"placeholder":"local","values":{"key":"key.advancements"}}
  [executable_action_instance:2][action_type:mimicbutton] = pause_screen:pause_advancements_button
  [executable_block:3][type:generic] = [executables:2;]
}

element {
  instance_identifier = 8
  element_type = custom_button
  anchor_point = element
  anchor_point_element = 2
  width = 24
  height = 24
  x = 32
  description = {"placeholder":"local","values":{"key":"bedrockreloaded.howtoplay"}}
  [executable_action_instance:0][action_type:openlink] = https://minecraft.wiki/
}

element {
  instance_identifier = 3
  element_type = custom_button
  anchor_point = element
  anchor_point_element = 8
  width = 24
  height = 24
  x = 32
  description = {"placeholder":"local","values":{"key":"better_screenshots.menu.screenshot"}}
  [executable_action_instance:4][action_type:mimicbutton] = pause_screen:58970
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 2
  width = 14
  height = 12
  x = 5
  y = 6
  source = [source:location]bedrockflavor:textures/icons/achievements.png
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 8
  width = 5
  height = 7
  x = 9
  y = 8
  source = [source:location]fancymenu:textures/icon/howto.png
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 3
  width = 15
  height = 12
  x = 4
  y = 6
  source = [source:location]fancymenu:textures/icon/screenshot.png
}

element {
  instance_identifier = 4
  element_type = shape
  anchor_point = element
  anchor_point_element = pause_share_to_lan_button
  width = 80
  height = 23
  x = -85
  [loading_requirement_container_meta:6] = [groups:][instances:7;]
  [loading_requirement:fancymenu_loading_requirement_is_singpleplayer][requirement_mode:if][req_id:6] = 
  color = #00000090
}

element {
  instance_identifier = 5
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 4
  width = 80
  height = 14
  y = 5
  [loading_requirement_container_meta:8] = [groups:][instances:9;]
  [loading_requirement:fancymenu_loading_requirement_is_singpleplayer][requirement_mode:if][req_id:8] = 
  source = ^^^%n%{"placeholder":"local","values":{"key":"menu.paused"}}%n%^^^
  source_mode = direct
  shadow = false
  enable_scrolling = false
}

vanilla_button {
  instance_identifier = pause_share_to_lan_button
  anchor_point = top-right
  width = 80
  height = 23
  x = -84
  y = 4
}

element {
  element_type = fancymenu_customization_item_ticker
  anchor_point = element
  anchor_point_element = 27
  x = 5
  y = -40
  width = 40
  height = 24
  element_loading_requirement_container_identifier = 30
  [loading_requirement_container_meta:30] = [groups:][instances:]
  tick_delay = 10
  ticker_element_executable_block_identifier = 11
  [executable_action_instance:12][action_type:set_variable] = is_dragging_player:true
  [executable_action_instance:13][action_type:set_variable] = mouse_drag_start_x:{"placeholder":"mouseposx"}
  [executable_action_instance:14][action_type:set_variable] = initial_player_rotation_y:{"placeholder":"getvariable","values":{"name":"player_rotation_y"}}
  [executable_block:15][type:if] = [executables:12;13;14;][appended:16]
  [executable_action_instance:17][action_type:set_variable] = player_rotation_y:{"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"getvariable","values":{"name":"initial_player_rotation_y"}} + ({"placeholder":"mouseposx"} - {"placeholder":"getvariable","values":{"name":"mouse_drag_start_x"}}) * -5"}}
  [executable_block:16][type:else-if] = [executables:17;][appended:18]
  [executable_action_instance:19][action_type:set_variable] = is_dragging_player:false
  [executable_block:18][type:else] = [executables:19;]
  [else_if_executable_block_body:16] = 20
  [loading_requirement_container_meta:20] = [groups:group_21;][instances:]
  [loading_requirement_group:group_21] = [group_mode:and]
  [loading_requirement:fancymenu_visibility_requirement_is_variable_value][requirement_mode:if][group:group_21][req_id:22] = is_dragging_player:true
  [loading_requirement:mouse_click][requirement_mode:if][group:group_21][req_id:23] = left
  [if_executable_block_body:15] = 24
  [loading_requirement_container_meta:24] = [groups:group_25;][instances:]
  [loading_requirement_group:group_25] = [group_mode:and]
  [loading_requirement:fancymenu_visibility_requirement_is_element_hovered][requirement_mode:if][group:group_25][req_id:26] = 27
  [loading_requirement:mouse_click][requirement_mode:if][group:group_25][req_id:28] = left
  [loading_requirement:fancymenu_visibility_requirement_is_variable_value][requirement_mode:if][group:group_25][req_id:29] = is_dragging_player:false
  [executable_block:11][type:generic] = [executables:15;]
}

element {
  instance_identifier = 27
  element_type = player_entity_v2
  anchor_point = element
  anchor_point_element = 7
  height = 120
  x = -6
  y = -125
  copy_client_player = true
  head_follows_mouse = true
  body_follows_mouse = false
  bodyrotationy = {"placeholder":"getvariable","values":{"name":"player_rotation_y"}}
  left_arm_z_rot = 6
  right_arm_z_rot = -6
}

element {
  instance_identifier = 7
  element_type = custom_button
  anchor_point = mid-centered
  width = 85
  height = 25
  x = 96
  y = 56
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_skin"}}
  [executable_action_instance:10][action_type:mimicbutton] = options_screen:34691
  [executable_block:11][type:generic] = [executables:10;]
}

vanilla_button {
  instance_identifier = 47440
  is_hidden = true
}

vanilla_button {
  instance_identifier = 1010
  is_hidden = true
}

vanilla_button {
  instance_identifier = 3410
  is_hidden = true
}

vanilla_button {
  instance_identifier = 10970
  is_hidden = true
}

vanilla_button {
  instance_identifier = 34970
  is_hidden = true
}

vanilla_button {
  instance_identifier = 58970
  is_hidden = true
}

vanilla_button {
  instance_identifier = pause_advancements_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = pause_report_bugs_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = pause_send_feedback_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = pause_stats_button
  is_hidden = true
}