fix(m52): align title plaque with chibi direction
This commit is contained in:
@@ -1104,15 +1104,38 @@ func show_title() -> void:
|
||||
_set_normalized_rect(header, Rect2(0.075, 0.095, 0.355, 0.305))
|
||||
header.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
layout.add_child(header)
|
||||
var identity_plaque := TextureRect.new()
|
||||
identity_plaque.name = "TitleIdentityPlaque"
|
||||
identity_plaque.texture = BOOT_IDENTITY_PLAQUE
|
||||
identity_plaque.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
|
||||
identity_plaque.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||
identity_plaque.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR_WITH_MIPMAPS
|
||||
identity_plaque.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
identity_plaque.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
header.add_child(identity_plaque)
|
||||
var identity_surface := Panel.new()
|
||||
identity_surface.name = "TitleIdentityPlaque"
|
||||
identity_surface.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
identity_surface.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
var identity_style := StyleBoxFlat.new()
|
||||
identity_style.bg_color = Color("#f7e8c5")
|
||||
identity_style.border_color = Color("#5a4939")
|
||||
identity_style.set_border_width_all(2)
|
||||
identity_style.set_corner_radius_all(12)
|
||||
identity_style.shadow_color = Color(0.05, 0.10, 0.12, 0.38)
|
||||
identity_style.shadow_size = 5
|
||||
identity_style.shadow_offset = Vector2(2, 3)
|
||||
identity_surface.add_theme_stylebox_override("panel", identity_style)
|
||||
header.add_child(identity_surface)
|
||||
var identity_ribbon := ColorRect.new()
|
||||
identity_ribbon.name = "TitleIdentityRibbon"
|
||||
identity_ribbon.color = Color("#2f6870")
|
||||
identity_ribbon.anchor_left = 0.0
|
||||
identity_ribbon.anchor_top = 0.18
|
||||
identity_ribbon.anchor_right = 0.045
|
||||
identity_ribbon.anchor_bottom = 0.82
|
||||
identity_ribbon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
identity_surface.add_child(identity_ribbon)
|
||||
var identity_accent := ColorRect.new()
|
||||
identity_accent.name = "TitleIdentityAccent"
|
||||
identity_accent.color = Color("#d49b4c")
|
||||
identity_accent.anchor_left = 0.045
|
||||
identity_accent.anchor_top = 0.18
|
||||
identity_accent.anchor_right = 0.055
|
||||
identity_accent.anchor_bottom = 0.82
|
||||
identity_accent.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
identity_surface.add_child(identity_accent)
|
||||
var overline := _label(_tr("风路公会 · 远征入口", "WIND-ROAD GUILD"), _scaled(8), Color("#6a4b2d"))
|
||||
overline.name = "TitleOverline"
|
||||
_set_normalized_rect(overline, Rect2(0.10, 0.10, 0.80, 0.16))
|
||||
|
||||
Reference in New Issue
Block a user