Wowpedia
Advertisement
Wowpedia
240,481
pages

Returns the widget's script handler.

handler = ScriptObject:GetScript(scriptType [, bindingType])

Arguments

scriptType 
string - Name of the script type, e.g. "OnShow".
bindingType 
number?Optional. Could be nil. - Specifies an intrinsic frame's pre/post handler.
NUM_LE_SCRIPT_BINDING_TYPES
Value Enum Description
0
LE_SCRIPT_BINDING_TYPE_INTRINSIC_PRECALL
1
LE_SCRIPT_BINDING_TYPE_EXTRINSIC Default
2
LE_SCRIPT_BINDING_TYPE_INTRINSIC_POSTCALL

Returns

handler 
function?Optional. Could be nil. - The script handler, or nil if none is set.

Examples

print(ChatFrame1:GetScript("OnShow"))
print(ChatFrame1:GetScript("OnShow", LE_SCRIPT_BINDING_TYPE_INTRINSIC_POSTCALL))

> "function: 000001EB64BE3D20"
> "function: 000001EB88AB5800"

Patch changes

External links

References

Advertisement