// Welcome Screen - Update/Changelog layout for Vanilla Expense
// Identifier matches the auto-generated custom_gui entry in custom_gui_screens.txt
// Commands: /openguiscreen welcomescreen_update
// 
// HOW TO USE:
// 1. Update the changelog text below each time you release a new modpack version
// 2. Increment the "modpackVersion" so the update screen shows for returning players
// 3. Update version in the title text too

type = fancymenu_layout

layout-meta {
  identifier = welcomescreen_update
  render_custom_elements_behind_vanilla = false
  last_edited_time = 1774271426748
  is_enabled = true
  randommode = false
  randomgroup = 1
  randomonlyfirsttime = false
  layout_index = 0
  [loading_requirement_container_meta:2b0a0d12-0d2c-4e21-9d8d-65a4d7d4ad7b-1774271426748] = [groups:][instances:]
}

customization {
  action = backgroundoptions
  keepaspectratio = false
}

scroll_list_customization {
  preserve_scroll_list_header_footer_aspect_ratio = true
  render_scroll_list_header_shadow = true
  render_scroll_list_footer_shadow = true
  show_scroll_list_header_footer_preview_in_editor = false
  repeat_scroll_list_header_texture = false
  repeat_scroll_list_footer_texture = false
  show_screen_background_overlay_on_custom_background = false
  apply_vanilla_background_blur = false
}

layout_action_executable_blocks {
}

// === Background panel ===
element {
  source = [source:local]minecraft:textures/gui/menu_list_background.png
  repeat_texture = false
  nine_slice_texture = false
  nine_slice_texture_border_x = 5
  nine_slice_texture_border_y = 5
  image_tint = #1A1A1AE6
  restart_animated_on_menu_load = false
  element_type = image
  instance_identifier = bg-panel-update
  appearance_delay = no_delay
  appearance_delay_seconds = 1.0
  fade_in_v2 = no_fading
  fade_in_speed = 1.0
  fade_out = no_fading
  fade_out_speed = 1.0
  base_opacity = 1.0
  auto_sizing = false
  auto_sizing_base_screen_width = 854
  auto_sizing_base_screen_height = 480
  sticky_anchor = false
  anchor_point = mid-centered
  x = -300
  y = -180
  width = 600
  height = 360
  stretch_x = false
  stretch_y = false
  stay_on_screen = true
  element_loading_requirement_container_identifier = bg-panel-update-req
  [loading_requirement_container_meta:bg-panel-update-req] = [groups:][instances:]
  enable_parallax = false
  parallax_intensity_v2 = 0.5
  invert_parallax = false
  animated_offset_x = 0
  animated_offset_y = 0
  load_once_per_session = false
  in_editor_color = #FFC800FF
  layer_hidden_in_editor = false
  rotation_degrees = 0.0
  advanced_rotation_mode = false
  vertical_tilt_degrees = 0.0
  advanced_vertical_tilt_mode = false
  horizontal_tilt_degrees = 0.0
  advanced_horizontal_tilt_mode = false
}

// === Title: "What's New" ===
element {
  text_alignment = center
  text = &6What\'s New
  color = #FFFFFFFF
  scale = 2.0
  shadow = true
  bold = true
  italic = false
  underline = false
  strikethrough = false
  obfuscated = false
  font = minecraft:default
  text_source_mode = direct_text
  wrap_text = false
  line_spacing = 1.0
  rotation_degrees = 0.0
  advanced_rotation_mode = false
  vertical_tilt_degrees = 0.0
  advanced_vertical_tilt_mode = false
  horizontal_tilt_degrees = 0.0
  advanced_horizontal_tilt_mode = false
  element_type = text
  instance_identifier = title-update
  appearance_delay = no_delay
  appearance_delay_seconds = 1.0
  fade_in_v2 = no_fading
  fade_in_speed = 1.0
  fade_out = no_fading
  fade_out_speed = 1.0
  base_opacity = 1.0
  auto_sizing = true
  auto_sizing_base_screen_width = 854
  auto_sizing_base_screen_height = 480
  sticky_anchor = false
  anchor_point = top-centered
  x = 0
  y = 30
  width = 580
  height = 40
  stretch_x = false
  stretch_y = false
  stay_on_screen = true
  element_loading_requirement_container_identifier = title-update-req
  [loading_requirement_container_meta:title-update-req] = [groups:][instances:]
  enable_parallax = false
  parallax_intensity_v2 = 0.5
  invert_parallax = false
  animated_offset_x = 0
  animated_offset_y = 0
  load_once_per_session = false
  in_editor_color = #FFC800FF
  layer_hidden_in_editor = false
}

