diff --git a/modules/altpower.lua b/modules/altpower.lua index 6cc8fcd..538ab3f 100644 --- a/modules/altpower.lua +++ b/modules/altpower.lua @@ -26,7 +26,7 @@ bdCore:hookEvent("loaded_bdcore", function() -- powerbar:EnableMouse(false) powerbar:SetScript("OnEvent", function(self, event, arg1) - if (not c.alteratepowerbar) then + if (not c.persistent.bdAddons.alteratepowerbar) then PlayerPowerBarAlt:RegisterEvent("UNIT_POWER_BAR_SHOW") PlayerPowerBarAlt:RegisterEvent("UNIT_POWER_BAR_HIDE") PlayerPowerBarAlt:RegisterEvent("PLAYER_ENTERING_WORLD") diff --git a/modules/errorblock.lua b/modules/errorblock.lua index d32ea87..f0b94ba 100644 --- a/modules/errorblock.lua +++ b/modules/errorblock.lua @@ -39,10 +39,8 @@ UIErrorsFrame:SetScript("OnEvent", function(self, event, msg, ...) if (event ~= "UI_ERROR_MESSAGE") then return orig(self, event, msg, ...) end - - local alert = c.errorblock - if (alert and filter[msg]) then + if (c.persistent.bdAddons.errorblock and filter[msg]) then return false else return orig(self, event, msg, ...) diff --git a/modules/gmotd.lua b/modules/gmotd.lua index 6f8fa9f..c57853b 100644 --- a/modules/gmotd.lua +++ b/modules/gmotd.lua @@ -24,7 +24,7 @@ gmotd.button:SetText("Got it"); bdCore:skinButton(gmotd.button,false) gmotd.button:SetPoint("TOP", gmotd, "BOTTOM", 0, -4) gmotd.button:SetScript("OnClick",function(self) - c.persistent.gmotd[gmotd.msg] = true + c.persistent.bdAddons.gmotd[gmotd.msg] = true gmotd:Hide() end) @@ -33,7 +33,7 @@ bdCore:hookEvent('loaded_bdcore', function() gmotd:RegisterEvent("GUILD_ROSTER_UPDATE") gmotd:SetScript("OnEvent", function(self, event, message) - if (not c.skingmotd) then return end + if (not c.persistent.bdAddons.skingmotd) then return end local guild = false local msg = false @@ -45,7 +45,7 @@ bdCore:hookEvent('loaded_bdcore', function() guild = select(1, GetGuildInfo("player")) end - if (msg and guild and not c.persistent.gmotd[msg]) then + if (msg and guild and not c.persistent.bdAddons.gmotd[msg]) then gmotd.msg = msg gmotd.text:SetText(msg) gmotd.header:SetText(guild.." - Message of the Day") diff --git a/modules/interrupted.lua b/modules/interrupted.lua index 74df4de..c688706 100644 --- a/modules/interrupted.lua +++ b/modules/interrupted.lua @@ -6,7 +6,7 @@ local UnitExists, UnitIsUnit, UnitIsUnit, GetSpellLink, SendChatMessage = UnitEx local interrupt = CreateFrame('frame') interrupt:RegisterEvent('COMBAT_LOG_EVENT_UNFILTERED') local function OnEvent(self, event) - if (not c.interrupt ) then return end + if (not c.persistent.bdAddons.interrupt ) then return end local timestamp, subevent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellID, spellName, spellSchool, extraSpellID, extraSpellName, school, resisted, blocked, absorbed, critial, glancing, crushing, isOffHand = CombatLogGetCurrentEventInfo() diff --git a/modules/qol.lua b/modules/qol.lua index 6019205..28dd8f0 100644 --- a/modules/qol.lua +++ b/modules/qol.lua @@ -5,7 +5,7 @@ local bdCore, c, s = select(2, ...):unpack() -- Load all quality of life modules in one place bdCore:hookEvent("loaded_bdcore", function() -- local config = c - config = c.persistent.General + -- config = c.persistent.bdAddons -- increase equipment sets per player setglobal("MAX_EQUIPMENT_SETS_PER_PLAYER", 100)