bd7b2c3ecf
- 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.
28 lines
801 B
Lua
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)
|
|
|