// === Changelog text (UPDATE THIS WITH EACH RELEASE) ===
element {
  text_alignment = top-left
  text = &e&lVanilla Expense v0.5.8&r&7\n\n&a[+] Added&r&7\n &r- Welcome Screen integration\n &r- Welcome & changelog screens\n\n&2[*] Changed&r&7\n &r- Removed broken Konkrete mod\n &r- Disabled Quark keybind modules\n &r- Fixed ModernFix spark profile error\n\n&c[-] Removed&r&7\n &r- Konkrete 1.9.9 (NPE bug)\n &r- CoroUtil 1.21.0 (config loop)\n &r- ModpackUpdateChecker (button bug)\n &r- AutoModpack (not needed for client)\n\n&b[!] Fixed&r&7\n &r- Quark Hotbar Changer NPE\n &r- Game hang on startup\n &r- 124 orphan config files cleaned
  color = #FFFFFFFF
  scale = 1.0
  shadow = true
  bold = false
  italic = false
  underline = false
  strikethrough = false
  obfuscated = false
  font = minecraft:default
  text_source_mode = direct_text
  wrap_text = true
  line_spacing = 1.1
  rotation_degrees = 0.0
  advanced_rotation_mode = false
  vertical_tilt_degrees = 0.0
  advanced_vertical_tilt_mode = false
  horizontal_tilt_degrees = 0.0
  advanced_horizontal_tilt_mode = false
  element_type = text
  instance_identifier = changelog-update
  appearance_delay = no_delay
  appearance_delay_seconds = 1.0
  fade_in_v2 = no_fading
  fade_in_speed = 1.0
  fade_out = no_fading
  fade_out_speed = 1.0
  base_opacity = 1.0
  auto_sizing = true
  auto_sizing_base_screen_width = 854
  auto_sizing_base_screen_height = 480
  sticky_anchor = false
  anchor_point = mid-centered
  x = -275
  y = -70
  width = 550
  height = 180
  stretch_x = false
  stretch_y = false
  stay_on_screen = true
  element_loading_requirement_container_identifier = changelog-update-req
  [loading_requirement_container_meta:changelog-update-req] = [groups:][instances:]
  enable_parallax = false
  parallax_intensity_v2 = 0.5
  invert_parallax = false
  animated_offset_x = 0
  animated_offset_y = 0
  load_once_per_session = false
  in_editor_color = #FFC800FF
  layer_hidden_in_editor = false
}

