summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout_editor.c4
-rw-r--r--src/main.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/layout_editor.c b/src/layout_editor.c
index e2d7aee..0a40c59 100644
--- a/src/layout_editor.c
+++ b/src/layout_editor.c
@@ -71,7 +71,7 @@ void layout_editor_draw(const char *exePath, UILayout *layout)
}
}
- /* 5: Smart play button (HOLD) */
+ /* 5: Smart play button (Play) */
{
Rectangle r = { layout->smartPlayX,
layout->smartPlayY, 200.0f, 80.0f };
@@ -250,7 +250,7 @@ void layout_editor_draw(const char *exePath, UILayout *layout)
Color f = (dragIndex == 5) ? highlightColor : fillColor;
Rectangle r = { layout->smartPlayX,
layout->smartPlayY, 200.0f, 80.0f };
- draw_label("HOLD", r, f, borderColor);
+ draw_label("Play", r, f, borderColor);
}
/* --- 6: Section nav buttons --- */
diff --git a/src/main.c b/src/main.c
index c545442..49d1ab2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -667,14 +667,14 @@ static void update_frame(void)
if (portion > total) portion = total;
char portionBuf[32];
snprintf(portionBuf, sizeof(portionBuf), "%d/%d", portion, total);
- float portionY = layout.secNavY - szSmall / 2.0f;
+ float secBtnRadius = 35.0f;
+ float portionY = layout.secNavY - szSmall - secBtnRadius - 10.0f;
float portionSpacing = szSmall * 0.03f;
Vector2 portionSize = MeasureTextEx(fontSmall, portionBuf, szSmall, portionSpacing);
float portionX = layout.secNavX - portionSize.x / 2.0f;
DrawTextEx(fontSmall, portionBuf, (Vector2){ portionX, portionY }, szSmall, portionSpacing, mutedColor);
/* Section nav buttons */
- float secBtnRadius = 35.0f;
float secPrevX = layout.secNavX - 65.0f;
float secNextX = layout.secNavX + 65.0f;
float secBtnY_draw = layout.secNavY;
@@ -701,10 +701,10 @@ static void update_frame(void)
DrawRectangleRounded(smartBtn, 0.3f, 8, btnFill);
DrawRectangleRoundedLines(smartBtn, 0.3f, 8, btnBorder);
float btnSpacing = szSmall * 0.03f;
- Vector2 btnSize = MeasureTextEx(fontSmall, "HOLD", szSmall, btnSpacing);
+ Vector2 btnSize = MeasureTextEx(fontSmall, "Play", szSmall, btnSpacing);
float tx = smartBtn.x + (smartBtn.width - btnSize.x) / 2.0f;
float ty = smartBtn.y + (smartBtn.height - szSmall) / 2.0f;
- DrawTextEx(fontSmall, "HOLD", (Vector2){ tx, ty }, szSmall, btnSpacing, btnTextColor);
+ DrawTextEx(fontSmall, "Play", (Vector2){ tx, ty }, szSmall, btnSpacing, btnTextColor);
}
}
else