Skip to content

Commit

Permalink
Fixes for the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed May 17, 2021
1 parent db916fe commit eba3036
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 16 deletions.
4 changes: 2 additions & 2 deletions classes/class_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion classes/class_heal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions classes/class_instance.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions classes/class_resources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion classes/class_utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions frames/window_currentdps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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()

Expand Down
3 changes: 1 addition & 2 deletions plugins/Details_Streamer/Details_Streamer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 18 additions & 1 deletion plugins/Details_TinyThreat/Details_TinyThreat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit eba3036

Please sign in to comment.