Skip to content

Commit

Permalink
Framework fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Oct 18, 2024
1 parent 59af1de commit 01b7860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 574
local dversion = 575
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)

Expand Down Expand Up @@ -5708,14 +5708,14 @@ local sendTimeBarNotification = function(token, barType, id, msg, timer, icon, s
end

local createBossModsCallback = function()
if (_G.DBM) then
if (false and _G.DBM) then
local DBM = _G.DBM

--phase change
local phaseChangeCallback = function(event, mod, modId, phase, encounterId, stageTotal)
sendPhaseNotification(phase)
end
DBM:RegisterCallback("DBM_SetStage", phaseChangeCallback)
--DBM:RegisterCallback("DBM_SetStage", phaseChangeCallback)

--time bars
local timerChangeCallback = function(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
Expand All @@ -5733,12 +5733,12 @@ local createBossModsCallback = function()
end
end

DBM:RegisterCallback("DBM_TimerStart", timerChangeCallback)
--DBM:RegisterCallback("DBM_TimerStart", timerChangeCallback)
end

local BigWigsLoader = BigWigsLoader

if (BigWigsLoader and not _G.DBM) then
if (BigWigsLoader) then -- and not _G.DBM
--Bigwigs change the phase of an encounter
if (BigWigsLoader.RegisterMessage) then
local t = {}
Expand Down
1 change: 1 addition & 0 deletions libs/DF/slider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ end
---@field SetSwitchFunction fun(self:df_button, newOnSwitchFunction: function)
---@field GetCapsule fun(self:df_button):df_button capsule only exists in the actual frame of the encapsulated widget
---@field SetCheckedTexture fun(self:df_button, texture:string)
---@field SetChecked fun(self:df_button, value:boolean)


function DF:CreateSwitch(parent, onSwitch, defaultValue, width, height, leftText, rightText, member, name, colorInverted, switchFunc, returnFunc, withLabel, switch_template, label_template)
Expand Down

0 comments on commit 01b7860

Please sign in to comment.