2024-10-15 02:59:26 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-11-14 00:55:09 +01:00
|
|
|
#include "vmath.h"
|
2024-10-15 02:59:26 +02:00
|
|
|
#include "raylib.h"
|
|
|
|
|
#include "raymath.h"
|
|
|
|
|
|
2024-11-02 15:52:16 +01:00
|
|
|
inline bool ViButton(Vec2Df mp, float x, float y, float radius, Color color){
|
2024-10-15 02:59:26 +02:00
|
|
|
DrawCircle(x,y,radius, color);
|
|
|
|
|
return (Vector2Distance(mp, (Vector2){x,y}) < radius && IsMouseButtonPressed(MOUSE_BUTTON_LEFT));
|
|
|
|
|
}
|
2024-10-25 02:43:41 +02:00
|
|
|
|
2024-11-02 15:52:16 +01:00
|
|
|
inline bool ViSegButton(Vec2Df mp, float x, float y, float start_angle, float end_angle, float radius, Color color){
|
2024-10-25 02:43:41 +02:00
|
|
|
DrawCircleSector((Vector2){x,y},radius, start_angle, end_angle, 5, color);
|
|
|
|
|
return (Vector2Distance(mp, (Vector2){x,y}) < radius && IsMouseButtonPressed(MOUSE_BUTTON_LEFT));
|
|
|
|
|
}
|