<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd"> <Frame name="WeightsWatcher" hidden="true"> <Scripts> <OnLoad> self:RegisterEvent("ADDON_LOADED") </OnLoad> <OnEvent> if event == "ADDON_LOADED" and ... == "WeightsWatcher" then self:OnInitialize() self:UnregisterEvent("ADDON_LOADED") end </OnEvent> </Scripts> </Frame> </Ui>