Explorar o código

Add new conditions for Crosshair

tznind %!s(int64=2) %!d(string=hai) anos
pai
achega
ef1903c375
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  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,