工程(判据出处注记4/7·presentation+剩余探针+system/smoke/example): 21套件+11探针+3宿主逐函数/逐段挂# oracle注记——HUD框架:260-282拒绝三源/明细行/状态槽/微光/三区几何/对比度+camp.md:16/29/45+level-map:3/11+level-clear+node-reward+设置与本地化:95+锻造工坊窗口内容+battle.md:122/128/154+战斗表现:148+test-conventions:30/37/84+code-conventions:41/54+architecture:168+README术语表; tune_sim_batch_parity(调参测量域)零规格句不造锚——记规格缺口待裁; 本步凭据: 抽验4套件+5探针+system_test+ui_click直跑全绿

This commit is contained in:
DKChan committed 2026-11-06 07:31:03 +08:00
1 parent 9e26df16be
commit 085717166d
32 files changed
+97 -2

No files matched your search

@@ -12,6 +12,7 @@ const ISO_PATH := "user://settings_store_unit_test.cfg" # 隔离注路径(
func _init() -> void:
# oracle: design/gdd/systems/表现与支撑/设置与本地化.md:4(设置存储宿主——装载组)
_test_settings_roundtrip()
_test_settings_default()
_test_settings_apply_chain()
@@ -26,6 +27,7 @@ func _cleanup() -> void:
# ---- 持久化回读(写 true→存→新实例回读 true;节/键 motion/reduced)----
func _test_settings_roundtrip() -> void:
# oracle: design/gdd/systems/表现与支撑/设置与本地化.md:4(设置写读往返组)
var w = StoreScript.new(ISO_PATH)
w.reduced_motion = true
Kit.check("前置:save_settings 落盘成功", w.save_settings())
@@ -42,6 +44,7 @@ func _test_settings_roundtrip() -> void:
# ---- 缺省值(无文件缺省 false)----
func _test_settings_default() -> void:
# oracle: design/gdd/systems/表现与支撑/设置与本地化.md:4(出厂默认组)
var absent_path := "user://settings_store_unit_absent_%d.cfg" % (Time.get_ticks_msec())
DirAccess.remove_absolute(ProjectSettings.globalize_path(absent_path)) # 确保无文件
var d = StoreScript.new(absent_path)
@@ -52,6 +55,7 @@ func _test_settings_default() -> void:
# ---- 引擎档应用链(reduced→apply()→UiKit.motion_scale==0.5,false→1.0;测毕还原静态初值)----
func _test_settings_apply_chain() -> void:
# oracle: design/gdd/systems/表现与支撑/设置与本地化.md:4(应用链组)
var saved_scale: float = UiKit.motion_scale # 静态初值留底——测毕还原
var a = StoreScript.new(ISO_PATH)
a.reduced_motion = true