What: a test copies mods/example_lua enabled into a temporary folder and drives it
on the fake host: its page (toggle, number, two actions), the overlay line, F9
turning it off, the menu callbacks, the menu_open event. d3d12/README.md gets the
row for the Lua mods that the last commit left out.
How checked: cargo test -p leonida-lua --lib (35 passed); cargo test -p
leonida-menu --lib (47 passed). AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What: mods/example_lua (mod.json disabled by default, main.lua: a frame-rate and
time line in the lower left, a page in the F4 menu with a toggle, a number and two
actions, an F9 key handler); docs/lua-modding.md (the API reference, the sandbox
rules, what is not available and why, what was not tried), pointers in
docs/README.md, docs/mod-menu.md, docs/modding.md and a row in d3d12/README.md.
tools/leonida_mods.py reads "script": it must be a .lua path inside the folder, the
list shows `Lua main.lua`, the JSON report has "script", and a Lua mod no longer
warns that it has no archetype_swaps.
Why: a Lua mod is mods\<name>\mod.json plus a script, so the manager that lists the
asset mods should list these too, and a mod author needs the reference.
How checked: python -I tests/test_leonida_mods.py (13 tests, 3 new, pass; the one
failure, test_run_print_builds_gta6rt_command, fails the same on the base: no gta6rt
build here). The example's script was not run in the title. AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>