As mentioned in #2609, I am implementing a Lua plugin system in lf, code can be checked here. In LUA_DEV.md I wrote about how the plugin system is implemented.
Now I think it's time to finally make a pull request. Just before that, I want to known if anybody has any opinion or advice on the code I've written.
I think I will be dealing with following problems next:
app object is now a global variable in Lua runtime used to access ui and nav, but it's exposed with no concurrency protection. Some inspection is needed on this, but I haven't thought about it yet, any advice is welcome.
- Splitting UI element drawing functions in to smaller parts that can be overridden in Lua script, so that user can customize program appearance even more.
As mentioned in #2609, I am implementing a Lua plugin system in lf, code can be checked here. In LUA_DEV.md I wrote about how the plugin system is implemented.
Now I think it's time to finally make a pull request. Just before that, I want to known if anybody has any opinion or advice on the code I've written.
I think I will be dealing with following problems next:
appobject is now a global variable in Lua runtime used to accessuiandnav, but it's exposed with no concurrency protection. Some inspection is needed on this, but I haven't thought about it yet, any advice is welcome.