Add Rebler

This commit is contained in:
2026-07-15 00:06:26 +02:00
parent 9baae02240
commit 4c9da5c9d5
12 changed files with 155 additions and 49 deletions
@@ -69,7 +69,7 @@ namespace PamhagenSysCtrl.Windows {
foreach (var p in Graph.SelectedPaths) {
Graph.ColorPipesAdjacientToPath(p, Brushes.Green, Brushes.Orange);
}
var hover = Graph.Update(pos.X, pos.Y, down);
var hover = Graph.GetHover(pos.X, pos.Y);
if (_lastSource != null && (hover.Count > 0 || _path.Count > 0)) {
List<INode> points = [_lastSource, .. _path];
if (hover.Count > 0 && !points.Contains(hover.First())) {
@@ -90,7 +90,7 @@ namespace PamhagenSysCtrl.Windows {
edge.Highlight = Brushes.Green;
}
}
Graph.Update(pos.X, pos.Y, down);
Graph.Update(hover, down);
return hover;
}