Vibe filters
This commit is contained in:
@@ -57,7 +57,7 @@ public sealed class MapDrawable : IDrawable
|
||||
var center = ToScreen(node.X, node.Y);
|
||||
var radius = (float)(NodeRadius * Scale);
|
||||
|
||||
canvas.FillColor = ColorForKind(node.Doc.Kind);
|
||||
canvas.FillColor = ColorForOwner(node.Doc.Owner);
|
||||
canvas.FillCircle(center, radius);
|
||||
|
||||
if (node.IsHighlighted)
|
||||
@@ -85,11 +85,19 @@ public sealed class MapDrawable : IDrawable
|
||||
}
|
||||
}
|
||||
|
||||
public static Color ColorForKind(string kind) => kind switch
|
||||
public static Color ColorForOwner(string owner) => owner switch
|
||||
{
|
||||
"Homeworld" => Color.FromArgb("#43a047"),
|
||||
"Core" => Color.FromArgb("#fb8c00"),
|
||||
"Side" => Color.FromArgb("#4a90d9"),
|
||||
"The Eden Accord" => Color.FromArgb("#10b981"),
|
||||
"The Keeper Council" => Color.FromArgb("#38bdf8"),
|
||||
"The Obsidian Order" => Color.FromArgb("#ef4444"),
|
||||
_ => Color.FromArgb("#9aa5b1"),
|
||||
};
|
||||
|
||||
public static Color ColorForCategory(string category) => category switch
|
||||
{
|
||||
"Homeworld System" or "Homeworld" => Color.FromArgb("#43a047"),
|
||||
"Core System" or "Core" => Color.FromArgb("#fb8c00"),
|
||||
"Side System" or "Side" => Color.FromArgb("#4a90d9"),
|
||||
_ => Color.FromArgb("#9aa5b1"),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user