Files
coa-details/plugins/Details_SaveData/Details_SaveData.xml
T
2013-08-09 14:42:33 -03:00

24 lines
562 B
XML

<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>
<Scripts>
<OnLoad>
self:RegisterEvent ("ADDON_LOADED")
self:RegisterEvent ("PLAYER_LOGOUT")
</OnLoad>
<OnEvent>
if (event == "ADDON_LOADED") then
_G._detalhes_saver = true
elseif (event == "PLAYER_LOGOUT") then
_G._detalhes:SaveDataOnLogout()
end
</OnEvent>
</Scripts>
</Frame>
</Ui>