diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index b3fdaf8cc..4a1228ad4 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 237 +local dversion = 238 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) diff --git a/Libs/DF/panel.lua b/Libs/DF/panel.lua index 9c10a00c9..9a2b9b71e 100644 --- a/Libs/DF/panel.lua +++ b/Libs/DF/panel.lua @@ -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))) @@ -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) diff --git a/startup.lua b/startup.lua index 739f5dd36..13b6a3a34 100644 --- a/startup.lua +++ b/startup.lua @@ -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()