pop inspect full_content fix
This commit is contained in:
parent
3bc89b97e8
commit
80e2259f9c
@ -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)
|
printerr("prophud inspect_item invalid texture for key:", prop_key)
|
||||||
return
|
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:
|
if as_important_item:
|
||||||
# skip | show
|
# skip | show
|
||||||
var display_mode = tr(prop_key + "_详情")
|
var display_mode = tr(prop_key + "_详情")
|
||||||
|
Loading…
Reference in New Issue
Block a user