type = fancymenu_layout

layout-meta {
  identifier = title_screen
  render_custom_elements_behind_vanilla = true
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = top-centered
  width = 269
  height = 64
  x = -134
  y = 33
  source = [source:location]minecraft:textures/gui/title/minecraft.png
}

element {
  instance_identifier = 1
  element_type = custom_button
  anchor_point = mid-centered
  width = 148
  height = 30
  x = -74
  y = -13
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_play"}}
  [executable_action_instance:0][action_type:mimicbutton] = title_screen:mc_titlescreen_singleplayer_button
  [executable_action_instance:1][action_type:set_variable] = create_world:true
}

element {
  element_type = splash_text
  anchor_point = element
  anchor_point_element = 0
  width = 100
  height = 20
  x = 211
  y = 20
  source = [source:local]/config/fancymenu/assets/texts/splashes.txt
  source_mode = text_file
  rotation = 20.0
}

element {
  element_type = fancymenu_customization_player_entity
  anchor_point = element
  anchor_point_element = 629382
  width = 24
  height = 72
  x = 17
  y = -83
  copy_client_player = true
  scale = 40
  head_follows_mouse = true
}

element {
  element_type = shape
  anchor_point = bottom-right
  advanced_posx = {"placeholder":"elementposx","values":{"id":"3"}}
  advanced_posy = {"placeholder":"elementposy","values":{"id":"3"}}
  advanced_width = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementwidth","values":{"id":"3"}} + 8","decimal":"true"}}
  advanced_height = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementheight","values":{"id":"3"}} + 4","decimal":"true"}}
  color = #00000075
}

element {
  instance_identifier = 3
  element_type = text_v2
  anchor_point = bottom-right
  width = 42
  height = 13
  x = -42
  y = -13
  source = v{"placeholder":"mcversion"}
  source_mode = direct
  shadow = false
  enable_scrolling = false
}

element {
  instance_identifier = 6
  element_type = custom_button
  anchor_point = element
  anchor_point_element = mc_titlescreen_options_button
  width = 146
  height = 30
  x = 1
  y = 31
  backgroundnormal = [source:local]/config/fancymenu/assets/bg/bt_market.gif
  backgroundhovered = [source:local]/config/fancymenu/assets/bg/bt_market_hover.gif
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_shop"}}
  [executable_action_instance:3][action_type:mimicbutton] = pack_selection_screen:69510
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 6
  width = 31
  height = 14
  x = 127
  source = [source:local]/config/fancymenu/assets/icons/flag.png
}

element {
  instance_identifier = 4
  element_type = custom_button
  anchor_point = bottom-left
  width = 25
  height = 25
  x = 5
  y = -55
  [executable_action_instance:4][action_type:opengui] = language_select_screen
  [executable_action_instance:5][action_type:set_variable] = main_menu:true
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 4
  width = 15
  height = 8
  x = 5
  y = 8
  source = [source:location]minecraft:textures/icons/language.png
}

element {
  instance_identifier = 5
  element_type = custom_button
  anchor_point = bottom-left
  width = 25
  height = 25
  x = 35
  y = -55
  [executable_action_instance:6][action_type:opengui] = accessibility_options_screen
  [executable_action_instance:7][action_type:set_variable] = main_menu:true
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 5
  width = 7
  height = 12
  x = 9
  y = 6
  source = [source:location]minecraft:textures/icons/accessibility.png
}

element {
  element_type = shape
  anchor_point = bottom-left
  advanced_posx = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementposx","values":{"id":"title_screen_copyright_button"}} - 2","decimal":"true"}}
  advanced_posy = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementposy","values":{"id":"title_screen_copyright_button"}} - 3","decimal":"true"}}
  advanced_width = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementwidth","values":{"id":"title_screen_copyright_button"}} + 5","decimal":"true"}}
  advanced_height = {"placeholder":"calc","values":{"expression":"{"placeholder":"elementheight","values":{"id":"title_screen_copyright_button"}} + 5","decimal":"true"}}
  color = #00000075
}

vanilla_button {
  instance_identifier = title_screen_copyright_button
  anchor_point = bottom-left
  width = 60
  height = 10
  x = 2
  y = -12
}

vanilla_button {
  instance_identifier = mc_titlescreen_options_button
  anchor_point = element
  anchor_point_element = 1
  width = 148
  height = 30
  y = 31
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.options_title"}}
}

vanilla_button {
  instance_identifier = 629382
  anchor_point = bottom-right
  width = 56
  height = 26
  x = -110
  y = -56
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_skin"}}
}

deep_element {
  element_type = title_screen_branding
  is_hidden = true
}

deep_element {
  element_type = title_screen_logo
  is_hidden = true
}

deep_element {
  element_type = title_screen_realms_notification
  is_hidden = true
}

deep_element {
  element_type = title_screen_splash
  is_hidden = true
}

vanilla_button {
  instance_identifier = 901980
  is_hidden = true
}

vanilla_button {
  instance_identifier = 901978
  is_hidden = true
}

vanilla_button {
  instance_identifier = 870978
  is_hidden = true
}

vanilla_button {
  instance_identifier = 802990
  is_hidden = true
}

vanilla_button {
  instance_identifier = 768990
  is_hidden = true
}

vanilla_button {
  instance_identifier = 629394
  is_hidden = true
}

vanilla_button {
  instance_identifier = 604394
  is_hidden = true
}

vanilla_button {
  instance_identifier = 604382
  is_hidden = true
}

vanilla_button {
  instance_identifier = 604310
  is_hidden = true
}

vanilla_button {
  instance_identifier = 604298
  is_hidden = true
}

vanilla_button {
  instance_identifier = 376394
  is_hidden = true
}

vanilla_button {
  instance_identifier = 376382
  is_hidden = true
}

vanilla_button {
  instance_identifier = 376322
  is_hidden = true
}

vanilla_button {
  instance_identifier = 376310
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_multiplayer_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_quit_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_singleplayer_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_realms_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = modmenu_titlescreen_mods_button
  is_hidden = true
}