update
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
## Interface: 50300
|
||||
## Title: Details Save Data
|
||||
## Notes: Save Details database
|
||||
## RequiredDeps: Details
|
||||
|
||||
Details_SaveData.xml
|
||||
@@ -0,0 +1,24 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user