type = fancymenu_layout

layout-meta {
  identifier = join_multiplayer_screen
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = top-centered
  height = 25
  stretch_x = true
  source = [source:location]fancymenu:textures/widget/header.png
}

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

element {
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 0
  stretch_x = true
  y = 3
  interactable = false
  source = ^^^%n%**{"placeholder":"local","values":{"key":"mco.selectServer.play"}}**%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  enable_scrolling = false
  base_color = #4c4c4c
}

element {
  element_type = custom_button
  anchor_point = top-right
  width = 80
  height = 22
  x = -80
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.social"}}
  backgroundnormal = [source:location]fancymenu:textures/widget/menu_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/menu_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  [executable_action_instance:4][action_type:opengui] = net.minecraft.client.gui.screens.friends.FriendsOverlayScreen
  label_hover_color = #4c4c4cFF
}

element {
  instance_identifier = 1
  element_type = custom_button
  anchor_point = bottom-centered
  width = 100
  height = 20
  x = -155
  y = -54
  label = {"placeholder":"local","values":{"key":"menu.singleplayer"}}
  [executable_action_instance:7][action_type:opengui] = select_world_screen
  backgroundnormal = [source:location]fancymenu:textures/widget/black_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/black_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 = 2
  element_type = custom_button
  anchor_point = element
  anchor_point_element = 1
  width = 100
  height = 20
  x = 99
  label = {"placeholder":"local","values":{"key":"menu.online"}}
  description = {"placeholder":"local","values":{"key":"bedrockreloaded.realms"}}
  backgroundnormal = [source:location]fancymenu:textures/widget/black_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/black_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  [executable_action_instance:3][action_type:opengui] = realms_main_screen
  label_base_color = #FFFFFFFF
}

element {
  instance_identifier = 3
  element_type = image
  anchor_point = element
  anchor_point_element = 2
  width = 100
  height = 20
  x = 99
  source = [source:location]fancymenu:textures/widget/black_button_pressed.png
  nine_slice_texture = true
  nine_slice_texture_border_x = 3
  nine_slice_texture_border_y = 3
}

element {
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 3
  width = 100
  height = 18
  y = 3
  source = ^^^%n%{"placeholder":"local","values":{"key":"menu.multiplayer"}}%n%^^^
  source_mode = direct
  base_color = #A0A0A0
  enable_scrolling = false
  shadow = false
}

vanilla_button {
  instance_identifier = 554948
  anchor_point = element
  anchor_point_element = 1
  width = 110
  height = 20
  x = -23
  y = 23
  backgroundnormal = [source:location]fancymenu:textures/widget/green_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/green_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  label_base_color = #FFFFFFFF
}

vanilla_button {
  instance_identifier = 502972
  anchor_point = element
  anchor_point_element = 554948
  width = 75
  height = 20
  x = 114
  backgroundnormal = [source:location]fancymenu:textures/widget/gray_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/gray_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  label_hover_color = #4c4c4cFF
}

vanilla_button {
  instance_identifier = 346972
  anchor_point = element
  anchor_point_element = 502972
  width = 75
  height = 20
  x = 79
  backgroundnormal = [source:location]fancymenu:textures/widget/gray_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/gray_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  label_hover_color = #4c4c4cFF
}

vanilla_button {
  instance_identifier = 424972
  anchor_point = element
  anchor_point_element = 346972
  width = 75
  height = 20
  x = 79
  backgroundnormal = [source:location]fancymenu:textures/widget/red_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/red_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 3
  label_base_color = #FFFFFFFF
}

vanilla_button {
  instance_identifier = 580972
  is_hidden = true
}

vanilla_button {
  instance_identifier = 450948
  is_hidden = true
}

vanilla_button {
  instance_identifier = 346948
  is_hidden = true
}