Polish QHD title story scaling

This commit is contained in:
2026-06-20 15:27:47 +09:00
parent beb2bdf537
commit f320124270
3 changed files with 67 additions and 7 deletions

View File

@@ -166,6 +166,8 @@ const TITLE_STORY_PREVIEW_IMAGE_FRAME_SIZE := Vector2(140, 74)
const TITLE_STORY_PREVIEW_IMAGE_SIZE := Vector2(132, 66)
const TITLE_STORY_PREVIEW_LABEL_SIZE := Vector2(140, 16)
const TITLE_MENU_ICON_MAX_WIDTH := 42
const TITLE_MENU_BOARD_SIZE := Vector2(520, 650)
const TITLE_MENU_PANEL_SIZE := Vector2(462, 536)
const OPENING_STORY_PROGRESS_LEDGER_SIZE := Vector2(356, 56)
const OPENING_STORY_PROGRESS_SEAL_SIZE := Vector2(38, 38)
const COMMAND_NOTICE_ICON_SIZE := Vector2(32, 32)
@@ -1132,6 +1134,7 @@ func _icon_button_texture_margin_for(button: Button) -> Vector2i:
func _apply_generated_button_style(button: Button, important: bool = false) -> bool:
button.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
var icon_only := bool(button.get_meta("icon_only", false))
var title_button := bool(button.get_meta("title_menu_button", false))
var opening_story_button := bool(button.get_meta("opening_story_button", false))
@@ -3817,12 +3820,14 @@ func _create_hud() -> void:
opening_prologue_root.name = "OpeningPrologue"
opening_prologue_root.visible = false
opening_prologue_root.mouse_filter = Control.MOUSE_FILTER_STOP
opening_prologue_root.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
opening_prologue_root.set_anchors_preset(Control.PRESET_FULL_RECT)
root.add_child(opening_prologue_root)
opening_prologue_background_texture_rect = TextureRect.new()
opening_prologue_background_texture_rect.name = "OpeningStoryBackdrop"
opening_prologue_background_texture_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
opening_prologue_background_texture_rect.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
opening_prologue_background_texture_rect.set_anchors_preset(Control.PRESET_FULL_RECT)
opening_prologue_background_texture_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
opening_prologue_background_texture_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
@@ -3833,6 +3838,7 @@ func _create_hud() -> void:
opening_prologue_scene_texture_rect = TextureRect.new()
opening_prologue_scene_texture_rect.name = "OpeningStoryImage"
opening_prologue_scene_texture_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
opening_prologue_scene_texture_rect.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
opening_prologue_scene_texture_rect.set_anchors_preset(Control.PRESET_FULL_RECT)
opening_prologue_scene_texture_rect.custom_minimum_size = Vector2(1280, 720)
opening_prologue_scene_texture_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
@@ -4524,12 +4530,14 @@ func _create_hud() -> void:
title_screen_root.name = "TitleScreen"
title_screen_root.visible = false
title_screen_root.mouse_filter = Control.MOUSE_FILTER_STOP
title_screen_root.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
title_screen_root.set_anchors_preset(Control.PRESET_FULL_RECT)
root.add_child(title_screen_root)
title_background_texture_rect = TextureRect.new()
title_background_texture_rect.name = "TitleBattlefieldBackdrop"
title_background_texture_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
title_background_texture_rect.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
title_background_texture_rect.set_anchors_preset(Control.PRESET_FULL_RECT)
title_background_texture_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
title_background_texture_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
@@ -4546,17 +4554,18 @@ func _create_hud() -> void:
var title_menu_shadow := ColorRect.new()
title_menu_shadow.name = "TitleMenuInkPanel"
title_menu_shadow.position = Vector2(0, 28)
title_menu_shadow.size = Vector2(560, 608)
title_menu_shadow.size = Vector2(560, 650)
title_menu_shadow.color = Color(0.030, 0.018, 0.010, 0.50)
title_menu_shadow.mouse_filter = Control.MOUSE_FILTER_IGNORE
title_screen_root.add_child(title_menu_shadow)
title_menu_surface_texture_rect = TextureRect.new()
title_menu_surface_texture_rect.name = "TitleGeneratedCommandBoard"
title_menu_surface_texture_rect.position = Vector2(28, 32)
title_menu_surface_texture_rect.size = Vector2(520, 626)
title_menu_surface_texture_rect.custom_minimum_size = Vector2(520, 626)
title_menu_surface_texture_rect.position = Vector2(28, 24)
title_menu_surface_texture_rect.size = TITLE_MENU_BOARD_SIZE
title_menu_surface_texture_rect.custom_minimum_size = TITLE_MENU_BOARD_SIZE
title_menu_surface_texture_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
title_menu_surface_texture_rect.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
title_menu_surface_texture_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
title_menu_surface_texture_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
title_menu_surface_texture_rect.texture = _load_art_texture(TITLE_MENU_SURFACE_PATH)
@@ -4577,6 +4586,7 @@ func _create_hud() -> void:
title_portrait_texture_rect.position = Vector2(646, 42)
title_portrait_texture_rect.size = Vector2(492, 626)
title_portrait_texture_rect.mouse_filter = Control.MOUSE_FILTER_IGNORE
title_portrait_texture_rect.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR
title_portrait_texture_rect.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
title_portrait_texture_rect.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED
title_portrait_texture_rect.texture = _load_art_texture(TITLE_PORTRAIT_PATH)
@@ -4598,8 +4608,8 @@ func _create_hud() -> void:
title_panel = PanelContainer.new()
title_panel.name = "TitleMenuPanel"
title_panel.position = Vector2(58, 78)
title_panel.size = Vector2(462, 526)
title_panel.custom_minimum_size = Vector2(462, 526)
title_panel.size = TITLE_MENU_PANEL_SIZE
title_panel.custom_minimum_size = TITLE_MENU_PANEL_SIZE
_apply_panel_style(title_panel, "transparent_overlay")
title_screen_root.add_child(title_panel)