type = fancymenu_layout

layout-meta {
  identifier = net.minecraft.client.gui.screens.options.controls.KeyBindsScreen
  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 = 25
  stretch_x = true
  source = [source:location]fancymenu:textures/widget/header.png
}

vanilla_button {
  instance_identifier = 504974
  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 = 3
  interactable = false
  source = ^^^%n%**{"placeholder":"local","values":{"key":"menu.options"}}**%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  enable_scrolling = false
  base_color = #4c4c4c
}

vanilla_button {
  instance_identifier = 346974
  anchor_point = bottom-centered
  width = 150
  height = 25
  x = -150
  y = -28
  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
}

element {
  element_type = custom_button
  anchor_point = element
  anchor_point_element = 346974
  width = 150
  height = 25
  x = 154
  label = {"placeholder":"local","values":{"key":"option.commandkeys.macro"}}
  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
  [executable_action_instance:1][action_type:opengui] = dev.terminalmc.commandkeys.gui.screen.MainOptionScreen
  [executable_block:2][type:generic] = [executables:1;]
  label_hover_color = #4c4c4cFF
}

vanilla_button {
  instance_identifier = 48312
  is_hidden = true
}

vanilla_button {
  instance_identifier = 47112
  is_hidden = true
}