![]() |
The API is no longer being updated here until further notice. |
ScriptObject is an abstract widget type that provides support for widget scripts. Scripts can be set to trigger in response to some widget event, or as a result of user interaction. The specific scripts that are supported vary wildly from object to object, but all objects support setting, hooking and getting of object scripts.
Methods[]
- ScriptObject:GetScript(scriptType [, bindingType]) - Returns the widget's script handler.
- ScriptObject:SetScript(scriptType, handler) - Sets the widget's script handler.
- ScriptObject:HookScript(scriptType, handler [, bindingType]) - Securely hooks a script handler.
- ScriptObject:HasScript(scriptType) - Returns whether the widget supports a script type.
Scripts[]
- OnLoad(self) - Run when the frame is created.
- OnUpdate(self, elapsed) - Run each time the screen is drawn by the game engine.
Patch changes[]
Patch 1.7.0 (2005-09-13): Added Frame:GetScript()andFrame:SetScript()[1]
References[]
- ^
slouken 2005-07-08. Re: Upcoming 1.7 Changes - Concise List. Archived from the original
