summaryrefslogtreecommitdiffhomepage
path: root/game/study_player/ui/main.rml
AgeCommit message (Collapse)Author
2026-06-29fix: study-mode checkbox wasn't visible or bound (wrong RmlUi flow)rewriteAdam Malczewski
The checkbox used data-value (binds the element's 'value' string attribute) instead of data-checked (binds the 'checked' bool state) -- per RmlUi docs, checkboxes must use data-checked with a bool. So it neither reflected nor toggled study_mode, and with no explicit styling it rendered invisibly. Fix: wrap the input in a <form> (canonical RmlUi form-control flow), switch data-value -> data-checked, and give #cb-study an explicit visible style (border + background, green fill when :checked). Verified the document loads with no RmlUi parse errors. Note: RmlUi's border shorthand is 'width color' (no 'solid' keyword).
2026-06-29refactor: font-scale targets #body-root element (coherent id alignment)Adam Malczewski
Aligns apply_font_scale to the body element's id across study_player.rb / layout.rb / main.rml (was probing element('body')||element('__body__')). Verified: build green, run clean, player view renders correctly. (these edits were left uncommitted by the Phase 6 agent's timed-out turn; orchestrator verified + committed.)
2026-06-29phase 6: config persistence, layout settings, final end-to-end verificationAdam Malczewski
- Config: INI-style study-player.cfg (forward-compatible with the original C config.c format). Persists window size, study_mode_default, volume, last_audio_path, font_scale. - Layout: UILayout keys mapped to RmlUi element properties (RCSS-tunable). Adapted the C drag-to-reposition editor to RmlUi-appropriate settings (P4: RmlUi uses declarative RCSS, so pixel-drag doesn't map cleanly; persist what's meaningful). load on startup, save on change. - study_player.rb wiring + main.rml/rcss settings panel. (orchestrator-committed: agent completed + built green, but its turn timed out before committing — it was running gen_ai_reference.rb at the timeout.)
2026-06-29phase 5: RmlUi player UI (progress bar, buttons, checkbox, counter, help)Adam Malczewski
2026-06-29phase 2: audio core, argv file loading, playback, non-blocking seekAdam Malczewski
(orchestrator-committed: Phase 2 agent (deepseek-v4-pro) completed the work and verified via build+run+screenshot, but its turn timed out before committing.)