I tried using lua instead of xml but i must have done something wrong:
Lua Code:
local control = WINDOW_MANAGER:CreateTopLevelWindow("TestTopLevel")
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:
local b = WINDOW_MANAGER:CreateControlFromVirtual("asd", GuiRoot, "ZO_StatsDropdownRow")
local a = WINDOW_MANAGER:CreateControl("asd2", GuiRoot, CT_CONTROL )
b:SetHandler("OnUpdate", function(...) d(123) end )
a:SetHandler("OnUpdate", function(...) d(456) end )
hmm the control from CreateControlFromVirtual works, but the other one doesn't...