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 {
  element_type = custom_button
  anchor_point = top-right
  width = 80
  height = 22
  x = -84
  y = 4
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.social"}}
  [executable_action_instance:9][action_type:opengui] = net.minecraft.client.gui.screens.friends.FriendsOverlayScreen
}

vanilla_button {
  instance_identifier = mc_titlescreen_singleplayer_button
  anchor_point = mid-centered
  width = 148
  height = 30
  x = -74
  y = -25
  label = {"placeholder":"local","values":{"key":"mco.selectServer.play"}}
}

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

vanilla_button {
  instance_identifier = mc_titlescreen_multiplayer_button
  anchor_point = element
  anchor_point_element = mc_titlescreen_options_button
  width = 148
  height = 30
  y = 31
  label = {"placeholder":"local","values":{"key":"key.category.minecraft.multiplayer"}}
  backgroundnormal = [source:location]minecraft:textures/gui/sprites/widget/realms_button.png
  backgroundhovered = [source:location]minecraft:textures/gui/sprites/widget/realms_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  label_base_color = #FFFFFFFF
}

element {
  instance_identifier = 0
  element_type = custom_button
  anchor_point = element
  anchor_point_element = mc_titlescreen_multiplayer_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"}}
  label_base_color = #FFFFFFFF
  [executable_action_instance:1][action_type:mimicbutton] = pack_selection_screen:69510
  [executable_block:2][type:generic] = [executables:1;]
}

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

element {
  instance_identifier = 3
  element_type = custom_button
  anchor_point = bottom-left
  width = 24
  height = 24
  x = 5
  y = -54
  description = {"placeholder":"local","values":{"key":"bedrockreloaded.realms"}}
  [executable_action_instance:4][action_type:opengui] = realms_pending_invites_screen
  [executable_block:5][type:generic] = [executables:4;]
}

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

element {
  instance_identifier = 6
  element_type = custom_button
  anchor_point = bottom-left
  width = 24
  height = 24
  x = 35
  y = -54
  [executable_action_instance:7][action_type:opengui] = dev.gdlev.better_screenshots.client.ScreenshotGalleryScreen
}

element {
  element_type = image
  anchor_point = element
  anchor_point_element = 6
  width = 18
  height = 17
  x = 3
  y = 3
  source = [source:location]better_screenshots:textures/gui/sprites/icon/gallery.png
}

vanilla_button {
  instance_identifier = 620299
  anchor_point = bottom-right
  x = -105
  y = -145
}

element {
  element_type = shape
  anchor_point = element
  anchor_point_element = 938990
  x = -39
  y = -2
  color = #00000090
}

vanilla_button {
  instance_identifier = 938990
  anchor_point = bottom-left
  x = 1
  y = -10
}

element {
  element_type = shape
  anchor_point = element
  anchor_point_element = 8
  x = 2
  y = 1
  color = #00000090
}

element {
  instance_identifier = 8
  element_type = text_v2
  anchor_point = bottom-right
  x = -31
  y = -13
  source = v{"placeholder":"mcversion"}
  source_mode = direct
  enable_scrolling = false
}

vanilla_button {
  instance_identifier = 526370
  is_hidden = true
}

vanilla_button {
  instance_identifier = 502370
  is_hidden = true
}

vanilla_button {
  instance_identifier = 478370
  is_hidden = true
}

vanilla_button {
  instance_identifier = 454370
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_realms_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = mc_titlescreen_quit_button
  is_hidden = true
}

vanilla_button {
  instance_identifier = minecraft_branding_widget
  is_hidden = true
}

vanilla_button {
  instance_identifier = minecraft_realms_notification_icons_widget
  is_hidden = true
}