type = fancymenu_layout

layout-meta {
  identifier = title_screen
  render_custom_elements_behind_vanilla = true
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

vanilla_button {
  instance_identifier = minecraft_logo_widget
  anchor_point = top-centered
  x = -127
  y = 33
}

vanilla_button {
  instance_identifier = minecraft_splash_widget
  anchor_point = element
  anchor_point_element = minecraft_logo_widget
  x = 211
  y = 15
}

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

vanilla_button {
  instance_identifier = mc_titlescreen_options_button
  anchor_point = element
  anchor_point_element = 0
  width = 148
  height = 30
  y = 31
}

element {
  instance_identifier = 1
  element_type = custom_button
  anchor_point = element
  anchor_point_element = mc_titlescreen_options_button
  width = 148
  height = 30
  y = 31
  backgroundnormal = [source:location]fancymenu:textures/widget/marketplace/banner.gif
  backgroundhovered = [source:location]fancymenu:textures/widget/marketplace/banner_hover.gif
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_shop"}}
  [executable_action_instance:3][action_type:mimicbutton] = pack_selection_screen:69510
  [executable_block:4][type:generic] = [executables:3;]
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 1
  width = 31
  height = 14
  x = 127
  source = [source:location]fancymenu:textures/icon/flag.png
}

element {
  instance_identifier = 2
  element_type = custom_button
  anchor_point = bottom-left
  width = 25
  height = 25
  x = 5
  y = -55
  [executable_action_instance:5][action_type:opengui] = language_select_screen
  [executable_action_instance:6][action_type:set_variable] = main_menu:true
  [executable_block:7][type:generic] = [executables:5;6;]
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 2
  width = 18
  height = 18
  x = 4
  y = 4
  source = [source:location]minecraft:textures/gui/sprites/icon/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:8][action_type:opengui] = accessibility_options_screen
  [executable_action_instance:9][action_type:set_variable] = main_menu:true
  [executable_block:10][type:generic] = [executables:8;9;]
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 5
  width = 19
  height = 19
  x = 4
  y = 3
  source = [source:location]minecraft:textures/gui/sprites/icon/accessibility.png
}

vanilla_button {
  instance_identifier = 629382
  anchor_point = bottom-right
  width = 82
  height = 25
  x = -120
  y = -64
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.menu_skin"}}
}

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
}

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

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

vanilla_button {
  instance_identifier = 604382
  is_hidden = true
}

vanilla_button {
  instance_identifier = 604298
  is_hidden = true
}

vanilla_button {
  instance_identifier = 376382
  is_hidden = true
}

vanilla_button {
  instance_identifier = minecraft_branding_widget
  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_realms_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_singleplayer_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = minecraft_realms_notification_icons_widget
  is_hidden = true
}