Skip to content

Commit

Permalink
Framework update and Stop reset max segments amount on logon
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Apr 1, 2021
1 parent 476e616 commit d7718ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 237
local dversion = 238

local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
Expand Down
7 changes: 6 additions & 1 deletion Libs/DF/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9194,6 +9194,7 @@ end
}

-- ~unitframe
local globalBaseFrameLevel = 1 -- to be increased + used across each new plate
function DF:CreateUnitFrame (parent, name, unitFrameSettingsOverride, healthBarSettingsOverride, castBarSettingsOverride, powerBarSettingsOverride)

local parentName = name or ("DetailsFrameworkUnitFrame" .. tostring (math.random (1, 100000000)))
Expand All @@ -9202,7 +9203,11 @@ function DF:CreateUnitFrame (parent, name, unitFrameSettingsOverride, healthBarS
local f = CreateFrame ("button", parentName, parent, "BackdropTemplate")

--> base level
local baseFrameLevel = f:GetFrameLevel()
--local baseFrameLevel = f:GetFrameLevel()
local baseFrameLevel = globalBaseFrameLevel
globalBaseFrameLevel = globalBaseFrameLevel + 50

f:SetFrameLevel (baseFrameLevel)

--> create the healthBar
local healthBar = DF:CreateHealthBar (f, false, healthBarSettingsOverride)
Expand Down
3 changes: 0 additions & 3 deletions startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,6 @@ function Details:StartMeUp() --I'll never stop!
Details.boss_mods_timers.encounter_timers_dbm = Details.boss_mods_timers.encounter_timers_dbm or {}
Details.boss_mods_timers.encounter_timers_bw = Details.boss_mods_timers.encounter_timers_bw or {}

Details.segments_amount = 40
Details.segments_amount_to_save = 40

--clear overall data on new session
if (_detalhes.overall_clear_logout) then
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()
Expand Down

0 comments on commit d7718ca

Please sign in to comment.