type = fancymenu_layout

layout-meta {
  identifier = title_screen
  render_custom_elements_behind_vanilla = true
  last_edited_time = 0
  is_enabled = true
  randommode = false
  randomgroup = 1
  randomonlyfirsttime = false
  layout_index = 0
}

menu_background {
  instance_identifier = cobbleria_title_background
  background_type = image
  image_path = [source:local]config/fancymenu/assets/cobbleria/background.png
  slide = true
  repeat_texture = false
  parallax = false
  show_background = true
}

decoration_overlay {
  overlay_type = leaves
  instance_identifier = cobbleria_title_petals
  show_decoration_overlay = true
  leaves_density = 0.35
  leaves_wind_intensity = 0.6
  leaves_wind_blows = true
  leaves_fall_speed = 0.5
  leaves_scale = 1.0
  leaves_color_start_hex = #F0B4CB
  leaves_color_end_hex = #FFE1EC
}

customization {
  action = backgroundoptions
  keepaspectratio = false
}

element {
  element_type = image
  instance_identifier = cobbleria_panel
  anchor_point = mid-left
  x = 8
  y = -92
  width = 216
  height = 166
  source = [source:local]config/fancymenu/assets/cobbleria/panel.png
  nine_slice_texture = true
  nine_slice_texture_border_x = 6
  nine_slice_texture_border_y = 6
  stay_on_screen = false
}

element {
  element_type = image
  instance_identifier = cobbleria_logo
  anchor_point = mid-left
  x = 18
  y = -84
  width = 196
  height = 32
  source = [source:local]config/fancymenu/assets/cobbleria/logo.png
  stay_on_screen = false
}

element {
  element_type = text_v2
  instance_identifier = cobbleria_tagline
  anchor_point = mid-left
  x = 18
  y = -51
  width = 196
  height = 14
  source = {"placeholder":"local","values":{"key":"cobbleria.menu.tagline"}}
  source_mode = direct
  shadow = true
  scale = 1.0
  base_color = #FFE1EC
  text_border = 1
  line_spacing = 1
  enable_scrolling = false
  auto_line_wrapping = false
  stay_on_screen = false
}

element {
  element_type = custom_button
  instance_identifier = cobbleria_play_button
  anchor_point = mid-left
  x = 18
  y = -34
  width = 196
  height = 28
  label = {"placeholder":"local","values":{"key":"cobbleria.menu.play"}}
  description = {"placeholder":"local","values":{"key":"cobbleria.menu.play.tooltip"}}
  label_scale = 1.5
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button_play.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_play_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  button_element_executable_block_identifier = cobbleria_play_block
  [executable_block:cobbleria_play_block][type:generic] = [executables:cobbleria_play_action;]
  [executable_action_instance:cobbleria_play_action][action_type:joinserver] = play.cobbleria.com
  stay_on_screen = false
}

element {
  element_type = custom_button
  instance_identifier = cobbleria_website_button
  anchor_point = mid-left
  x = 18
  y = 22
  width = 96
  height = 20
  label = {"placeholder":"local","values":{"key":"cobbleria.menu.website"}}
  description = https://cobbleria.com
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  button_element_executable_block_identifier = cobbleria_website_block
  [executable_block:cobbleria_website_block][type:generic] = [executables:cobbleria_website_action;]
  [executable_action_instance:cobbleria_website_action][action_type:openlink] = https://cobbleria.com
  stay_on_screen = false
}

element {
  element_type = custom_button
  instance_identifier = cobbleria_discord_button
  anchor_point = mid-left
  x = 118
  y = 22
  width = 96
  height = 20
  label = Discord
  description = {"placeholder":"local","values":{"key":"cobbleria.menu.discord.tooltip"}}
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  button_element_executable_block_identifier = cobbleria_discord_block
  [executable_block:cobbleria_discord_block][type:generic] = [executables:cobbleria_discord_action;]
  [executable_action_instance:cobbleria_discord_action][action_type:openlink] = https://cobbleria.com/discord
  stay_on_screen = false
}

element {
  element_type = custom_button
  instance_identifier = cobbleria_language_button
  anchor_point = mid-left
  x = 85
  y = 46
  width = 62
  height = 20
  label = {"placeholder":"local","values":{"key":"options.language"}}
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  button_element_executable_block_identifier = cobbleria_language_block
  [executable_block:cobbleria_language_block][type:generic] = [executables:cobbleria_language_action;]
  [executable_action_instance:cobbleria_language_action][action_type:opengui] = language_select_screen
  stay_on_screen = false
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_multiplayer_button
  anchor_point = mid-left
  x = 18
  y = -2
  width = 96
  height = 20
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  is_hidden = false
  stay_on_screen = false
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_options_button
  anchor_point = mid-left
  x = 118
  y = -2
  width = 96
  height = 20
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  is_hidden = false
  stay_on_screen = false
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = modmenu_titlescreen_mods_button
  anchor_point = mid-left
  x = 18
  y = 46
  width = 62
  height = 20
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  is_hidden = false
  stay_on_screen = false
}

vanilla_button {
  element_type = vanilla_button
  instance_identifier = mc_titlescreen_quit_button
  anchor_point = mid-left
  x = 152
  y = 46
  width = 62
  height = 20
  backgroundnormal = [source:local]config/fancymenu/assets/cobbleria/button.png
  backgroundhovered = [source:local]config/fancymenu/assets/cobbleria/button_hover.png
  nine_slice_custom_background = true
  nine_slice_border_x = 4
  nine_slice_border_y = 4
  is_hidden = false
  stay_on_screen = false
}

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_realms_button
  is_hidden = true
}

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

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

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

# Language and accessibility icon buttons have no stable name in 1.21.1, so FancyMenu identifies
# them by their position at a 1000x1000 reference screen (x + y). Language is replaced by the
# custom button above; accessibility stays reachable through Options.
vanilla_button {
  element_type = vanilla_button
  instance_identifier = 376394
  is_hidden = true
}

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

element {
  element_type = text_v2
  instance_identifier = cobbleria_disclaimer
  anchor_point = top-right
  x = -222
  y = 4
  width = 218
  height = 24
  source = {"placeholder":"local","values":{"key":"cobbleria.menu.disclaimer"}}
  source_mode = direct
  shadow = true
  scale = 0.5
  base_color = #D8D8E8
  text_border = 0
  line_spacing = 1
  enable_scrolling = false
  auto_line_wrapping = false
  stay_on_screen = false
}
