type = fancymenu_layout

layout-meta {
  identifier = net.minecraft.client.gui.screens.ManageServerScreen
  render_custom_elements_behind_vanilla = true
  custom_menu_title = 
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  element_type = shape
  stretch_x = true
  stretch_y = true
  color = #00000050
}

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

vanilla_button {
  instance_identifier = 400388
  anchor_point = top-left
  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
  label = 
}

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

vanilla_button {
  instance_identifier = 400322
  anchor_point = top-centered
  width = 120
  height = 30
  x = -125
  y = 135
  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 = 4
  label_hover_color = #4c4c4cFF
}

vanilla_button {
  instance_identifier = 400364
  anchor_point = element
  anchor_point_element = 400322
  width = 120
  height = 30
  x = 130
  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 = 4
  label_base_color = #FFFFFFFF
}

element {
  element_type = custom_button
  anchor_point = bottom-right
  width = 150
  height = 30
  x = -160
  y = -40
  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 = 4
  label = {"placeholder":"local","values":{"key":"bedrockreloaded.connect"}}
  label_hover_color = #4c4c4cFF
  description = {"placeholder":"local","values":{"key":"bedrockreloaded.connect.tooltip"}}
  [executable_action_instance:12][action_type:opengui] = com.viaversion.viafabricplus.screen.impl.SettingsScreen
}