better state logic, more features, rewritten timing of signals and more crashes

This commit is contained in:
Sebastian
2024-10-25 02:43:41 +02:00
parent 95e762cb8b
commit f2f852e8dc
8 changed files with 334 additions and 291 deletions
+6
View File
@@ -9,3 +9,9 @@ inline bool ViButton(Vec2D<float> *mouse_pos, float x, float y, float radius, Co
DrawCircle(x,y,radius, color);
return (Vector2Distance(mp, (Vector2){x,y}) < radius && IsMouseButtonPressed(MOUSE_BUTTON_LEFT));
}
inline bool ViSegButton(Vec2D<float> *mouse_pos, float x, float y, float start_angle, float end_angle, float radius, Color color){
Vector2 mp = {mouse_pos->x, mouse_pos->y}; //GetMousePosition(); TODO: Refactor my own vectors to raylib vectors
DrawCircleSector((Vector2){x,y},radius, start_angle, end_angle, 5, color);
return (Vector2Distance(mp, (Vector2){x,y}) < radius && IsMouseButtonPressed(MOUSE_BUTTON_LEFT));
}