From 01b786020bc4a447f248a27f9824212d30b59fa3 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 18 Oct 2024 16:11:21 -0300 Subject: [PATCH] Framework fix --- libs/DF/fw.lua | 10 +++++----- libs/DF/slider.lua | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/libs/DF/fw.lua b/libs/DF/fw.lua index 45fd0d40..6d49adb2 100644 --- a/libs/DF/fw.lua +++ b/libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 574 +local dversion = 575 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary(major, minor) @@ -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) @@ -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 = {} diff --git a/libs/DF/slider.lua b/libs/DF/slider.lua index 755ad0d5..fd3d36db 100644 --- a/libs/DF/slider.lua +++ b/libs/DF/slider.lua @@ -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)