Implement path selection

This commit is contained in:
lorenz.stechauner committed 2026-07-14 02:26:55 +02:00
1 parent 23c96b9397
commit 6e49693db4
16 files changed
+132 -32

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
canvas.Children.Add(_text);
}
public bool Update(double x, double y) {
public bool Update(double x, double y, bool down) {
var hover = Math.Sqrt(Math.Pow(CenterX - x, 2) + Math.Pow(CenterY - y, 2)) <= DIAMETER / 2;
_circle?.Fill = hover ? Brushes.LightGray : Brushes.WhiteSmoke;
return hover;