浏览代码

Add new conditions for Crosshair

tznind 2 年之前
父节点
当前提交
ef1903c375
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      Terminal.Gui/Core/Graphs/StraightLineCanvas.cs

+ 17 - 0
Terminal.Gui/Core/Graphs/StraightLineCanvas.cs

@@ -108,6 +108,23 @@ namespace Terminal.Gui.Graphs {
 				return IntersectionRuneType.Crosshair;
 			}
 
+			if (Has (set,
+				IntersectionType.PassOverVertical,
+				IntersectionType.StartLeft,
+				IntersectionType.StartRight
+				)) {
+				return IntersectionRuneType.Crosshair;
+			}
+
+			if (Has (set,
+				IntersectionType.PassOverHorizontal,
+				IntersectionType.StartUp,
+				IntersectionType.StartDown
+				)) {
+				return IntersectionRuneType.Crosshair;
+			}
+
+
 			if (Has (set,
 				IntersectionType.StartLeft,
 				IntersectionType.StartRight,