Merge remote-tracking branch 'origin/demo'

This commit is contained in:
cakipaul 2025-08-18 22:55:06 +08:00
commit 795bf2adba
6 changed files with 41 additions and 12 deletions

View File

@ -61,7 +61,6 @@ ui_center_notify_c03准备研磨,已准备好研磨,,,,,
ui_center_notify_c03粘刀把,按 E 粘上刀把,,,,,
ui_center_notify_c03绞肉机缺少转轮,缺少配件,暂时不能用,,,,,
ui_center_notify_c03绞肉机安装转轮,按 E 安装转轮,,,,,
ui_获得道具,获得道具,,,,,Item Obtained
ui_退出,退出,,,,,Exit
ui_阅读,阅读,,,,,Read
ui_检阅,检阅,,,,,Examine
@ -165,8 +164,10 @@ prop_眼镜盒,眼镜盒,,,[#texture=c02/眼镜盒.png],,Glasses Case
prop_眼镜盒_说明,这副眼镜对我很重要。{br}记得小时候在浦育院的日子,我经常会在半夜时听到奇怪的说话声,还时不时能看见其他小孩子看不见的东西。{br}院长不知从哪儿找来了这样一副眼镜,戴上它后那些怪事就很少发生。{br}随着年龄增长,我几乎已用不到这副眼镜。现在它对我来说似乎有了新的意义。,,,,,"These glasses are very important to me.{br}I remember during my childhood at Puyu Orphanage, I would often hear strange voices at midnight and sometimes see things other children couldn't see.{br}The director found these glasses somewhere. After wearing them, those strange occurrences rarely happened.{br}As I grew older, I hardly needed these glasses anymore. Now they seem to have taken on new meaning for me."
prop_小蝉人偶,小蝉人偶,,,[#texture=c02/小蝉人偶.png],,Little Chan Doll
prop_小蝉人偶_说明,小小的人儿,小小的鞋子,小小的友情啊——像蝶依偎着花。,,,,,"Little person, little shoes, little friendship—like a butterfly nestled against a flower."
prop_小蝉人偶_详情,skip,,,,,
prop_单只小鞋子,一只小鞋子,,,[#texture=c02/小鞋子1.png],,A Single Small Shoe
prop_单只小鞋子_说明,这只小鞋子曾经属于一个裹了小脚的女孩。{br}鞋不成双,祸事难防。,,,,,"This small shoe once belonged to a girl with bound feet.{br}When shoes don't come in pairs, misfortune is hard to prevent."
prop_单只小鞋子_详情,skip,,,,,
prop_邀请信,邀请信,,,[#texture=c03/邀请信.png][#inspect=c03/ux_邀请信.png],,
prop_邀请信_说明,爸爸说邀请别人来家里吃饭要正式一点,所以我写了信给你。{br}好久没写过毛笔字,写的字像虫子爬,好难看,不过你肯定不会嫌弃我。{br}方叔叔上次给的洋点心我留了一块,咱俩一人一半。{br} 你天下第一好的朋友,,,,,
prop_两个麻将,麻将,,,[#texture=c03/两个麻将.png],,

1 keys zh_CN _character _notes _tags zh_SH en
61 ui_center_notify_c03粘刀把 按 E 粘上刀把
62 ui_center_notify_c03绞肉机缺少转轮 缺少配件,暂时不能用
63 ui_center_notify_c03绞肉机安装转轮 按 E 安装转轮
ui_获得道具 获得道具 Item Obtained
64 ui_退出 退出 Exit
65 ui_阅读 阅读 Read
66 ui_检阅 检阅 Examine
164 prop_眼镜盒_说明 这副眼镜对我很重要。{br}记得小时候在浦育院的日子,我经常会在半夜时听到奇怪的说话声,还时不时能看见其他小孩子看不见的东西。{br}院长不知从哪儿找来了这样一副眼镜,戴上它后那些怪事就很少发生。{br}随着年龄增长,我几乎已用不到这副眼镜。现在它对我来说似乎有了新的意义。 These glasses are very important to me.{br}I remember during my childhood at Puyu Orphanage, I would often hear strange voices at midnight and sometimes see things other children couldn't see.{br}The director found these glasses somewhere. After wearing them, those strange occurrences rarely happened.{br}As I grew older, I hardly needed these glasses anymore. Now they seem to have taken on new meaning for me.
165 prop_小蝉人偶 小蝉人偶 [#texture=c02/小蝉人偶.png] Little Chan Doll
166 prop_小蝉人偶_说明 小小的人儿,小小的鞋子,小小的友情啊——像蝶依偎着花。 Little person, little shoes, little friendship—like a butterfly nestled against a flower.
167 prop_小蝉人偶_详情 skip
168 prop_单只小鞋子 一只小鞋子 [#texture=c02/小鞋子1.png] A Single Small Shoe
169 prop_单只小鞋子_说明 这只小鞋子曾经属于一个裹了小脚的女孩。{br}鞋不成双,祸事难防。 This small shoe once belonged to a girl with bound feet.{br}When shoes don't come in pairs, misfortune is hard to prevent.
170 prop_单只小鞋子_详情 skip
171 prop_邀请信 邀请信 [#texture=c03/邀请信.png][#inspect=c03/ux_邀请信.png]
172 prop_邀请信_说明 爸爸说邀请别人来家里吃饭要正式一点,所以我写了信给你。{br}好久没写过毛笔字,写的字像虫子爬,好难看,不过你肯定不会嫌弃我。{br}方叔叔上次给的洋点心我留了一块,咱俩一人一半。{br} 你天下第一好的朋友
173 prop_两个麻将 麻将 [#texture=c03/两个麻将.png]

View File

@ -73,7 +73,7 @@
缺少配件,暂时不能用[ID:ui_center_notify_c03绞肉机缺少转轮]
按 E 安装转轮[ID:ui_center_notify_c03绞肉机安装转轮]
获得道具[ID:ui_获得道具]
获得[ID:ui_获得]
退出[ID:ui_退出]
阅读[ID:ui_阅读]
检阅[ID:ui_检阅]
@ -204,8 +204,10 @@
这副眼镜对我很重要。{br}记得小时候在浦育院的日子,我经常会在半夜时听到奇怪的说话声,还时不时能看见其他小孩子看不见的东西。{br}院长不知从哪儿找来了这样一副眼镜,戴上它后那些怪事就很少发生。{br}随着年龄增长,我几乎已用不到这副眼镜。现在它对我来说似乎有了新的意义。[ID:prop_眼镜盒_说明]
小蝉人偶[#texture=c02/小蝉人偶.png][ID:prop_小蝉人偶]
小小的人儿,小小的鞋子,小小的友情啊——像蝶依偎着花。[ID:prop_小蝉人偶_说明]
skip[ID:prop_小蝉人偶_详情]
一只小鞋子[#texture=c02/小鞋子1.png][ID:prop_单只小鞋子]
这只小鞋子曾经属于一个裹了小脚的女孩。{br}鞋不成双,祸事难防。[ID:prop_单只小鞋子_说明]
skip[ID:prop_单只小鞋子_详情]
# c03
邀请信[#texture=c03/邀请信.png][#inspect=c03/ux_邀请信.png][ID:prop_邀请信]
爸爸说邀请别人来家里吃饭要正式一点,所以我写了信给你。{br}好久没写过毛笔字,写的字像虫子爬,好难看,不过你肯定不会嫌弃我。{br}方叔叔上次给的洋点心我留了一块,咱俩一人一半。{br} 你天下第一好的朋友[ID:prop_邀请信_说明]

View File

@ -136,7 +136,7 @@ unique_name_in_owner = true
modulate = Color(0.753984, 0.753984, 0.753984, 1)
z_index = 100
position = Vector2(0, -60)
scale = Vector2(0.07, 0.07)
scale = Vector2(0.05, 0.05)
[node name="Sprite2D" type="AnimatedSprite2D" parent="SpeakingSign2D"]
light_mask = 16

View File

@ -189,6 +189,10 @@ var help_tween_paused := false
func show_interact_help():
const shown_key = "c02_s05_has_shown_tip"
if ArchiveManager.runtime_get(shown_key):
return
ArchiveManager.runtime_set(shown_key, true)
tip.modulate.a = 0.0
tip.show()
SceneManager.lock_player()

View File

@ -174,6 +174,15 @@ func get_item_description(prop_key: String) -> String:
return tr(prop_key + "_说明").replace("{br}", "\n")
func get_bag_item_description(prop_key: String) -> String:
# 优先访问 _背包说明, if null then _说明
var tr_key = prop_key + "_背包说明"
var content = tr(tr_key)
if content == tr_key:
return tr(prop_key + "_说明").replace("{br}", "\n")
return content.replace("{br}", "\n")
func _reload_cache_and_realign_display() -> void:
if ArchiveManager.archive:
inventory = ArchiveManager.archive.prop_inventory
@ -572,7 +581,7 @@ func enable_prop_item(prop_key: String, inspect := true, inspect_content := fals
inspect_item(prop_key, true, inspect_content)
func inspect_item(prop_key: String, display_obtained := true, inspect_content := false):
func inspect_item(prop_key: String, display_obtained := true, as_important_item := false):
var inspector = SceneManager.get_inspector() as PropInspector
if not inspector or not items_dict.has(prop_key):
return
@ -591,14 +600,25 @@ func inspect_item(prop_key: String, display_obtained := true, inspect_content :=
if not texture:
printerr("prophud inspect_item invalid texture for key:", prop_key)
return
if inspect_content:
if as_important_item:
# skip | show
var display_mode = tr(prop_key + "_详情")
inspector.pop_prop_inspection(prop_key, texture, true)
# 重要物品可能展示检阅界面
if display_mode == "show":
var content = get_item_description(prop_key)
var wide = len(content) > 150
inspector.pop_standard_inspection(texture, null, content, false, wide)
inspector.hiding_tween_started.connect(_post_display_detail.bind(texture, content), CONNECT_ONE_SHOT)
else:
inspector.pop_prop_inspection(prop_key, texture, display_obtained)
# 重要物品可能展示检阅界面
func _post_display_detail(texture, content) -> void:
var wide = len(content) > 150
var inspector = SceneManager.get_inspector() as PropInspector
inspector.pop_standard_inspection(texture, null, content, false, wide)
func disable_prop_item(prop_key: String) -> void:
if not inventory or not prop_key:
return

View File

@ -8,6 +8,7 @@ enum {
STATUS_INSPECTING_NOTES
}
signal hiding_tween_started
signal quit_and_hidden
@onready var mouse_mask = %MouseMask as Control
@ -64,11 +65,10 @@ func _hide():
blinking_tween.kill()
hiding_tween.parallel().tween_property(tip_label, "modulate:a", 0.0, 0.15)
hiding_tween.tween_callback(_post_hide)
# 在状态设置后发送信号
hiding_tween_started.emit()
func _post_hide():
# hiding_tween 被 kill 的时候需要调用 _post_hide 或 quit_and_hidden.emit()
quit_and_hidden.emit()
scroll_container.mouse_filter = Control.MOUSE_FILTER_IGNORE
locking = false
full_texture.texture = null
@ -78,6 +78,8 @@ func _post_hide():
tip_label.text = tip_cover
notes_bg.visible = false
visible = false
# hiding_tween 被 kill 的时候需要调用 _post_hide 或 quit_and_hidden.emit()
quit_and_hidden.emit()
func _blink_label(init := true):
@ -169,7 +171,7 @@ func pop_prop_inspection(
# 缩略只要第一行
var content = original_word_lines[0] + ("..." if len(original_word_lines) > 1 else "")
if display_obtained:
var obtain_str = tr("ui_获得道具")
var obtain_str = tr("ui_获得")
inspector_balloon.show_prop_balloon(obtain_str, prop_title, content)
else:
inspector_balloon.show_prop_content(content)