summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 12:20:54 +0530
committerveradec <glitchmill.dyj3d@simplelogin.co>2026-10-21 12:20:54 +0530
commit3dadad50c681b7a6481b5ae2ce0763d66d3257ea (patch)
treeeb21948378d9e8b2fe7514ab3b021464ce27259e /main.h
parent7942521c6179a24620303adbd09d7bd2ae9d6f80 (diff)
the music_level bar works
Diffstat (limited to 'main.h')
-rw-r--r--main.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/main.h b/main.h
index 91e636f..7813dfd 100644
--- a/main.h
+++ b/main.h
@@ -2,7 +2,9 @@
#define WriteDrawText(text, posX, posY, fontSize, color) DrawText(text, posX - (MeasureText(text, fontSize)/2), posY, fontSize, color);
-/* #define DrawRect(posX,posY,) */
+#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}
@@ -18,10 +20,3 @@ typedef enum ScreenType {
void MainMenu();
void SettingsMenu();
void LoadConfiguration();
-
-char sound_level[10][21] = {
- "[] ", "[][] ", "[][][] ",
- "[][][][] ", "[][][][][] ", "[][][][][][] ",
- "[][][][][][][] ", "[][][][][][][][] ", "[][][][][][][][][] ",
- "[][][][][][][][][][]"};
-