Skip to content

Commit

Permalink
qol module fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blooblahguy committed Feb 5, 2019
1 parent 3e589cf commit 7786d7f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modules/altpower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 1 addition & 3 deletions modules/errorblock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...)
Expand Down
6 changes: 3 additions & 3 deletions modules/gmotd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion modules/interrupted.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion modules/qol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7786d7f

Please sign in to comment.