Looks like I'm also lumbered with the xml file just to use the update routine which isn't allowed to be local because it is another file.
Has anyone figured out how to create a window just to use the update routine without using xml yet ?
I tried the following with no joy. This kind of thing worked for me in wow. Anything I am missing for it to work in ESO ?
Lua Code:
addonWindow = WindowMgr:CreateTopLevelWindow(addonName.."Window")
addonWindow:SetHandler("OnUpdate",
function(self,elapsed)
d("addon windows update routine")
MyUpdateRoutine(self,elapsed) -- This is working fine if called from the xml file OnUpdate section
end
)
addonWindow:SetHidden(false)