type = fancymenu_layout

layout-meta {
  identifier = net.minecraft.class_442
  is_enabled = true
  render_custom_elements_behind_vanilla = false
  randommode = false
  randomgroup = 1
  randomonlyfirsttime = false
  layout_index = 0
}

menu_background {
  background_type = image
  instance_identifier = ronflexcorp_title_bg
  image_path = config/fancymenu/assets/ronflexcorp/snorlax_foret.jpg
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_singleplayer_button
  is_hidden = true
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_multiplayer_button
  is_hidden = true
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_realms_button
  is_hidden = true
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = modmenu_titlescreen_mods_button
  is_hidden = true
}

element {
  element_type = image
  instance_identifier = ronflexcorp_title_logo
  x = 16
  y = 16
  width = 56
  height = 56
  anchor_point = top-left
  stay_on_screen = true
  source = config/fancymenu/assets/ronflexcorp/snorlax_portrait.jpg
}

element {
  element_type = text_v2
  instance_identifier = ronflexcorp_title_text
  x = 16
  y = 84
  width = 180
  height = 28
  anchor_point = top-left
  stay_on_screen = true
  source_mode = direct
  source = §6RonflexCorp%n%§fServeur Cobblemon
}

element {
  element_type = custom_button
  instance_identifier = ronflexcorp_btn_join
  label = Rejoindre RonflexCorp
  x = 0
  y = -100
  width = 200
  height = 20
  anchor_point = mid-centered
  sticky_anchor = true
  stay_on_screen = true
  buttonaction = joinserver
  value = 54.38.69.127:2715
}

element {
  element_type = custom_button
  instance_identifier = ronflexcorp_btn_discord
  label = Discord
  x = 0
  y = -70
  width = 200
  height = 20
  anchor_point = mid-centered
  sticky_anchor = true
  stay_on_screen = true
  buttonaction = openlink
  value = https://discord.gg/mrbATPxQzv
}

element {
  element_type = custom_button
  instance_identifier = ronflexcorp_btn_website
  label = Site web
  x = 0
  y = -40
  width = 200
  height = 20
  anchor_point = mid-centered
  sticky_anchor = true
  stay_on_screen = true
  buttonaction = openlink
  value = https://ronflexcorp.vercel.app/
}
