Vibe improvements to editor tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user