iter52-卡2:迭代52卡②(孤儿函数清退): 判死六件删除(has_effect_on/_bp_read_int/_find_token/has_open/set_feedback_state/stop_resolved)——级联留存复核全≥1在役,六文件新增孤儿扫描零命中,单测域80套件全绿,零残留grep落审计; 验收档中
This commit is contained in:
1 parent
8aec7dbff1
commit
f2c3a3887d
6 files changed
+3
-52
No files matched your search
@@ -2,7 +2,7 @@
|
||||
## 布局唯一事实源 = db.presentation.camp_scene_layout(构造注入,本视图禁自载表路径);
|
||||
## 子节点序 = 表内数组序 = z 序(Control 根+TextureRect 层——禁 CanvasLayer/z_index/Sprite2D)。
|
||||
## 输入单点:根 _gui_input 集中命中判定(层节点全 IGNORE),点击只发 object_pressed 信号,路由归组合根。
|
||||
## 零核心写调用:视图不读 MetaProgression,禁用态由组合根经 set_feedback_state 推送。
|
||||
## 零核心写调用:视图不读 MetaProgression,禁用态经 _apply_state 自持基态面呈现。
|
||||
class_name CampSceneView
|
||||
extends Control
|
||||
|
||||
@@ -85,13 +85,6 @@ func get_hotspot_rect(key: StringName) -> Rect2:
|
||||
return rect
|
||||
|
||||
|
||||
func set_feedback_state(key: StringName, state: FeedbackState) -> void:
|
||||
if not _base_states.has(key):
|
||||
return
|
||||
_base_states[key] = state # 持久基态只收 NORMAL/DISABLED;HOVER/PRESSED 为视图内瞬态
|
||||
_apply_state(key, _base_state(key))
|
||||
|
||||
|
||||
func set_hud_band(band: Control) -> void:
|
||||
if _hud_slot != null:
|
||||
_hud_slot.add_child(band)
|
||||
|
||||
Reference in new issue
Block a user