17 lines
542 B
C#
17 lines
542 B
C#
|
|
using Godot;
|
||
|
|
|
||
|
|
namespace Theriapolis.GodotHost.Rendering;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Filled circle settlement marker on the world map. Sized in world-pixel
|
||
|
|
/// space; the parent <see cref="WorldRenderNode"/> hides the layer above
|
||
|
|
/// the tactical-zoom threshold so the dot doesn't clutter close-up views.
|
||
|
|
/// </summary>
|
||
|
|
public partial class SettlementDot : Node2D
|
||
|
|
{
|
||
|
|
public float Radius { get; set; } = 8f;
|
||
|
|
public Color FillColor { get; set; } = Colors.White;
|
||
|
|
|
||
|
|
public override void _Draw() => DrawCircle(Vector2.Zero, Radius, FillColor);
|
||
|
|
}
|