diff --git a/runtime/entry/views/market_page_view.gd b/runtime/entry/views/market_page_view.gd index 0a101857..faa15bbd 100644 --- a/runtime/entry/views/market_page_view.gd +++ b/runtime/entry/views/market_page_view.gd @@ -575,11 +575,11 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: var top := HBoxContainer.new() top.name = "M50MarketTopBar" - top.custom_minimum_size.y = 48 + top.custom_minimum_size.y = 58 top.add_theme_constant_override("separation", 10) var top_surface := Panel.new() top_surface.name = "MarketTopBarSurface" - top_surface.custom_minimum_size.y = 48 + top_surface.custom_minimum_size.y = 58 top_surface.size_flags_horizontal = Control.SIZE_EXPAND_FILL var top_style := StyleBoxFlat.new() top_style.bg_color = Color(0.08, 0.13, 0.15, 0.78) @@ -590,17 +590,26 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: page.add_child(top_surface) top.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT) top_surface.add_child(top) - var title := UIFactory.label(_tr("市场", "MARKET", data), "heading", 1.0, Tokens.COLOR_IVORY) + var title_plaque := PanelContainer.new() + title_plaque.name = "MarketTitlePlaque" + title_plaque.custom_minimum_size = Vector2(210, 52) + title_plaque.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN + title_plaque.add_theme_stylebox_override("panel", _flat_style(Color(0.94, 0.87, 0.70, 0.97), Color(0.47, 0.31, 0.18, 0.95), 2, 10)) + var title_stack := VBoxContainer.new() + title_stack.alignment = BoxContainer.ALIGNMENT_CENTER + title_stack.add_theme_constant_override("separation", 0) + var title := UIFactory.label(_tr("市场", "MARKET", data), "heading", 1.0, Tokens.COLOR_INK) title.name = "M50MarketTitle" - title.add_theme_color_override("font_outline_color", Color(0.02, 0.05, 0.07, 0.85)) - title.add_theme_constant_override("outline_size", 2) - title.vertical_alignment = VERTICAL_ALIGNMENT_CENTER - top.add_child(title) - var stage := UIFactory.label(_tr("挑选一名伙伴,准备出发", "CHOOSE A PARTNER, THEN DEPART", data), "label", 1.0, Tokens.COLOR_GOLD_LIGHT) + title.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER + title.add_theme_color_override("font_outline_color", Color(0.80, 0.65, 0.40, 0.45)) + title.add_theme_constant_override("outline_size", 1) + title_stack.add_child(title) + var stage := UIFactory.label(_tr("准备出发", "PREPARE TO DEPART", data), "micro", 1.0, Color("#7b5228")) stage.name = "M50MarketStage" - stage.vertical_alignment = VERTICAL_ALIGNMENT_CENTER - stage.size_flags_horizontal = Control.SIZE_EXPAND_FILL - top.add_child(stage) + stage.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER + title_stack.add_child(stage) + title_plaque.add_child(title_stack) + top.add_child(title_plaque) var company_facts: Dictionary = Dictionary(data.get("company", {})) var company_status := _m50_resource_chip("MarketCompanyStatus", "company", "%s %d/%d" % [_tr("队伍", "LINE", data), int(company_facts.get("owned_count", 0)), int(company_facts.get("line_capacity", 0))]) top.add_child(company_status) @@ -664,7 +673,7 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: var selected: Dictionary = Dictionary(data.get("selected_offer", {})) var board := Panel.new() board.name = "MarketContextSurface" - board.add_theme_stylebox_override("panel", Tokens.surface_style("context")) + board.add_theme_stylebox_override("panel", _flat_style(Color(0.15, 0.25, 0.25, 0.94), Color(Tokens.COLOR_GOLD_LIGHT, 0.78), 2, 10)) board.custom_minimum_size = Vector2(260 if size.x < 820.0 else 286, 0) board.size_flags_horizontal = Control.SIZE_EXPAND board.size_flags_vertical = Control.SIZE_EXPAND_FILL @@ -687,7 +696,7 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: if size.x < 820.0: board_title.add_theme_font_size_override("font_size", 18) board_content.add_child(board_title) - var instruction := UIFactory.label(_tr("职业、特质与招募价格", "ROLE, TRAIT AND RECRUITMENT COST"), "micro", 1.0, Tokens.COLOR_GOLD_LIGHT) + var instruction := UIFactory.label(_tr("职业、特质与招募价格", "ROLE, TRAIT AND RECRUITMENT COST"), "micro", 1.0, Color("#ead49b")) instruction.name = "M50CommissionInstruction" instruction.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART instruction.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER @@ -698,14 +707,14 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: var detail_surface := PanelContainer.new() detail_surface.name = "MarketCandidateFactSurface" detail_surface.size_flags_vertical = Control.SIZE_EXPAND_FILL - detail_surface.add_theme_stylebox_override("panel", _flat_style(Color(0.06, 0.10, 0.13, 0.56), Color(Tokens.COLOR_GOLD_LIGHT, 0.28), 1, 8)) - var detail := UIFactory.label("", "body", 1.0, Tokens.COLOR_IVORY) + detail_surface.add_theme_stylebox_override("panel", _flat_style(Color(0.94, 0.86, 0.68, 0.94), Color(0.47, 0.31, 0.18, 0.70), 1, 8)) + var detail := UIFactory.label("", "body", 1.0, Tokens.COLOR_INK) detail.name = "M50CommissionDetail" detail.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART detail.vertical_alignment = VERTICAL_ALIGNMENT_CENTER detail_surface.add_child(detail) board_content.add_child(detail_surface) - var review := UIFactory.command_button("MarketReviewRecruit", _tr("查看详情", "REVIEW DETAILS"), "primary", "inspect", "flat", "content", Vector2(0, 52)) + var review := UIFactory.command_button("MarketReviewRecruit", _tr("查看详情", "REVIEW DETAILS"), "primary", "inspect", "angular", "company", Vector2(0, 52)) review.size_flags_horizontal = Control.SIZE_EXPAND_FILL review.disabled = selected_offer_id.is_empty() or selected_kind != "recruit" UIFactory.refresh_command_button(review, review.disabled, false) @@ -731,7 +740,7 @@ func _render_m50_responsive_slice(data: Dictionary) -> void: footer.add_child(footer_hint) var return_command_facts: Dictionary = Dictionary(Dictionary(data.get("commands", {})).get("return_contract", {})) var return_enabled := bool(return_command_facts.get("enabled", false)) - var return_contract := UIFactory.command_button("MarketReturnContract", _tr("返回委托", "RETURN"), "danger", "risk", "flat", "content", Vector2(148, 48)) + var return_contract := UIFactory.command_button("MarketReturnContract", _tr("返回委托", "RETURN"), "danger", "risk", "angular", "company", Vector2(148, 48)) return_contract.disabled = not return_enabled UIFactory.refresh_command_button(return_contract, return_contract.disabled, false) return_contract.set_meta("market_command_role", "contract_return")