More fixes for Dragonflight
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
local dversion = 347
|
||||
local dversion = 348
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
@@ -2451,7 +2451,7 @@ end
|
||||
|
||||
options_frame:SetPoint ("center", UIParent, "center")
|
||||
options_frame.TitleText:SetText (title)
|
||||
options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
--options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
|
||||
return options_frame
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
_detalhes.BFACORE = 131 --core version on BFA launch
|
||||
_detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch
|
||||
--
|
||||
_detalhes.dragonflight_beta_version = 26
|
||||
_detalhes.dragonflight_beta_version = 27
|
||||
|
||||
Details = _detalhes
|
||||
|
||||
|
||||
@@ -4975,7 +4975,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
|
||||
if (normal_hits > 0) then
|
||||
local normal_dmg = esta_magia.n_dmg
|
||||
local media_normal = normal_dmg/normal_hits
|
||||
local T = (meu_tempo*normal_dmg)/esta_magia.total
|
||||
local T = (meu_tempo*normal_dmg)/ max(esta_magia.total, 0.001)
|
||||
local P = media/media_normal*100
|
||||
T = P*T/100
|
||||
|
||||
@@ -4990,7 +4990,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
|
||||
t1[5] = Loc ["STRING_MAXIMUM_SHORT"] .. ": " .. Details:comma_value (esta_magia.n_max)
|
||||
t1[6] = Loc ["STRING_AVERAGE"] .. ": " .. Details:comma_value (media_normal)
|
||||
t1[7] = Loc ["STRING_DPS"] .. ": " .. Details:comma_value (normal_dmg/T)
|
||||
t1[8] = normal_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", normal_hits/total_hits*100) .. "%|r]"
|
||||
t1[8] = normal_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", normal_hits/max(total_hits, 0.0001)*100) .. "%|r]"
|
||||
|
||||
end
|
||||
|
||||
@@ -4998,7 +4998,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
|
||||
if (esta_magia.c_amt > 0) then
|
||||
local media_critico = esta_magia.c_dmg/esta_magia.c_amt
|
||||
local T = (meu_tempo*esta_magia.c_dmg)/esta_magia.total
|
||||
local P = media/media_critico*100
|
||||
local P = media/max(media_critico, 0.0001)*100
|
||||
T = P*T/100
|
||||
local crit_dps = esta_magia.c_dmg/T
|
||||
if (not crit_dps) then
|
||||
|
||||
@@ -2337,7 +2337,7 @@ function atributo_heal:MontaDetalhesHealingDone (spellid, barra)
|
||||
if (esta_magia.c_amt > 0) then
|
||||
local media_critico = esta_magia.c_curado/esta_magia.c_amt
|
||||
local T = (meu_tempo*esta_magia.c_curado)/esta_magia.total
|
||||
local P = media/media_critico*100
|
||||
local P = media/max(media_critico, 0.0001)*100
|
||||
T = P*T/100
|
||||
local crit_hps = esta_magia.c_curado/T
|
||||
if (not crit_hps) then
|
||||
|
||||
+1
-1
@@ -366,7 +366,7 @@
|
||||
|
||||
options_frame:SetPoint ("center", UIParent, "center")
|
||||
options_frame.TitleText:SetText (title)
|
||||
options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
--options_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-BLOODELF]])
|
||||
|
||||
return options_frame
|
||||
|
||||
|
||||
+1
-1
@@ -1267,7 +1267,7 @@
|
||||
tinsert (UISpecialFrames, "DetailsUpdateDialog")
|
||||
updatewindow_frame:SetPoint ("center", UIParent, "center")
|
||||
updatewindow_frame:SetSize (512, 200)
|
||||
updatewindow_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-GNOME]])
|
||||
--updatewindow_frame.portrait:SetTexture ([[Interface\CHARACTERFRAME\TEMPORARYPORTRAIT-FEMALE-GNOME]])
|
||||
|
||||
updatewindow_frame.TitleText:SetText ("A New Version Is Available!")
|
||||
|
||||
|
||||
@@ -3385,8 +3385,8 @@ function gump:CriaJanelaInfo()
|
||||
bar [2]:SetValue (data [2] / top * 100)
|
||||
--bar [2]:SetValue (100)
|
||||
bar [3][1] = data [1].counter --tooltip hits
|
||||
bar [3][2] = data [2] / data [1].counter --tooltip average
|
||||
bar [3][3] = _math_floor (data [1].c_amt / data [1].counter * 100) --tooltip critical
|
||||
bar [3][2] = data [2] / max(data [1].counter, 0.0001) --tooltip average
|
||||
bar [3][3] = _math_floor (data [1].c_amt / max(data [1].counter, 0.0001) * 100) --tooltip critical
|
||||
bar [3][4] = spellid
|
||||
|
||||
--player 2
|
||||
|
||||
@@ -861,8 +861,8 @@ local function cria_drop_down (este_gump)
|
||||
local f = CreateFrame ("frame", window:GetName() .. "F", window, "ButtonFrameTemplate")
|
||||
f:SetAllPoints()
|
||||
|
||||
f.portrait:SetTexture ("Interface\\AddOns\\Details\\images\\report_frame_icons")
|
||||
f.portrait:SetTexCoord (1/256, 64/256, 1/256, 64/256)
|
||||
--f.portrait:SetTexture ("Interface\\AddOns\\Details\\images\\report_frame_icons")
|
||||
--f.portrait:SetTexCoord (1/256, 64/256, 1/256, 64/256)
|
||||
|
||||
f.TitleText:SetText (Loc ["STRING_REPORTFRAME_WINDOW_TITLE"])
|
||||
f:SetFrameLevel (window:GetFrameLevel()-1)
|
||||
|
||||
Reference in New Issue
Block a user