mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 09:03:27 +00:00
add projectile
This commit is contained in:
@@ -183,6 +183,7 @@ namespace omath::hud
|
||||
void dispatch(const widget::SnapLine& snap_line);
|
||||
void dispatch(const widget::ScanMarker& scan_marker);
|
||||
void dispatch(const widget::AimDot& aim_dot);
|
||||
void dispatch(const widget::ProjectileAim& proj_widget);
|
||||
void draw_progress_ring(const Vector2<float>& center, const widget::ProgressRing& ring);
|
||||
void draw_outlined_text(const Vector2<float>& position, const Color& color, const std::string_view& text);
|
||||
void draw_dashed_line(const Vector2<float>& from, const Vector2<float>& to, const Color& color, float dash_len,
|
||||
|
||||
@@ -71,6 +71,20 @@ namespace omath::hud::widget
|
||||
Color color;
|
||||
float radius = 3.f;
|
||||
};
|
||||
struct ProjectileAim
|
||||
{
|
||||
enum class Figure
|
||||
{
|
||||
CIRCLE,
|
||||
SQUARE,
|
||||
};
|
||||
Vector2<float> position;
|
||||
Color color;
|
||||
float size = 3.f;
|
||||
float line_size = 1.f;
|
||||
Figure figure = Figure::SQUARE;
|
||||
};
|
||||
|
||||
|
||||
// ── Side-agnostic widgets (used inside XxxSide containers) ────────────────
|
||||
|
||||
|
||||
Reference in New Issue
Block a user