762c80669d
- Removed 'Real Time DPS' from the time measure dropdown. - Added "Show 'Real Time' DPS" toggle to show real time dps while in combat. - Added "Order Bars By Real Time DPS" toggle to order bars by the amount of real time dps. - Added "Always Use Real Time in Arenas" toggle to always use real time dps in Arenas. - Added .last_dps_realtime to player actors, caches the latest real time dps calculated.
40 lines
1.0 KiB
Lua
40 lines
1.0 KiB
Lua
|
|
DETAILS_STORAGE_VERSION = 5
|
|
|
|
function _detalhes:CreateStorageDB()
|
|
DetailsDataStorage = {
|
|
VERSION = DETAILS_STORAGE_VERSION,
|
|
[14] = {}, --normal mode (raid)
|
|
[15] = {}, --heroic mode (raid)
|
|
[16] = {}, --mythic mode (raid)
|
|
["mythic_plus"] = {}, --(dungeons)
|
|
["saved_encounters"] = {}, --(a segment)
|
|
}
|
|
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()
|
|
DetailsDataStorage.Data = {}
|
|
|
|
if (DetailsDataStorage.VERSION < DETAILS_STORAGE_VERSION) then
|
|
--> do revisions
|
|
if (DetailsDataStorage.VERSION < 5) then
|
|
table.wipe (DetailsDataStorage)
|
|
DetailsDataStorage = _detalhes:CreateStorageDB()
|
|
end
|
|
end
|
|
|
|
if (_detalhes and _detalhes.debug) then
|
|
print ("|cFFFFFF00Details! Storage|r: loaded!")
|
|
end
|
|
DETAILS_STORAGE_LOADED = true
|
|
end
|
|
end)
|
|
|