ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   control:SetHandler ??? (https://www.esoui.com/forums/showthread.php?t=5055)

Lodur 08/26/15 03:14 PM

control:SetHandler ???
 
So I don't understand how this works:

Code:

  local fn = function() self:UpdateFilterLabel() end
  filterBar:SetHandler("OnValueChanged", fn)
  local fn_out = filterBar:GetHandler("OnValueChanged")

  assert(fn_out ~= nil)
  assert(fn == fn_out)

Both assert will trigger. I.E fn_out is nil. But I just set it!!! Does SetHandler only take certain well know strings that are defined per control?

merlight 08/26/15 04:08 PM

Quote:

Originally Posted by Lodur (Post 22981)
Does SetHandler only take certain well know strings that are defined per control?

Yes. They're listed as Child: OnSomething in ESOUIDocumentationP#.txt

Lodur 08/26/15 10:05 PM

Thanks. I can stop banging my head down that road now.


All times are GMT -6. The time now is 08:06 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI