type = fancymenu_layout

layout-meta {
  identifier = com.mojang.realmsclient.gui.screens.RealmsJoinRealmWithCodeScreen
  render_custom_elements_behind_vanilla = true
}

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 = 400974
  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 {
  instance_identifier = 2
  element_type = text_v2
  anchor_point = element
  anchor_point_element = 0
  stretch_x = true
  y = 3
  interactable = false
  source = ^^^%n%**{"placeholder":"local","values":{"key":"mco.selectServer.joinCode.title"}}**%n%^^^
  source_mode = direct
  shadow = false
  scale = 1.5
  enable_scrolling = false
  base_color = #4c4c4c
}

vanilla_button {
  instance_identifier = 400104
  anchor_point = mid-centered
  height = 40
  x = -100
  y = -10
  backgroundnormal = [source:location]fancymenu:textures/widget/green_button.png
  backgroundhovered = [source:location]fancymenu:textures/widget/green_button_highlighted.png
  nine_slice_custom_background = true
  nine_slice_border_x = 3
  nine_slice_border_y = 4
  label_base_color = #FFFFFFFF
}

vanilla_button {
  instance_identifier = 46012
  is_hidden = true
}

vanilla_button {
  instance_identifier = 43612
  is_hidden = true
}