Browse Source

Add new conditions for Crosshair

tznind 2 years ago
parent
commit
ef1903c375
1 changed files with 17 additions and 0 deletions
  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,