Files
coa-details/plugins/Details_DataStorage/Details_DataStorage.lua
T
tercio bd7b2c3ecf - Fixed tooltip for Auras and Voidzones, now shows sorted by damage and time.
- More fixes for Korgath encounter on Highmaul.
- Added slash commands: /details reset and /details config.
- Spell bars on Player Details Window now is painted with the spell spellschool color.
- Multistrike doesn't count any more for spell's Minimal Damage.
- Resource display got an tooltip which shows what resource is and resource gained per minute.
- Clicking on report button when the report window is already open, make it close.
2014-12-14 22:48:12 -02:00

28 lines
801 B
Lua

DETAILS_STORAGE_VERSION = 2
function _detalhes:CreateStorageDB()
DetailsDataStorage = {VERSION = DETAILS_STORAGE_VERSION, RAID_STORAGE = {}, SELF_STORAGE = {}}
return DetailsDataStorage
end
local f = CreateFrame ("frame", nil, UIParent)
f:Hide()
f:RegisterEvent ("ADDON_LOADED")
f:SetScript ("OnEvent", function (self, event, addonName)
if (addonName == "Details_DataStorage") then
DetailsDataStorage = DetailsDataStorage or _detalhes:CreateStorageDB()
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
--> do revisions
if (DetailsDataStorage.VERSION == 1) then
DetailsDataStorage.SELF_STORAGE = {}
DetailsDataStorage.VERSION = 2
end
end
print ("|cFFFFFF00Details! Storage|r: loaded!")
DETAILS_STORAGE_LOADED = true
end
end)