type = fancymenu_layout

layout-meta {
  identifier = skin_customization_screen
  render_custom_elements_behind_vanilla = true
}

menu_background {
  background_type = color_fancymenu
  color = #313233
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  element_type = custom_button
  anchor_point = bottom-centered
  width = 75
  height = 25
  x = -77
  y = -30
  [loading_requirement_container_meta:0] = [groups:][instances:1;]
  [loading_requirement:fancymenu_loading_requirement_is_world_loaded][requirement_mode:if_not][req_id:1] = 
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.online_title"}}
  [executable_action_instance:0][action_type:mimicbutton] = options_screen:50429
}

element {
  element_type = custom_button
  anchor_point = bottom-centered
  width = 75
  height = 25
  x = 2
  y = -30
  element_loading_requirement_container_identifier = 2
  [loading_requirement_container_meta:2] = [groups:][instances:3;]
  [loading_requirement:fancymenu_loading_requirement_is_world_loaded][requirement_mode:if_not][req_id:3] = 
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.chat_title"}}
  [executable_action_instance:1][action_type:opengui] = chat_options_screen
}

element {
  element_type = custom_button
  anchor_point = bottom-centered
  width = 75
  height = 25
  x = -37
  y = -30
  element_loading_requirement_container_identifier = 4
  [loading_requirement_container_meta:4] = [groups:][instances:5;]
  [loading_requirement:fancymenu_loading_requirement_is_world_loaded][requirement_mode:if][req_id:5] = 
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.chat_title"}}
  [executable_action_instance:2][action_type:opengui] = chat_options_screen
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = top-centered
  width = 100
  height = 32
  stretch_x = true
  source = [source:location]fancymenu:bg/header.png
}

element {
  element_type = fancymenu_customization_player_entity
  anchor_point = mid-centered
  width = 36
  height = 108
  x = -18
  y = -5
  copy_client_player = true
  scale = 60
}

element {
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 0
  width = 524
  height = 20
  x = -22
  y = 5
  interactable = false
  source = ^^^%n%{"placeholder":"local","values":{"key":"bedrockreloaded.account_options"}}%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  base_color = #4c4c4c
  enable_scrolling = false
}

element {
  element_type = custom_button
  anchor_point = element
  anchor_point_element = 0
  width = 8
  height = 12
  x = 4
  y = 6
  backgroundnormal = [source:location]fancymenu:icons/back.png
  backgroundhovered = [source:location]fancymenu:icons/back_highlight.png
  label = 
  [executable_action_instance:2][action_type:opengui] = options_screen
}

vanilla_button {
  instance_identifier = 400974
  is_hidden = true
}