- Report history improvements.

- More fixes on combat log parser.
This commit is contained in:
Tercio
2015-05-22 13:04:27 -03:00
parent bb07cae195
commit 6f6dfeeccc
6 changed files with 52 additions and 12 deletions
+3 -3
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -2772,8 +2772,9 @@ function _detalhes:monta_relatorio (este_relatorio, custom)
end
end
if (already_exists) then
local t = _detalhes.latest_report_table [already_exists]
t [4] = amt
if (already_exists > 5) then
local t = _detalhes.latest_report_table [already_exists]
tremove (_detalhes.latest_report_table, already_exists)
tinsert (_detalhes.latest_report_table, 1, t)
end
+31 -1
View File
@@ -363,7 +363,37 @@ _detalhes.background_tasks_loop = _detalhes:ScheduleRepeatingTimer ("DoBackgroun
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> storage stuff
--> storage stuff ~storage
--global database
function _detalhes:OpenRaidStorage()
--> check if the storage is already loaded
if (not IsAddOnLoaded ("Details_DataStorage")) then
local loaded, reason = LoadAddOn ("Details_DataStorage")
if (not loaded) then
return
end
end
--> get the storage table
local db = DetailsDataStorage
if (not db and _detalhes.CreateStorageDB) then
db = _detalhes:CreateStorageDB()
if (not db) then
return
end
elseif (not db) then
return
end
--GlobalDatabase = {}
--UserChrStorage = {}
return db
end
local store_instances = {
[1205] = true, --Blackrock Foundry
+11 -4
View File
@@ -675,13 +675,17 @@
------------------------------------------------------------------------------------------------
--> early checks and fixes
if (not who_name) then
if (not alvo_name) then
--> no target name, just quit
return
elseif (not who_name) then
--> no actor name, use spell name instead
who_name = "[*] " .. spellname
elseif (not who_name or not alvo_name) then
return --> just return
who_flags = 0xa48
who_serial = ""
end
------------------------------------------------------------------------------------------------
--> get actors
--print ("MISS", "|", missType, "|", isOffHand, "|", multistrike, "|", amountMissed, "|", arg1)
@@ -1170,7 +1174,10 @@
if (not alvo_name) then
alvo_name = "[*] Unknown shield target"
elseif (not who_name) then
--> no actor name, use spell name instead
who_name = "[*] " .. spellname
who_flags = 0xa48
who_serial = ""
end
------------------------------------------------------------------------------------------------
+4 -2
View File
@@ -7423,8 +7423,10 @@ function gump:CriaCabecalho (baseframe, instancia)
local artwork = _detalhes.GetReportIconAndColor (report_where)
GameCooltip:AddLine (name, nil, 1, "white", nil, _detalhes.font_sizes.menus, _detalhes.font_faces.menus)
GameCooltip:AddIcon (artwork.icon, 1, 1, 14, 14, artwork.coords[1], artwork.coords[2], artwork.coords[3], artwork.coords[4], artwork.color, nil, false)
GameCooltip:AddLine (name .. " (#" .. amt .. ")", nil, 1, "white", nil, _detalhes.font_sizes.menus, _detalhes.font_faces.menus)
if (artwork) then
GameCooltip:AddIcon (artwork.icon, 1, 1, 14, 14, artwork.coords[1], artwork.coords[2], artwork.coords[3], artwork.coords[4], artwork.color, nil, false)
end
GameCooltip:AddMenu (1, _detalhes.ReportFromLatest, index)
end
+1 -1
View File
@@ -177,7 +177,6 @@ function _detalhes:OpenWelcomeWindow ()
if (instance and instance.ativa) then
if (instance.skin ~= "ElvUI Frame Style") then
instance:ChangeSkin ("ElvUI Frame Style")
_detalhes:SetTooltipBackdrop ("Blizzard Tooltip", 16, {1, 1, 1, 0})
end
end
@@ -195,6 +194,7 @@ function _detalhes:OpenWelcomeWindow ()
_detalhes.standard_skin = savedObject
_detalhes:ApplyPDWSkin ("ElvUI")
_detalhes:SetTooltipBackdrop ("Details BarBorder 3", 14, {0, 0, 0, 1})
end
-- frame alert