type = fancymenu_layout

layout-meta {
  identifier = options_screen
  render_custom_elements_behind_vanilla = true
}

menu_background {
  background_type = color_fancymenu
  color = #313233
}

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

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