Pako wrote:so all include() should be replaced by require() but will then all widgets become non-backwards compatible?
No, the new require() is a semi implementation of lua's native modules require. Include() is similar to c's #include, means it will fully recompile the included code. require() instead will just compile it once and then share the instance between all Addons. I added it to replace the current header files (:= *.h.lua files) and to implement later `Utilities/*` which ZK uses in LuaRules (and minor in LuaUI) and FLOZi requested to have available everywhere.
Pako wrote:Failed to load: gfx_lups_manager.lua (error = 2, LuaUI/Widgets/gfx_lups_manager.lua, error = 2, LuaUI/Configs/lupsFXs.lua, Include() could not load 'LuaRules/Utilities/tablefunctions.lua')
That looks like a missing widget dependency you forgot to add.
Pako wrote:Error in DrawScreen(): [string "LuaUI/Widgets/gui_selbuttons.lua"]:150: attempt to call method 'InTweakMode' (a nil value)
Bug :)
Pako wrote:-Epicmenu uses some hacks to disable/enable widgets which cause huge errors
It should use xyzhandler:DisableWidget()/EnableWidget(), if it doesn't I won't fix it (it should be fixed in EpicMenu itself then).
So new things on the todo list:
* readd InTweakMode()
* try to make including header files not fatal errors (possibly via a backward SystemAddon)