type = fancymenu_layout

layout-meta {
  identifier = net.minecraft.class_422
  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 = 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 = 
}

vanilla_button {
  instance_identifier = 400322
  anchor_point = top-centered
  width = 120
  height = 30
  x = -125
  y = 135
}

vanilla_button {
  instance_identifier = 400364
  anchor_point = element
  anchor_point_element = 400322
  width = 120
  height = 30
  x = 130
}

vanilla_button {
  instance_identifier = 8975
  is_hidden = true
}