From 80e2259f9cd6d18bcacc9791260fcb190c3249b4 Mon Sep 17 00:00:00 2001 From: cakipaul Date: Mon, 18 Aug 2025 23:15:36 +0800 Subject: [PATCH] pop inspect full_content fix --- scene/ux/prop_hud.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scene/ux/prop_hud.gd b/scene/ux/prop_hud.gd index 8becffb4..da2b26bd 100644 --- a/scene/ux/prop_hud.gd +++ b/scene/ux/prop_hud.gd @@ -601,9 +601,10 @@ func inspect_item(prop_key: String, display_obtained := true, as_important_item printerr("prophud inspect_item invalid texture for key:", prop_key) return # 道具的一句话说明 - var full_content = tr(prop_key + "_说明").replace("{br}", "\n").split("\n") + var full_content = tr(prop_key + "_说明").replace("{br}", "\n") + var full_content_parts = full_content.split("\n") # 缩略只要第一行 - var describe_content = full_content[0] + ("..." if len(full_content) > 1 else "") + var describe_content = full_content_parts[0] + ("..." if len(full_content_parts) > 1 else "") if as_important_item: # skip | show var display_mode = tr(prop_key + "_详情")