Vibe improvements to editor tool

This commit is contained in:
2026-09-28 13:03:05 -04:00
parent 9b3c81e9d6
commit 816f8798d6
11 changed files with 623 additions and 70 deletions
@@ -23,6 +23,8 @@ public sealed class MapDrawable : IDrawable
public double OffsetY { get; set; }
public RectF? SelectionBox { get; set; }
public void Draw(ICanvas canvas, RectF dirtyRect)
{
canvas.FillColor = Color.FromArgb("#1e2430");
@@ -72,6 +74,15 @@ public sealed class MapDrawable : IDrawable
canvas.DrawCircle(center, node.IsHighlighted ? radius + 8 : radius + 6);
}
}
if (SelectionBox is { Width: > 0, Height: > 0 } box)
{
canvas.FillColor = Color.FromArgb("#334a90d9");
canvas.FillRectangle(box);
canvas.StrokeColor = Color.FromArgb("#4a90d9");
canvas.StrokeSize = 1.5f;
canvas.DrawRectangle(box);
}
}
public static Color ColorForKind(string kind) => kind switch