type = fancymenu_layout

layout-meta {
  identifier = title_screen
  render_custom_elements_behind_vanilla = true
  is_enabled = true
}

# --- BACKGROUND ---
menu_background {
  background_type = image
  show_background = true
  image_path = [source:local]/config/fancymenu/assets/background.png
  stretch_x = true
  stretch_y = true
}

# --- OVERLAY SOMBRE ---
element {
  element_type = image
  source = [source:local]/config/fancymenu/assets/overlay.png
  anchor_point = top-left
  x = 0
  y = 0
  width = 100%
  height = 100%
}

# --- SPLASH TEXT CUSTOM ---
element {
  element_type = splash_text
  source = Welcome to Create Industrie
  source_mode = direct
  shadow = true
  bouncing = true
  anchor_point = mid-centered
  x = -50
  y = -120
  scale = 1.0
  rotation = 360.0
}

# --- BOUTON DISCORD ---
element {
  element_type = custom_button
  instance_identifier = discord_button
  label = Discord
  anchor_point = mid-centered
  x = -50
  y = 55
  width = 100
  height = 20
  label_shadow = true
  [executable_action_instance:openlink][action_type:openlink] = https://discord.gg/qYvYPstaY8
}

# --- ICÔNE DISCORD ---
element {
  element_type = image
  anchor_point = element
  anchor_point_element = discord_button
  x = 80
  y = 3
  width = 17
  height = 15
  source = [source:local]/config/fancymenu/assets/discord-logo.png
}

# --- EFFET HOVER DISCORD ---
element_action {
  element_identifier = discord_button
  trigger = hover
  action_type = style
  background_color = #4a4a4a
  label_color = #55aaff
  border_color = #55aaff
  border_width = 2
  opacity = 0.95
}

# --- BOUTONS VANILLA ---
vanilla_button { instance_identifier = 400346 is_hidden = false }
vanilla_button { instance_identifier = 502382 is_hidden = false }
vanilla_button { instance_identifier = 376382 is_hidden = false }

# --- MASQUER LE SPLASH TEXT ORIGINAL ---
vanilla_button { instance_identifier = minecraft_splash_widget is_hidden = true }

# --- MASQUER LES INFOS FORGE / MODS ---
vanilla_button { instance_identifier = minecraft_branding_widget is_hidden = true }
vanilla_button { instance_identifier = title_screen_copyright_button is_hidden = true }
vanilla_button { instance_identifier = 604382 is_hidden = true }
vanilla_button { instance_identifier = 400298 is_hidden = true }
vanilla_button { instance_identifier = 400299 is_hidden = true }
vanilla_button { instance_identifier = 400300 is_hidden = true }
vanilla_button { instance_identifier = 400301 is_hidden = true }
