type = fancymenu_layout

layout-meta {
  identifier = io.github.gaming32.worldhost.gui.screen.AddFriendScreen
  render_custom_elements_behind_vanilla = true
  custom_menu_title = {"placeholder":"stringify","values":{"text":""}}
}

customization {
  action = backgroundoptions
  keepaspectratio = true
}

element {
  element_type = shape
  anchor_point = element
  anchor_point_element = 0
  width = 218
  height = 170
  x = 5
  color = #00000050
}

element {
  instance_identifier = 0
  element_type = image
  anchor_point = top-centered
  width = 226
  height = 175
  x = -112
  y = 31
  nine_slice_texture = true
  nine_slice_texture_border_x = 8
  nine_slice_texture_border_y = 15
  source = [source:local]/config/fancymenu/assets/bg/command.png
}

element {
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 0
  width = 200
  height = 12
  x = 4
  y = 2
  source = {"placeholder":"local","values":{"key":"world-host.add_friend"}}
  source_mode = direct
  shadow = false
  base_color = #4c4c4c
  enable_scrolling = false
}

vanilla_button {
  instance_identifier = 400384
  anchor_point = element
  anchor_point_element = 0
  width = 5
  height = 5
  x = 214
  y = 6
  backgroundnormal = [source:local]/config/fancymenu/assets/icons/close.png
  backgroundhovered = [source:local]/config/fancymenu/assets/icons/close_highlighted.png
  label = 
}