how to call a function from xml
Hi,
I have trouble calling a function from the xml file
<Scripts>
<OnLoad>
DEFAULT_CHAT_FRAME:AddMessage("Loading InstaBolt", 255, 0, 0);
InstaBolt_OnLoad()
DEFAULT_CHAT_FRAME:AddMessage("Loaded InstaBolt", 255, 0, 0);
this:RegisterEvent("VARIABLES_LOADED")
</OnLoad>
<OnEvent>
if (event == "VARIABLES_LOADED") then
InstaBolt_Events()
else
InstaBolt_OnEvent(event,...)
end
</OnEvent>
</Scripts>
That code work before 3.1 and now it don't work anymore, the function InstaBolt_OnLoad() isn't call. I can't figure out what I need to do to be able to call function in my lua file.
Can someone help me?
Last edited by Aeragon : 04-18-09 at 02:54 PM.
|