From ca57fd39d5c759892dfad18b22c125503621efff Mon Sep 17 00:00:00 2001 From: DKChan <524912269@qq.com> Date: Fri, 2 Oct 2026 05:00:14 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E6=9A=82=E5=9B=9E=E6=BB=9A=E9=80=89?= =?UTF-8?q?=E8=B7=AF=E5=91=88=E7=8E=B0=E4=B8=A4=E4=B8=BB=E5=9B=A0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=88=E5=B9=B2=E7=BA=BF=E5=81=8F=E7=A7=BB+?= =?UTF-8?q?=E9=9D=9E=E5=80=99=E9=80=89=E9=99=8D=E9=80=8F=E6=98=8E=EF=BC=89?= =?UTF-8?q?=E2=80=94=E2=80=94ui=5Fclick=5Fprobe=E5=8D=A1=E6=AD=BB=E5=BD=92?= =?UTF-8?q?=E5=9B=A0=E9=9A=94=E7=A6=BB=E7=94=A8=EF=BC=88=E8=AF=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=8E=E6=8E=A8=E8=BF=9B=E9=80=BB=E8=BE=91=E6=97=A0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=9D=A2=E4=BA=A4=E9=9B=86=E4=BD=86=E5=AE=9E?= =?UTF-8?q?=E8=AF=81=E7=9B=B8=E5=85=B3=EF=BC=8C=E5=8D=A1=E5=9B=A0=E5=BE=85?= =?UTF-8?q?=E4=B8=93=E9=A1=B9=E5=BD=92=E5=9B=A0=EF=BC=9B=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=AC=E4=BD=93=E6=8C=82=E5=8D=95=E7=8B=AC=E6=89=B9=E5=9B=9E?= =?UTF-8?q?=E7=82=89=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/presentation/views/level_map_screen.gd | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/game/presentation/views/level_map_screen.gd b/game/presentation/views/level_map_screen.gd index 9b58f4ef..c11a005a 100644 --- a/game/presentation/views/level_map_screen.gd +++ b/game/presentation/views/level_map_screen.gd @@ -394,9 +394,6 @@ func _draw_graph(canvas: Control) -> void: var visited: Array = _runner.visited_ids() var cand_ids: Array = _runner.next_candidate_ids() # 连线(通道)先行画(方块覆盖其上);悬停预承诺 = 所属通道再增亮(加粗) - # T17 修复:选路停点(候选非空)非候选通道降透明——金岔路从结构网分离(干线共线重叠缺陷的 - # 视觉主因:不同源通道共用同一垂直干线,金边与石色边焊接成「整列可走」假象) - var dim_passages: bool = not cand_ids.is_empty() for node in nodes: var from: Vector2 = pos[node] for tid in _out_ids(node, nodes): @@ -406,7 +403,7 @@ func _draw_graph(canvas: Control) -> void: var to: Vector2 = pos[target] var lit: bool = _id_of(node) == current_id and cand_ids.has(tid) var hovered: bool = lit and _hover_id == tid - var col := COL_PASSAGE_LIT if lit else (Color(COL_PASSAGE, 0.35) if dim_passages else COL_PASSAGE) + var col := COL_PASSAGE_LIT if lit else COL_PASSAGE var width := 4.0 if hovered else (3.0 if lit else 2.0) # 样张 v1 冻结:2/3/4(原 1.5 取整) _draw_passage(canvas, from, to, col, width) # 房间方块 @@ -514,9 +511,6 @@ func _draw_passage(canvas: Control, from: Vector2, to: Vector2, col: Color, widt var b := to - Vector2(NODE_HALF.x, 0) if b.x < a.x: return - # T17 修复:垂直干线 x 按源节点 y 偏移——不同源的边不再共线重叠(旧 mid_x=中点使相邻层 - # 全部通道焊成一条干系,「金岔路+整列可走」误读的直接几何根源)。同源双边仍共线(同出发 - # 点语义正确),跨源分离度 = 源行距 × 0.2(L2 行距 ~58px → 偏移 ~12px 可辨)。 - var mid_x := (a.x + b.x) / 2.0 + (a.y - b.y) * 0.2 + var mid_x := (a.x + b.x) / 2.0 var pts := PackedVector2Array([a, Vector2(mid_x, a.y), Vector2(mid_x, b.y), b]) canvas.draw_polyline(pts, col, width)