summaryrefslogtreecommitdiff
path: root/main.h
blob: d0982037502954ce3cfdee3b1bbd7e787af20d17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <string.h>

#define WriteDrawText(text, posX, posY, fontSize, color)                       \
  DrawText(text, posX - (MeasureText(text, fontSize) / 2), posY, fontSize,     \
           color);

#define WriteDrawTextFont(font, text, posX, posY, fontSize, spacing, color) Vector2 foo = {(posX - MeasureTextEx(font, text, fontSize, spacing).x/2), posY}; DrawTextEx(font, text, foo, fontSize, spacing, color);

#define DrawRect(posX,posY,width,height,color) DrawRectangle(posX - width/2, posY, width, height, color);

#define MakeRect(posX, posY, width, height) {posX - width/2, posY, width, height};

#define MakeBtn(posX, posY, txt, fontSize, padding) {posX - MeasureText(txt, fontSize) / 2 - padding, posY - padding, MeasureText(txt, fontSize) + padding * 2, fontSize + padding * 2}


#define IsMouseInside(rec) CheckCollisionPointRec(mouse_position, rec)
/* #define HIGHLIGHT_COLOR */
/* #define CLICK_COLOR */

typedef enum ScreenType {
  MainScreen, SettingsScreen 
} ScreenType;

void MainMenu();
void SettingsMenu();
void LoadConfiguration();
void WriteConfiguration();
void SetVariables(char* line);