Fixes for the latest release

This commit is contained in:
Tercio Jose
2021-05-17 18:37:25 -03:00
parent db916fe43c
commit eba3036d02
9 changed files with 45 additions and 16 deletions
+2 -2
View File
@@ -190,7 +190,7 @@
if (force) then
if (instance:IsGroupMode()) then
for i = 1, instance.rows_fit_in_window do
Details.FadeHandler.Fader (instance.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instance.barras [i], "in", Details.fade_speed)
end
end
end
@@ -483,7 +483,7 @@
if (force) then
if (instance:IsGroupMode()) then
for i = whichRowLine, instance.rows_fit_in_window do
Details.FadeHandler.Fader (instance.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instance.barras [i], "in", Details.fade_speed)
end
end
end
+2 -2
View File
@@ -2136,7 +2136,7 @@ function atributo_damage:RefreshWindow (instancia, tabela_do_combate, forcar, ex
if (forcar) then
if (instancia.modo == 2) then --> group
for i = 1, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
@@ -2370,7 +2370,7 @@ function atributo_damage:RefreshWindow (instancia, tabela_do_combate, forcar, ex
if (forcar) then
if (instancia.modo == 2) then --> group
for i = whichRowLine, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
+1 -1
View File
@@ -579,7 +579,7 @@ function atributo_heal:RefreshWindow (instancia, tabela_do_combate, forcar, expo
if (forcar) then
if (instancia.modo == 2) then --> group
for i = whichRowLine, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
-5
View File
@@ -408,11 +408,6 @@ end
self:ResetaGump()
--Details.FadeHandler.Fader (self.baseframe.cabecalho.atributo_icon, _unpack (_detalhes.windows_fade_in))
--Details.FadeHandler.Fader (self.baseframe.cabecalho.ball, _unpack (_detalhes.windows_fade_in))
--Details.FadeHandler.Fader (self.baseframe, _unpack (_detalhes.windows_fade_in))
--Details.FadeHandler.Fader (self.rowframe, _unpack (_detalhes.windows_fade_in))
Details.FadeHandler.Fader (self.baseframe.cabecalho.ball, 1)
Details.FadeHandler.Fader (self.baseframe, 1)
Details.FadeHandler.Fader (self.rowframe, 1)
+2 -2
View File
@@ -353,7 +353,7 @@ function atributo_energy:RefreshWindow (instancia, tabela_do_combate, forcar, ex
if (forcar) then
if (instancia.modo == 2) then --> group
for i = whichRowLine, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
@@ -639,7 +639,7 @@ function atributo_energy:RefreshWindow (instancia, tabela_do_combate, forcar, ex
if (forcar) then
if (instancia.modo == 2) then --> group
for i = whichRowLine, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
+1 -1
View File
@@ -864,7 +864,7 @@ function atributo_misc:RefreshWindow (instancia, tabela_do_combate, forcar, expo
if (forcar) then
if (instancia.modo == 2) then --> group
for i = whichRowLine, instancia.rows_fit_in_window do
Details.FadeHandler.Fader (instancia.barras [i], "in", 0.3)
Details.FadeHandler.Fader (instancia.barras [i], "in", Details.fade_speed)
end
end
end
+18
View File
@@ -136,6 +136,21 @@ function Details:OpenCurrentRealDPSOptions(from_options_panel)
values = function() return strataTable end,
name = "Frame Strata"
},
--speed
{
type = "range",
get = function() return Details.current_dps_meter.sample_size end,
set = function (self, fixedparam, value)
Details.current_dps_meter.sample_size = value
Details:UpdateTheRealCurrentDPSFrame(testUsing)
end,
min = 1,
max = 6,
step = 1,
name = "Speed",
desc = "Low is faster",
text_template = options_text_template,
},
--width
{
type = "range",
@@ -441,6 +456,9 @@ function Details:CreateCurrentDpsFrame(parent, name)
--> where the player are
if (scenario == "arena") then
f.SampleSize = _detalhes.current_dps_meter.sample_size
labelPlayerTeam_DPS:Show()
labelYellowTeam_DPS:Show()
@@ -62,8 +62,7 @@ local default_attack_icon = [[Interface\CURSOR\UnableAttack]]
local function CreatePluginFrames()
--> shortcut for details fade function
local fader = StreamOverlay.gump.Fade
local fader = Details.FadeHandler.Fader
function StreamOverlay:OnDetailsEvent (event, ...)
if (event == "HIDE") then --> plugin hidded, disabled
@@ -5,7 +5,6 @@ local _GetNumSubgroupMembers = GetNumSubgroupMembers --> wow api
local _GetNumGroupMembers = GetNumGroupMembers --> wow api
local _UnitIsFriend = UnitIsFriend --> wow api
local _UnitName = UnitName --> wow api
local _UnitDetailedThreatSituation = UnitDetailedThreatSituation
local _IsInRaid = IsInRaid --> wow api
local _IsInGroup = IsInGroup --> wow api
local _UnitGroupRolesAssigned = DetailsFramework.UnitGroupRolesAssigned --> wow api
@@ -28,6 +27,23 @@ ThreatMeter:SetPluginDescription ("Small tool for track the threat you and other
local _
local UnitDetailedThreatSituation = UnitDetailedThreatSituation
local _UnitDetailedThreatSituation
if (DetailsFramework.IsTimewalkWoW()) then
_UnitDetailedThreatSituation = function(source, target)
local isTanking, status, threatpct, rawthreatpct, threatvalue = UnitDetailedThreatSituation(source, target)
if (threatvalue) then
threatvalue = floor(threatvalue / 100)
end
return isTanking, status, threatpct, rawthreatpct, threatvalue
end
else
_UnitDetailedThreatSituation = UnitDetailedThreatSituation
end
local function CreatePluginFrames (data)
--> catch Details! main object
@@ -374,6 +390,7 @@ local function CreatePluginFrames (data)
local topThreat = ThreatMeter.player_list_indexes [1]
local aggro = topThreat [6] * (CheckInteractDistance ("target", 3) and 1.1 or 1.3)
aggro = max(aggro, 0.001)
pullRow:SetLeftText ("Pull Aggro At")
local realPercent = _math_floor (aggro / max (topThreat [6], 0.01) * 100)