Thread: Location app?
View Single Post
03/01/14, 05:57 PM   #16
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
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:
  1. addonWindow = WindowMgr:CreateTopLevelWindow(addonName.."Window")
  2. addonWindow:SetHandler("OnUpdate",
  3.   function(self,elapsed)  
  4.     d("addon windows update routine")
  5.     MyUpdateRoutine(self,elapsed)   -- This is working fine if called from the xml file OnUpdate section
  6.   end
  7. )
  8. addonWindow:SetHidden(false)
  Reply With Quote