View Single Post
04/09/14, 03:07 AM   #32
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
I tried using lua instead of xml but i must have done something wrong:

Lua Code:
  1. local control = WINDOW_MANAGER:CreateTopLevelWindow("TestTopLevel")
  2. control:SetHandler("OnUpdate", function() d(123) end )

the OnUpdate function doesn't seem to be called...

edit:
function(self, time)
doesnt work as well

edit2:
Lua Code:
  1. local b = WINDOW_MANAGER:CreateControlFromVirtual("asd", GuiRoot, "ZO_StatsDropdownRow")
  2. local a = WINDOW_MANAGER:CreateControl("asd2", GuiRoot, CT_CONTROL )
  3. b:SetHandler("OnUpdate", function(...) d(123) end )
  4. a:SetHandler("OnUpdate", function(...) d(456) end )
hmm the control from CreateControlFromVirtual works, but the other one doesn't...

Last edited by Shinni : 04/09/14 at 04:11 AM.
  Reply With Quote