// === GitHub button ===
vanilla_button {
  button_element_executable_block_identifier = github-btn-update
  [executable_block:github-btn-update][type:generic] = [executables:openlink=https://github.com/filowxy/vanilla-expanse-updates]
  restartbackgroundanimations = true
  nine_slice_custom_background = false
  nine_slice_border_x = 5
  nine_slice_border_y = 5
  navigatable = true
  widget_active_state_requirement_container_identifier = github-btn-update-req
  [loading_requirement_container_meta:github-btn-update-req] = [groups:][instances:]
  is_template = false
  template_apply_width = false
  template_apply_height = false
  template_apply_posx = false
  template_apply_posy = false
  template_apply_opacity = false
  template_apply_visibility = false
  template_apply_label = false
  template_share_with = buttons
  nine_slice_slider_handle = false
  nine_slice_slider_handle_border_x = 5
  nine_slice_slider_handle_border_y = 5
  element_type = vanilla_button
  instance_identifier = github-btn-update-id
  appearance_delay = no_delay
  appearance_delay_seconds = 1.0
  fade_in_v2 = no_fading
  fade_in_speed = 1.0
  fade_out = no_fading
  fade_out_speed = 1.0
  base_opacity = 1.0
  auto_sizing = false
  auto_sizing_base_screen_width = 0
  auto_sizing_base_screen_height = 0
  sticky_anchor = false
  anchor_point = bottom-left
  x = 225
  y = 50
  width = 150
  height = 30
  stretch_x = false
  stretch_y = false
  stay_on_screen = true
  element_loading_requirement_container_identifier = github-btn-update-load
  [loading_requirement_container_meta:github-btn-update-load] = [groups:][instances:]
  enable_parallax = false
  parallax_intensity_v2 = 0.5
  invert_parallax = false
  animated_offset_x = 0
  animated_offset_y = 0
  load_once_per_session = false
  in_editor_color = #FFC800FF
  layer_hidden_in_editor = false
  rotation_degrees = 0.0
  advanced_rotation_mode = false
  vertical_tilt_degrees = 0.0
  advanced_vertical_tilt_mode = false
  horizontal_tilt_degrees = 0.0
  advanced_horizontal_tilt_mode = false
  is_hidden = false
  automated_button_clicks = 0
  label = &6GitHub
}

// === Continue button (closes the update screen) ===
vanilla_button {
  button_element_executable_block_identifier = continue-btn-update
  [executable_block:continue-btn-update][type:generic] = [executables:closegui]
  restartbackgroundanimations = true
  nine_slice_custom_background = false
  nine_slice_border_x = 5
  nine_slice_border_y = 5
  navigatable = true
  widget_active_state_requirement_container_identifier = continue-btn-update-req
  [loading_requirement_container_meta:continue-btn-update-req] = [groups:][instances:]
  is_template = false
  template_apply_width = false
  template_apply_height = false
  template_apply_posx = false
  template_apply_posy = false
  template_apply_opacity = false
  template_apply_visibility = false
  template_apply_label = false
  template_share_with = buttons
  nine_slice_slider_handle = false
  nine_slice_slider_handle_border_x = 5
  nine_slice_slider_handle_border_y = 5
  element_type = vanilla_button
  instance_identifier = continue-btn-update-id
  appearance_delay = no_delay
  appearance_delay_seconds = 1.0
  fade_in_v2 = no_fading
  fade_in_speed = 1.0
  fade_out = no_fading
  fade_out_speed = 1.0
  base_opacity = 1.0
  auto_sizing = false
  auto_sizing_base_screen_width = 0
  auto_sizing_base_screen_height = 0
  sticky_anchor = false
  anchor_point = bottom-right
  x = 60
  y = 50
  width = 150
  height = 30
  stretch_x = false
  stretch_y = false
  stay_on_screen = true
  element_loading_requirement_container_identifier = continue-btn-update-load
  [loading_requirement_container_meta:continue-btn-update-load] = [groups:][instances:]
  enable_parallax = false
  parallax_intensity_v2 = 0.5
  invert_parallax = false
  animated_offset_x = 0
  animated_offset_y = 0
  load_once_per_session = false
  in_editor_color = #FFC800FF
  layer_hidden_in_editor = false
  rotation_degrees = 0.0
  advanced_rotation_mode = false
  vertical_tilt_degrees = 0.0
  advanced_vertical_tilt_mode = false
  horizontal_tilt_degrees = 0.0
  advanced_horizontal_tilt_mode = false
  is_hidden = false
  automated_button_clicks = 0
  label = &aGot it!
}
