diff options
| author | Adam Malczewski <[email protected]> | 2026-06-27 22:03:59 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-27 22:03:59 +0900 |
| commit | 831747ddb5886364707b696ac38cce8da333f15d (patch) | |
| tree | 1b3c983c2b9964d55adec16e2e3a78190fbedbbe /src | |
| parent | b0534c0b53fc116521245c14b05d0120a1cded89 (diff) | |
| download | study-player-V1.tar.gz study-player-V1.zip | |
V1: preserve pre-refactor state (single-file main.c + harness docs)V1
Diffstat (limited to 'src')
| -rw-r--r-- | src/layout_editor.c | 4 | ||||
| -rw-r--r-- | src/main.c | 8 |
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 --- */ @@ -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 |
