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 = 32
  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
  element_loading_requirement_container_identifier = 0
  [loading_requirement_container_meta:0] = [groups:][instances:]
  backgroundnormal = [source:location]fancymenu:textures/icon/back.png
  backgroundhovered = [source:location]fancymenu:textures/icon/back_highlight.png
  button_element_executable_block_identifier = 0
  [executable_action_instance:1][action_type:opengui] = title_screen
  [executable_block:2][type:if] = [executables:1;][appended:3]
  [executable_action_instance:4][action_type:opengui] = select_world_screen
  [executable_block:3][type:else] = [executables:4;]
  [if_executable_block_body:2] = 5
  [loading_requirement_container_meta:5] = [groups:][instances:6;]
  [loading_requirement:fancymenu_visibility_requirement_is_variable_value][requirement_mode:if][req_id:6] = main_menu:true
  [executable_block:0][type:generic] = [executables:1;2;]
}

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

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
}

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
}

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
}

vanilla_button {
  instance_identifier = 554948
  anchor_point = element
  anchor_point_element = 1
  width = 110
  height = 20
  y = 19
  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
}

vanilla_button {
  instance_identifier = 502972
  anchor_point = element
  anchor_point_element = 554948
  width = 64
  height = 20
  x = 109
  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
}

vanilla_button {
  instance_identifier = 346972
  anchor_point = element
  anchor_point_element = 502972
  width = 64
  height = 20
  x = 63
  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
}

vanilla_button {
  instance_identifier = 424972
  anchor_point = element
  anchor_point_element = 346972
  width = 63
  height = 20
  x = 63
  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
}

vanilla_button {
  instance_identifier = 580972
  is_hidden = true
}

vanilla_button {
  instance_identifier = 450948
  is_hidden = true
}

vanilla_button {
  instance_identifier = 346948
  is_hidden = true
}

vanilla_button {
  instance_identifier = 48912
  is_hidden = true
}