Thread: Location app?
View Single Post
03/01/14, 07:23 PM   #17
Errc
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 30
Originally Posted by Xrystal View Post
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)
It use to work just like that, 2 or 3 patches ago it stopped working and forced the use of xml for OnUpdate. It is likely just a bug, but it has been reported in-game and on forums and it hasn't been fixed in over a month. So might end up being something we are stuck with.
  Reply With Quote