I’ve started poking around the lua ui files and I wasn’t able to find the answers to a couple things :
- How user settings are persisted from the lua files, that is how the values defined by the ui called in fegameoptions are being read and written.
- If the game allows to modify various hardcoded variables in lua files through an added in-game menu, ie how to persist and load those variables. For example, modifying the camera rotation speed set by cameraDragRotateScalar in ui/camera.lua by a user-specific value.
- More generally if there was a documentation for all this. I’ve looked and so far the only thing that helped are the GBX examples (and mods of other users).