View Single Post
04/05/17, 12:05 PM   #34
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,580
Originally Posted by ZOS_ChipHilseberg View Post
We added IsTrustedFunction which can tell you if a C function of lua closure is trusted or not.
Thanks! Just to clarify, how would this function be used?

For example what would this code print:
Lua Code:
  1. local objects = ZO_Menu.itemPool:GetActiveObjects()
  2. for k, v in pairs(objects) do
  3.     local nameControl = GetControl(v, "Name")
  4.     df("%s: %s", nameControl:GetText(), tostring(IsTrustedFunction(v.OnSelect)))
  5. end
  Reply With Quote