summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 11:45:06 +0530
committerveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 11:45:06 +0530
commit7942521c6179a24620303adbd09d7bd2ae9d6f80 (patch)
tree656df4c3b4661f799913fb67aa4cb86055643579 /main.h
init: half of settings menu works
Diffstat (limited to 'main.h')
-rw-r--r--main.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/main.h b/main.h
new file mode 100644
index 0000000..91e636f
--- /dev/null
+++ b/main.h
@@ -0,0 +1,27 @@
+#include <string.h>
+
+#define WriteDrawText(text, posX, posY, fontSize, color) DrawText(text, posX - (MeasureText(text, fontSize)/2), posY, fontSize, color);
+
+/* #define DrawRect(posX,posY,) */
+
+#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();
+
+char sound_level[10][21] = {
+ "[] ", "[][] ", "[][][] ",
+ "[][][][] ", "[][][][][] ", "[][][][][][] ",
+ "[][][][][][][] ", "[][][][][][][][] ", "[][][][][][][][][] ",
+ "[][][][][][][][][][]"};
+