type = fancymenu_layout

layout-meta {
  identifier = direct_join_server_screen
  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 = 32
  stretch_x = true
  source = [source:location]fancymenu:textures/widget/header.png
}

vanilla_button {
  instance_identifier = 400382
  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
  label = 
}

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":"selectServer.direct"}}%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  base_color = #4c4c4c
  enable_scrolling = false
}

vanilla_button {
  instance_identifier = 400358
  anchor_point = top-centered
  width = 200
  height = 30
  x = -100
  y = 140
}

vanilla_button {
  instance_identifier = 8975
  is_hidden = true
}