<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/"> <Script file="LagBar.lua"/> <Frame name="LagBarFrame_Startup"> <Scripts> <OnLoad> this:RegisterEvent("ADDON_LOADED"); </OnLoad> <OnEvent> if LagBar then LagBar.OnEvent(this, event, arg1, arg2, arg3, arg4, ...); end </OnEvent> </Scripts> </Frame> </Ui>